[1.2.3] Twilight and energy regen.

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Alisar
Cornac
Posts: 44
Joined: Sat May 31, 2014 7:54 pm

[1.2.3] Twilight and energy regen.

#1 Post by Alisar »

While you have Twilight learned, its increases/decreases towards the resting place overwrite any positive/negative energy regen from items, making them do nothing.

EDIT: Found it:

Actor.lua line 441 & 447

Code: Select all

		if self:getPositive() > v or self:attr("positive_at_rest_disable") then self.positive_regen = -self.positive_regen_ref

Code: Select all

		if self:getNegative() > v or self:attr("negative_at_rest_disable")  then self.negative_regen = -self.negative_regen_ref
Doesn't add positive_regen_ref_mod and negative_regen_ref_mod when amount is over the baseline.

Post Reply