v0.7.2c: bugfixes:

- fixed NPCs triggering ring of wealth when being shot by corruption
- fixed hourglass not updating charges correctly in some cases
- fixed blandfruit bush rarely appearing in 'on diet' challenge
- fixed strength from ring of might not appearing in rankings
This commit is contained in:
Evan Debenham 2019-04-23 19:34:38 -04:00
parent d4afe8697f
commit bc3b13f247
4 changed files with 14 additions and 4 deletions

View File

@ -290,7 +290,7 @@ public class TimekeepersHourglass extends Artifact {
type = buffType.POSITIVE;
}
float partialTime = 1f;
float partialTime = 0f;
ArrayList<Integer> presses = new ArrayList<Integer>();
@ -337,6 +337,11 @@ public class TimekeepersHourglass extends Artifact {
for (Mob mob : Dungeon.level.mobs.toArray(new Mob[0]))
if (mob.paralysed <= 0) mob.sprite.remove(CharSprite.State.PARALYSED);
GameScene.freezeEmitters = false;
while (partialTime > 0f){
partialTime -= 2f;
charge --;
}
updateQuickslot();
super.detach();

View File

@ -237,7 +237,9 @@ public class WandOfCorruption extends Wand {
} else {
curUser.earnExp(0, enemy.getClass());
}
enemy.rollToDropLoot();
if (enemy.alignment == Char.Alignment.ENEMY){
enemy.rollToDropLoot();
}
} else {
Buff.affect(enemy, Doom.class);
}

View File

@ -21,6 +21,7 @@
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.secret;
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Hunger;
import com.shatteredpixel.shatteredpixeldungeon.items.food.ChargrilledMeat;
@ -54,7 +55,9 @@ public class SecretLarderRoom extends SecretRoom {
Painter.fill(level, c.x-1, c.y-1, 3, 3, Terrain.WATER);
Painter.set(level, c, Terrain.GRASS);
level.plant(new BlandfruitBush.Seed(), level.pointToCell(c));
if (!Dungeon.isChallenged(Challenges.NO_FOOD)) {
level.plant(new BlandfruitBush.Seed(), level.pointToCell(c));
}
int extraFood = (int)(Hunger.STARVING - Hunger.HUNGRY) * (1 + Dungeon.depth / 5);

View File

@ -183,7 +183,7 @@ public class WndRanking extends WndTabbed {
pos += GAP + GAP;
pos = statSlot( this, Messages.get(this, "str"), Integer.toString( Dungeon.hero.STR ), pos );
pos = statSlot( this, Messages.get(this, "str"), Integer.toString( Dungeon.hero.STR() ), pos );
pos = statSlot( this, Messages.get(this, "health"), Integer.toString( Dungeon.hero.HT ), pos );
pos += GAP;