[1.0.5] Living Mucus
Moderator: Moderator
[1.0.5] Living Mucus
It seems to be underestimating the number of living mucusses you can have at once by 1.
My feedback meter decays into coding. Give me feedback and I make mods.
-
- Uruivellas
- Posts: 744
- Joined: Thu Nov 18, 2010 6:42 pm
Re: [1.0.5] Living Mucus
The number of mucus oozes you can have out is rounding incorrectly. Also, the talent is not correctly checking the talent maximum, which is separate from the general summoning limit. Fix:
Code: Select all
game/modules/tome/data/talents/gifts/mucus.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/game/modules/tome/data/talents/gifts/mucus.lua b/game/modules/tome/data/talents/gifts/mucus.lua
index 3292a7f..4f00133 100644
--- a/game/modules/tome/data/talents/gifts/mucus.lua
+++ b/game/modules/tome/data/talents/gifts/mucus.lua
@@ -159,12 +159,12 @@ newTalent{
require = gifts_req3,
points = 5,
mode = "passive",
- getMax = function(self, t) return math.max(1, self:combatStatScale("cun", 0.5, 5)) end,
+ getMax = function(self, t) return math.floor(math.max(1, self:combatStatScale("cun", 0.5, 5))) end,
getChance = function(self, t) return self:combatLimit(self:combatTalentMindDamage(t, 5, 300), 50, 12.6, 26, 32, 220) end, -- Limit < 50% --> 12.6 @ 36, 32 @ 220
spawn = function(self, t)
- if checkMaxSummon(self, true) or not self:canBe("summon") then return end
-
+ local notok, nb, sumlim = checkMaxSummon(self, true, 1, "is_mucus_ooze")
+ if notok or nb > t.getMax(self, t) or not self:canBe("summon") then return end
local ps = {}
for i, e in ipairs(game.level.map.effects) do
if e.damtype == DamageType.MUCUS then