ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sat Dec 07, 2019 6:31 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Aug 22, 2013 10:56 pm 
Offline
Halfling

Joined: Sun Aug 04, 2013 9:26 pm
Posts: 86
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.


Top
 Profile  
 
PostPosted: Fri Aug 23, 2013 5:36 pm 
Offline
Higher

Joined: Tue Jul 02, 2013 6:31 am
Posts: 64
I was really sad when I finally got Eclipse on an Anorithil.


Top
 Profile  
 
PostPosted: Sat Aug 24, 2013 1:05 am 
Offline
Master Artificer

Joined: Fri Feb 03, 2012 3:53 am
Posts: 726
Wasn't really my intention, will get Darkgod to look at that, I suppose


Top
 Profile  
 
PostPosted: Sun Sep 15, 2013 5:53 am 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5963
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:
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.

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
PostPosted: Tue Oct 08, 2013 3:04 am 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5963
Bumpage cos DarkGod needs to fix it. :P

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
PostPosted: Wed Dec 04, 2013 9:48 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10438
Location: Angolwen
fixed

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
PostPosted: Thu Dec 05, 2013 2:26 am 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5963
HOOORRAAAAYY!!!!

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group