[1.6 beta3] 10000% item slow effect
Posted: Wed Oct 16, 2019 1:06 pm
There is a parenthese missing in the function so now item slow effect is almost 100 times of what it should be.
Everything about ToME
https://forums.te4.org/
Code: Select all
projector = function(src, x, y, type, dam, state)
state = initState(state)
useImplicitCrit(src, state)
local target = game.level.map(x, y, Map.ACTOR)
if target and rng.percent(dam) then
local slow_power = math.floor(src:combatStatScale(src:combatMindpower(), 20, 70))+10 / 100
*Brackets missing^
target:setEffect(target.EFF_SLOW, 3, {power = slow_power, no_ct_effect=true})
end
end,