V0.2.0: fixed a badge bug in Potion of Might
This commit is contained in:
parent
13a9a73203
commit
0b3a3a3730
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.items.potions;
|
package com.shatteredpixel.shatteredpixeldungeon.items.potions;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.Badges;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||||
|
@ -36,6 +37,8 @@ public class PotionOfMight extends PotionOfStrength {
|
||||||
hero.HP += 5;
|
hero.HP += 5;
|
||||||
hero.sprite.showStatus( CharSprite.POSITIVE, "+1 str, +5 ht" );
|
hero.sprite.showStatus( CharSprite.POSITIVE, "+1 str, +5 ht" );
|
||||||
GLog.p( "Newfound strength surges through your body." );
|
GLog.p( "Newfound strength surges through your body." );
|
||||||
|
|
||||||
|
Badges.validateStrengthAttained();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user