v0.3.0: changed food to work with new recharging mechanic. Also removed charging from lightning trap.
This commit is contained in:
committed by
Evan Debenham
parent
348f16c19b
commit
75f1181d27
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user