v0.6.0: interacting with sheep now spends time

This commit is contained in:
Evan Debenham 2017-05-06 03:11:26 -04:00
parent 8c30dad29f
commit 3636a9bb67

View File

@ -21,8 +21,10 @@
package com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs; package com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.SheepSprite; import com.shatteredpixel.shatteredpixeldungeon.sprites.SheepSprite;
import com.watabou.utils.Random; import com.watabou.utils.Random;
@ -63,7 +65,8 @@ public class Sheep extends NPC {
@Override @Override
public boolean interact() { public boolean interact() {
yell( Messages.get(this, Random.element( LINE_KEYS )) ); sprite.showStatus( CharSprite.NEUTRAL, Messages.get(this, Random.element( LINE_KEYS )) );
Dungeon.hero.spendAndNext(1f);
return false; return false;
} }
} }