v0.3.4: tweaked burning, now does less damage at low HP, no longer auto-resists

This commit is contained in:
Evan Debenham 2016-01-06 03:15:07 -05:00 committed by Evan Debenham
parent d6b5fee9bc
commit 0315cfec77
2 changed files with 5 additions and 4 deletions
src/com/shatteredpixel/shatteredpixeldungeon
actors/buffs
messages/actors

View File

@ -75,8 +75,10 @@ public class Burning extends Buff implements Hero.Doom {
public boolean act() {
if (target.isAlive()) {
target.damage( Random.Int( 1, 5 ), this );
//maximum damage scales from 6 to 2 depending on remaining hp.
int maxDmg = 3 + Math.round( 4 * target.HP / (float)target.HT );
target.damage( Random.Int( 1, maxDmg ), this );
Buff.detach( target, Chill.class);
if (target instanceof Hero) {
@ -121,7 +123,6 @@ public class Burning extends Buff implements Hero.Doom {
left -= TICK;
if (left <= 0 ||
Random.Float() > (2 + (float)target.HP / target.HT) / 3 ||
(Level.water[target.pos] && !target.flying)) {
detach();

View File

@ -52,7 +52,7 @@ actors.buffs.buff.#moreturns=%s more turns
actors.buffs.burning.name=Burning
actors.buffs.burning.heromsg=You catch fire!
actors.buffs.burning.desc=Few things are more distressing than being engulfed in flames.\n\nFire will deal damage every turn until it is put out by water, expires, or it is resisted.Fire can be extinquished by stepping into water, or from the splash of a shattering potion.\n\nAdditionally, the fire may ignite flammable terrain or items that it comes into contact with.\n\nThe burning will last for %s, or until it is resisted or extinquished.
actors.buffs.burning.desc=Few things are more distressing than being engulfed in flames.\n\nFire will deal damage every turn until it is put out by water or it expires. Fire can be extinquished by stepping into water, or from the splash of a shattering potion.\n\nAdditionally, the fire may ignite flammable terrain or items that it comes into contact with.\n\nThe burning will last for %s, or until it is extinquished.
actors.buffs.charm.name=Charmed
actors.buffs.charm.heromsg=You are charmed!