Page 1 of 1

Eclipse (staff artifact) causes energy decay

Posted: Thu Aug 22, 2013 10:56 pm
by adamn
The staff Eclipse has the properties

When wielded worn:
P. Energy each turn: +0.10
N. Energy each turn: +0.10

So it would seem it should make your energy regenerate faster while below the default level and decay slower while above the default level. Instead, it does regenerate faster when below, but when above it causes energy to decay at 0.10 faster i.e. -0.30 instead of -0.20. This seems like a bug, and actually makes the staff less useful for an anorithil. At the very least, if this is intended, it should say so explicitly.

Re: Eclipse (staff artifact) causes energy decay

Posted: Fri Aug 23, 2013 5:36 pm
by morganp
I was really sad when I finally got Eclipse on an Anorithil.

Re: Eclipse (staff artifact) causes energy decay

Posted: Sat Aug 24, 2013 1:05 am
by PureQuestion
Wasn't really my intention, will get Darkgod to look at that, I suppose

Re: Eclipse (staff artifact) causes energy decay

Posted: Sun Sep 15, 2013 5:53 am
by HousePet
Thread necro, cos I'm writing a correction to the bug for my Midnight addon and I'm not sure if DarkGod has got a fix in the svn.

Here is my fix code:

Code: Select all

if self:attr("positive_at_rest") then
		local v = self.positive_at_rest * self.max_positive / 100
		if (self:getPositive() > v or self:attr("positive_at_rest_disable")) and self:attr("positive_rising") then 
			self.positive_regen = self.positive_regen - 2 * self.positive_regen_ref
			self.positive_rising = false
		elseif self:getPositive() < v and not self:attr("positive_rising") then 
			self.positive_regen = self.positive_regen + 2 * self.positive_regen_ref
			self.positive_rising = true
		end
	end
	if self:attr("negative_at_rest") then
		local v = self.negative_at_rest * self.max_negative / 100
		if (self:getNegative() > v or self:attr("negative_at_rest_disable")) and self:attr("negative_rising") then 
			self.negative_regen = self.negative_regen - 2 * self.negative_regen_ref
			self.negative_rising = false
		elseif self:getNegative() < v and not self:attr("negative_rising") then 
			self.negative_regen = self.negative_regen + 2 * self.negative_regen_ref
			self.negative_rising = true
		end
	end
This requires positive_regen_ref and negative_regen_ref to be removed from the staff as well.

Re: Eclipse (staff artifact) causes energy decay

Posted: Tue Oct 08, 2013 3:04 am
by HousePet
Bumpage cos DarkGod needs to fix it. :P

Re: Eclipse (staff artifact) causes energy decay

Posted: Wed Dec 04, 2013 9:48 pm
by darkgod
fixed

Re: Eclipse (staff artifact) causes energy decay

Posted: Thu Dec 05, 2013 2:26 am
by HousePet
HOOORRAAAAYY!!!!