v0.6.4: into darkness challenge no longer reduces torch duration
This commit is contained in:
parent
6756c09204
commit
7532d4ed02
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.items;
|
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.Buff;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||||
|
@ -66,12 +64,8 @@ public class Torch extends Item {
|
||||||
hero.sprite.operate( hero.pos );
|
hero.sprite.operate( hero.pos );
|
||||||
|
|
||||||
detach( hero.belongings.backpack );
|
detach( hero.belongings.backpack );
|
||||||
|
|
||||||
if (Dungeon.isChallenged(Challenges.DARKNESS)){
|
Buff.affect(hero, Light.class, Light.DURATION);
|
||||||
Buff.affect(hero, Light.class, 2*Light.DURATION/3f);
|
|
||||||
} else {
|
|
||||||
Buff.affect(hero, Light.class, Light.DURATION);
|
|
||||||
}
|
|
||||||
|
|
||||||
Emitter emitter = hero.sprite.centerEmitter();
|
Emitter emitter = hero.sprite.centerEmitter();
|
||||||
emitter.start( FlameParticle.FACTORY, 0.2f, 3 );
|
emitter.start( FlameParticle.FACTORY, 0.2f, 3 );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user