v0.2.3: reduced the severity of curses on Horn of Plenty and Chalice of Blood
This commit is contained in:
@@ -25,8 +25,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.SpellSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.HornOfPlenty;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
@@ -103,18 +101,6 @@ public class Food extends Item {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doPickUp( Hero hero ){
|
||||
Artifact.ArtifactBuff buff = hero.buff( HornOfPlenty.hornRecharge.class );
|
||||
if (buff != null && buff.isCursed()){
|
||||
GLog.n("Your cursed horn greedily devours the food!");
|
||||
Sample.INSTANCE.play( Assets.SND_EAT );
|
||||
hero.spendAndNext( TIME_TO_PICK_UP );
|
||||
return true;
|
||||
}
|
||||
return super.doPickUp( hero );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String info() {
|
||||
return
|
||||
"Nothing fancy here: dried meat, " +
|
||||
|
||||
Reference in New Issue
Block a user