v0.3.0c: the warlock now restores significantly more wand charge from eating food
This commit is contained in:
parent
b24b58b278
commit
94c069134d
|
@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass;
|
||||
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.ui.BuffIndicator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.watabou.utils.Bundle;
|
||||
|
@ -48,7 +49,7 @@ public class Hunger extends Buff implements Hero.Doom {
|
|||
|
||||
@Override
|
||||
public void storeInBundle( Bundle bundle ) {
|
||||
super.storeInBundle( bundle );
|
||||
super.storeInBundle(bundle);
|
||||
bundle.put( LEVEL, level );
|
||||
}
|
||||
|
||||
|
@ -116,8 +117,10 @@ public class Hunger extends Buff implements Hero.Doom {
|
|||
}
|
||||
|
||||
public void satisfy( float energy ) {
|
||||
if (((Hero) target).subClass == HeroSubClass.WARLOCK)
|
||||
if (((Hero) target).subClass == HeroSubClass.WARLOCK){
|
||||
Buff.affect( target, ScrollOfRecharging.Recharging.class, energy/50f);
|
||||
return;
|
||||
}
|
||||
|
||||
Artifact.ArtifactBuff buff = target.buff( HornOfPlenty.hornRecharge.class );
|
||||
if (buff != null && buff.isCursed()){
|
||||
|
|
Loading…
Reference in New Issue
Block a user