Page 1 of 1

[b37] Blinding Darkness damage

Posted: Sat Jan 28, 2012 2:22 am
by lukep
"Acid" in the fifth line should be changed to "Darkness"?

Code: Select all

-- Darkness damage + blind chance
newDamageType{
	name = "blinding darkness", type = "DARKNESS_BLIND",
	projector = function(src, x, y, type, dam)
		local realdam = DamageType:get(DamageType.ACID).projector(src, x, y, DamageType.DARKNESS, dam)
		local target = game.level.map(x, y, Map.ACTOR)
		if target and rng.percent(25) then
			if target:canBe("blind") then
				target:setEffect(target.EFF_BLINDED, 3, {src=src, apply_power=src:combatSpellpower()})
			else
				game.logSeen(target, "%s resists!", target.name:capitalize())
			end
		end
		return realdam
	end,
}

Re: [b37] Blinding Darkness damage

Posted: Sat Feb 04, 2012 12:51 am
by darkgod
fixed