Page 1 of 1

[1.6 beta3] 10000% item slow effect

Posted: Wed Oct 16, 2019 1:06 pm
by helminthauge
There is a parenthese missing in the function so now item slow effect is almost 100 times of what it should be.

Re: [1.6 beta3] 10000% item slow effect

Posted: Wed Oct 16, 2019 1:17 pm
by starsapphire
Same problem, screenshot here.
ScreenShot20191016211319.png
ScreenShot20191016211319.png (210.27 KiB) Viewed 446 times
In `data/damage_types.lua:2269`

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,