Skip to content
Snippets Groups Projects
Commit 94c170db authored by dg's avatar dg
Browse files

Crit chance is bound to 0-100% range

Flamespit description fixed


git-svn-id: http://svn.net-core.org/repos/t-engine4@4989 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4398f10c
No related branches found
No related tags found
No related merge requests found
......@@ -896,7 +896,7 @@ function _M:combatCrit(weapon)
end
local crit = self.combat_physcrit + (self:getCun() - 10) * 0.3 + (self:getLck() - 50) * 0.30 + (weapon.physcrit or 1) + addcrit
return crit
return util.bound(crit, 0, 100)
end
--- Gets the damage range
......@@ -1070,7 +1070,7 @@ end
function _M:combatSpellCrit()
local crit = self.combat_spellcrit + (self:getCun() - 10) * 0.3 + (self:getLck() - 50) * 0.30 + 1
return crit
return util.bound(crit, 0, 100)
end
--- Gets mindcrit
......@@ -1083,7 +1083,7 @@ function _M:combatMindCrit(add)
local crit = self.combat_mindcrit + (self:getCun() - 10) * 0.3 + (self:getLck() - 50) * 0.30 + 1 + add
return crit
return util.bound(crit, 0, 100)
end
--- Gets spellspeed
......@@ -1166,9 +1166,9 @@ function _M:spellCrit(dam, add_chance)
game.logSeen(self, "#{bold}#%s's spell attains critical power!#{normal}#", self.name:capitalize())
if self:attr("mana_on_crit") then self:incMana(self:attr("mana_on_crit")) end
if self:attr("vim_on_crit") then self:incVim(self:attr("vim_on_crit")) end
if self:attr("spellsurge_on_crit") then
local power = self:attr("spellsurge_on_crit")
self:setEffect(self.EFF_SPELLSURGE, 10, {power=power, max=power*3})
......
......@@ -36,8 +36,8 @@ newTalent{ short_name = "RITCH_FLAMESPITTER_BOLT",
return true
end,
info = function(self, t)
return ([[Conjures up a bolt of fire doing %0.2f fire damage.
The damage will increase with the Magic stat]]):format(damDesc(self, DamageType.FIRE, self:combatTalentSpellDamage(t, 8, 120)))
return ([[Spits a bolt of fire doing %0.2f fire damage.
The damage will increase with mindpower.]]):format(damDesc(self, DamageType.FIRE, self:combatTalentMindDamage(t, 8, 120)))
end,
}
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment