v0.3.0: changed food to work with new recharging mechanic. Also removed charging from lightning trap.

This commit is contained in:
Evan Debenham
2015-03-30 15:55:34 -04:00
committed by Evan Debenham
parent 348f16c19b
commit 75f1181d27
4 changed files with 8 additions and 6 deletions
@@ -20,6 +20,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.food;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Hunger;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
@@ -75,7 +76,8 @@ public class Food extends Item {
}
break;
case MAGE:
hero.belongings.charge( false );
//1 charge
Buff.affect( hero, ScrollOfRecharging.Recharging.class, 4f );
ScrollOfRecharging.charge( hero );
break;
case ROGUE: