v0.3.4: moved recharging into its own class
This commit is contained in:
committed by
Evan Debenham
parent
2c0cd939f0
commit
b079aad640
@@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.FireImbue;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Hunger;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Invisibility;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Poison;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Recharging;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.ToxicImbue;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Weakness;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
@@ -161,7 +162,7 @@ public class Blandfruit extends Food {
|
||||
break;
|
||||
case MAGE:
|
||||
//1 charge
|
||||
Buff.affect(hero, ScrollOfRecharging.Recharging.class, 4f);
|
||||
Buff.affect(hero, Recharging.class, 4f);
|
||||
ScrollOfRecharging.charge(hero);
|
||||
break;
|
||||
case ROGUE:
|
||||
|
||||
@@ -25,6 +25,7 @@ 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.buffs.Recharging;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.SpellSprite;
|
||||
@@ -80,7 +81,7 @@ public class Food extends Item {
|
||||
break;
|
||||
case MAGE:
|
||||
//1 charge
|
||||
Buff.affect( hero, ScrollOfRecharging.Recharging.class, 4f );
|
||||
Buff.affect( hero, Recharging.class, 4f );
|
||||
ScrollOfRecharging.charge( hero );
|
||||
break;
|
||||
case ROGUE:
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.food;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Hunger;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Recharging;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
@@ -86,7 +87,7 @@ public class Pasty extends Food {
|
||||
case NONE: default:
|
||||
break; //do nothing extra
|
||||
case XMAS:
|
||||
Buff.affect( hero, ScrollOfRecharging.Recharging.class, 2f ); //half of a charge
|
||||
Buff.affect( hero, Recharging.class, 2f ); //half of a charge
|
||||
ScrollOfRecharging.charge( hero );
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user