Flameshock alteration

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Flameshock alteration

#1 Post by lukep »

Currently, the spell flameshock checks stun immunity to see if it applies the burning shock effect that stuns and burns the target. One quirk about this is that having stun immunity makes the target immune to the burning damage as well. Changing one part of flameshock damage from:

Code: Select all

		if target then
			-- Set on fire!
			if target:canBe("stun") then
				target:setEffect(target.EFF_BURNING_SHOCK, dam.dur, {src=src, power=dam.dam / dam.dur, apply_power=src:combatSpellpower()})
			else
				game.logSeen(target, "%s resists the searing flame!", target.name:capitalize())
			end
To:

Code: Select all

		if target then
			-- Set on fire!
			if target:canBe("stun") then
				target:setEffect(target.EFF_BURNING_SHOCK, dam.dur, {src=src, power=dam.dam / dam.dur, apply_power=src:combatSpellpower()})
			else
				target:setEffect(target.EFF_BURNING, dam.dur, {src=src, power=dam.dam / dam.dur, apply_power=src:combatSpellpower()})
			end
would change this behaviour to make it so that stun immune targets are still burned, but not stunned. (I think. I haven't tested the code).
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Flameshock alteration

#2 Post by darkgod »

Yeah but I meant it to not burn if resisted :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply