From 3636a9bb679d7c5ed38f4b9f697db40bb4fe2ba5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 6 May 2017 03:11:26 -0400 Subject: [PATCH] v0.6.0: interacting with sheep now spends time --- .../shatteredpixeldungeon/actors/mobs/npcs/Sheep.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Sheep.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Sheep.java index 318021908..4ee2c600d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Sheep.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Sheep.java @@ -21,8 +21,10 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs; +import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; +import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite; import com.shatteredpixel.shatteredpixeldungeon.sprites.SheepSprite; import com.watabou.utils.Random; @@ -63,7 +65,8 @@ public class Sheep extends NPC { @Override 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; } } \ No newline at end of file