juggernaut
Posted: Mon Aug 09, 2010 8:59 am
Doesnt seem to be working - keeps telling me i have insufficient stamina despite that clearly not being the case
Sounds like a feature, not a bug - your fatigue value is applied as an increase to talent costs, so if you have fatigue value of 36%, using your talents will cost 36% more, thus(rounded up)82 rather than 60.trev wrote:actually it does work - but 'costs' 82 stamina at level 4 - as opposed to 60
Code: Select all
function _M:getTalentFullDescription(t, addlevel)
...
if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(t.stamina or t.sustain_stamina).." + "..self.fatigue end
Code: Select all
--- modules/tome/class/Actor.lua.old 2010-08-09 12:41:07.000000000 -0700
+++ modules/tome/class/Actor.lua 2010-08-09 12:58:56.000000000 -0700
@@ -1006,7 +1006,7 @@
end
if t.mana or t.sustain_mana then d[#d+1] = "#6fff83#Mana cost: #7fffd4#"..(t.mana or t.sustain_mana) end
- if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(t.stamina or t.sustain_stamina) end
+ if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(t.stamina or t.sustain_stamina).." + "..math.ceil((t.stamina or t.sustain_stamina) * self.fatigue/100).." fatigue" end
if t.equilibrium or t.sustain_equilibrium then d[#d+1] = "#6fff83#Equilibrium cost: #00ff74#"..(t.equilibrium or t.sustain_equilibrium) end
if t.vim or t.sustain_vim then d[#d+1] = "#6fff83#Vim cost: #888888#"..(t.vim or t.sustain_vim) end
if t.positive or t.sustain_positive then d[#d+1] = "#6fff83#Positive energy cost: #GOLD#"..(t.positive or t.sustain_positive) end
Code: Select all
diff -u modules/tome/class/Actor.lua.old modules/tome/class/Actor.lua
--- modules/tome/class/Actor.lua.old 2010-08-09 16:27:02.000000000 -0700
+++ modules/tome/class/Actor.lua 2010-08-09 16:23:55.000000000 -0700
@@ -1011,12 +1011,12 @@
else d[#d+1] = "#6fff83#Use mode: #00FF00#Activated"
end
- if t.mana or t.sustain_mana then d[#d+1] = "#6fff83#Mana cost: #7fffd4#"..(t.mana or t.sustain_mana) end
- if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(t.stamina or t.sustain_stamina) end
+ if t.mana or t.sustain_mana then d[#d+1] = "#6fff83#Mana cost: #7fffd4#"..(math.ceil(t.mana * (100 + self.fatigue) / 100) or t.sustain_mana) end
+ if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(math.ceil(t.stamina * (100 + self.fatigue) / 100) or t.sustain_stamina) end
if t.equilibrium or t.sustain_equilibrium then d[#d+1] = "#6fff83#Equilibrium cost: #00ff74#"..(t.equilibrium or t.sustain_equilibrium) end
if t.vim or t.sustain_vim then d[#d+1] = "#6fff83#Vim cost: #888888#"..(t.vim or t.sustain_vim) end
- if t.positive or t.sustain_positive then d[#d+1] = "#6fff83#Positive energy cost: #GOLD#"..(t.positive or t.sustain_positive) end
- if t.negative or t.sustain_negative then d[#d+1] = "#6fff83#Negative energy cost: #GREY#"..(t.negative or t.sustain_negative) end
+ if t.positive or t.sustain_positive then d[#d+1] = "#6fff83#Positive energy cost: #GOLD#"..(math.ceil(t.positive * (100 + self.fatigue) / 100) or t.sustain_positive) end
+ if t.negative or t.sustain_negative then d[#d+1] = "#6fff83#Negative energy cost: #GREY#"..(math.ceil(t.negative * (100 + self.fatigue) / 100) or t.sustain_negative) end
if self:getTalentRange(t) > 1 then d[#d+1] = "#6fff83#Range: #FFFFFF#"..self:getTalentRange(t)
else d[#d+1] = "#6fff83#Range: #FFFFFF#melee/personal"
end
Code: Select all
--- Actor.lua.old 2010-08-09 19:41:18.000000000 -0700
+++ Actor.lua 2010-08-09 19:44:32.000000000 -0700
@@ -1011,12 +1016,12 @@
else d[#d+1] = "#6fff83#Use mode: #00FF00#Activated"
end
- if t.mana or t.sustain_mana then d[#d+1] = "#6fff83#Mana cost: #7fffd4#"..(t.mana or t.sustain_mana) end
- if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(t.stamina or t.sustain_stamina) end
+ if t.mana or t.sustain_mana then d[#d+1] = "#6fff83#Mana cost: #7fffd4#"..(t.sustain_mana or t.mana * (100 + self.fatigue) / 100) end
+ if t.stamina or t.sustain_stamina then d[#d+1] = "#6fff83#Stamina cost: #ffcc80#"..(t.sustain_stamina or t.stamina * (100 + self.fatigue) / 100) end
if t.equilibrium or t.sustain_equilibrium then d[#d+1] = "#6fff83#Equilibrium cost: #00ff74#"..(t.equilibrium or t.sustain_equilibrium) end
if t.vim or t.sustain_vim then d[#d+1] = "#6fff83#Vim cost: #888888#"..(t.vim or t.sustain_vim) end
- if t.positive or t.sustain_positive then d[#d+1] = "#6fff83#Positive energy cost: #GOLD#"..(t.positive or t.sustain_positive) end
- if t.negative or t.sustain_negative then d[#d+1] = "#6fff83#Negative energy cost: #GREY#"..(t.negative or t.sustain_negative) end
+ if t.positive or t.sustain_positive then d[#d+1] = "#6fff83#Positive energy cost: #GOLD#"..(t.sustain_positive or t.positive * (100 + self.fatigue) / 100) end
+ if t.negative or t.sustain_negative then d[#d+1] = "#6fff83#Negative energy cost: #GREY#"..(t.sustain_negative or t.negative * (100 + self.fatigue) / 100) end
if self:getTalentRange(t) > 1 then d[#d+1] = "#6fff83#Range: #FFFFFF#"..self:getTalentRange(t)
else d[#d+1] = "#6fff83#Range: #FFFFFF#melee/personal"
end
Yeah, assuming equilibrium isn't an oversight I have to agree. Paradox isn't really a resource at all, it's merely a meter letting the player know how unstable the spacetime continuum has become.Taxorgian wrote:Also, if the chronomancy classes are added, Paradox/TI should not be affected by fatigue since Paradox/TI is basically self-limiting: in a different way but similar to equilibrium.