v0.8.0: Fixes:

- fixed various crash bugs in new DM fight
- fixed bags not being registered as dropped
- fixed a typo in DM fight
This commit is contained in:
Evan Debenham 2020-01-19 15:08:20 -05:00
parent cc6e981717
commit 2673220c79
4 changed files with 36 additions and 18 deletions

View File

@ -176,10 +176,10 @@ public class NewDM300 extends Mob {
} }
} else { } else {
if (!canReach){
if (enemy == null) enemy = Dungeon.hero; if (enemy == null) enemy = Dungeon.hero;
if (!canReach){
if (fieldOfView[enemy.pos] && turnsSinceLastAbility >= MIN_COOLDOWN){ if (fieldOfView[enemy.pos] && turnsSinceLastAbility >= MIN_COOLDOWN){
lastAbility = GAS; lastAbility = GAS;
@ -371,6 +371,10 @@ public class NewDM300 extends Mob {
for (int y = 0; y < 7; y++) { for (int y = 0; y < 7; y++) {
pos = start + Dungeon.level.width() * y; pos = start + Dungeon.level.width() * y;
for (int x = 0; x < 7; x++) { for (int x = 0; x < 7; x++) {
if (!Dungeon.level.insideMap(pos)) {
pos++;
continue;
}
if (!Dungeon.level.solid[pos] && pos != safeCell && Random.Int(Dungeon.level.distance(rockCenter, pos)) == 0) { if (!Dungeon.level.solid[pos] && pos != safeCell && Random.Int(Dungeon.level.distance(rockCenter, pos)) == 0) {
GameScene.add(Blob.seed(pos, 1, FallingRocks.class)); GameScene.add(Blob.seed(pos, 1, FallingRocks.class));
} }

View File

@ -304,6 +304,16 @@ public class ShopRoom extends SpecialRoom {
} }
} }
if (bestBag instanceof VelvetPouch){
Dungeon.LimitedDrops.VELVET_POUCH.drop();
} else if (bestBag instanceof ScrollHolder){
Dungeon.LimitedDrops.SCROLL_HOLDER.drop();
} else if (bestBag instanceof PotionBandolier){
Dungeon.LimitedDrops.POTION_BANDOLIER.drop();
} else if (bestBag instanceof MagicalHolster){
Dungeon.LimitedDrops.MAGICAL_HOLSTER.drop();
}
return bestBag; return bestBag;
} }

View File

@ -74,6 +74,8 @@ public class Fadeleaf extends Plant {
} else if (ch instanceof Mob && !ch.properties().contains(Char.Property.IMMOVABLE)) { } else if (ch instanceof Mob && !ch.properties().contains(Char.Property.IMMOVABLE)) {
if (!Dungeon.bossLevel()) {
int count = 10; int count = 10;
int newPos; int newPos;
do { do {
@ -83,14 +85,16 @@ public class Fadeleaf extends Plant {
} }
} while (newPos == -1); } while (newPos == -1);
if (newPos != -1 && !Dungeon.bossLevel()) { if (newPos != -1) {
ch.pos = newPos; ch.pos = newPos;
if (((Mob) ch).state == ((Mob) ch).HUNTING) ((Mob) ch).state = ((Mob) ch).WANDERING; if (((Mob) ch).state == ((Mob) ch).HUNTING)
((Mob) ch).state = ((Mob) ch).WANDERING;
ch.sprite.place(ch.pos); ch.sprite.place(ch.pos);
ch.sprite.visible = Dungeon.level.heroFOV[ch.pos]; ch.sprite.visible = Dungeon.level.heroFOV[ch.pos];
} }
}
} }

View File

@ -132,7 +132,7 @@ levels.newcavesbosslevel.wires_name=Exposed wiring
levels.newcavesbosslevel.wires_desc=The ground is partially dug up here, showing some large exposed wires. They must be connecting the various electrical machines together.\n\nThe wires must have some current running through them. If DM-300 steps here it may be able to draw power from there. levels.newcavesbosslevel.wires_desc=The ground is partially dug up here, showing some large exposed wires. They must be connecting the various electrical machines together.\n\nThe wires must have some current running through them. If DM-300 steps here it may be able to draw power from there.
levels.newcavesbosslevel.energy_desc=The ground here is sparking with electricity, and is harmful to step on. The sparks seem to be stronger in some places than others... perhaps they lead to the power source? levels.newcavesbosslevel.energy_desc=The ground here is sparking with electricity, and is harmful to step on. The sparks seem to be stronger in some places than others... perhaps they lead to the power source?
levels.newcavesbosslevel.gate_name=Metal gate levels.newcavesbosslevel.gate_name=Metal gate
levels.newcavesbosslevel.gate_desc=A large metal gate that blocks the path into the dwarven metropolis. The metal box in the center is producing a loud humming noice, it must be connected to the circuitry and machines nearby. Perhaps destroying DM-300 will open the gate? levels.newcavesbosslevel.gate_desc=A large metal gate that blocks the path into the dwarven metropolis. The metal box in the center is producing a loud humming noise, it must be connected to the circuitry and machines nearby. Perhaps destroying DM-300 will open the gate?
levels.newcavesbosslevel.gate_desc_broken=The gate must have been connected to DM-300 in some way, as it exploded when DM-300 was defeated. Now only broken pieces remain. levels.newcavesbosslevel.gate_desc_broken=The gate must have been connected to DM-300 in some way, as it exploded when DM-300 was defeated. Now only broken pieces remain.
levels.newcavesbosslevel.water_desc=With all the electricity around here water might not always be safe... levels.newcavesbosslevel.water_desc=With all the electricity around here water might not always be safe...