v0.6.4: into darkness challenge no longer reduces torch duration

This commit is contained in:
Evan Debenham 2018-03-30 17:48:16 -04:00
parent 6756c09204
commit 7532d4ed02

View File

@ -21,8 +21,6 @@
package com.shatteredpixel.shatteredpixeldungeon.items;
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
@ -66,12 +64,8 @@ public class Torch extends Item {
hero.sprite.operate( hero.pos );
detach( hero.belongings.backpack );
if (Dungeon.isChallenged(Challenges.DARKNESS)){
Buff.affect(hero, Light.class, 2*Light.DURATION/3f);
} else {
Buff.affect(hero, Light.class, Light.DURATION);
}
Buff.affect(hero, Light.class, Light.DURATION);
Emitter emitter = hero.sprite.centerEmitter();
emitter.start( FlameParticle.FACTORY, 0.2f, 3 );