v1.3.2: adjusted when qualifications for boss badges are set to true

This commit is contained in:
Evan Debenham
2022-07-19 15:06:42 -04:00
parent 571acc76ff
commit 40b16154dc
6 changed files with 11 additions and 1 deletions

View File

@@ -341,7 +341,7 @@ public class Dungeon {
level.create();
Statistics.qualifiedForNoKilling = !bossLevel();
Statistics.qualifiedForBossChallengeBadge = bossLevel();
Statistics.qualifiedForBossChallengeBadge = false;
return level;
}

View File

@@ -262,6 +262,7 @@ public class CavesBossLevel extends Level {
@Override
public void seal() {
super.seal();
Statistics.qualifiedForBossChallengeBadge = true;
int entrance = entrance();
set( entrance, Terrain.WALL );

View File

@@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.levels;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Bones;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.DwarfKing;
@@ -299,6 +300,7 @@ public class CityBossLevel extends Level {
@Override
public void seal() {
super.seal();
Statistics.qualifiedForBossChallengeBadge = true;
//moves intelligent allies with the hero, preferring closer pos to entrance door
int doorPos = pointToCell(new Point(arena.left + arena.width()/2, arena.bottom));

View File

@@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.levels;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Bones;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
@@ -220,6 +221,7 @@ public class HallsBossLevel extends Level {
@Override
public void seal() {
super.seal();
Statistics.qualifiedForBossChallengeBadge = true;
int entrance = entrance();
set( entrance, Terrain.EMPTY_SP );
GameScene.updateMap( entrance );

View File

@@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Bones;
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
@@ -419,6 +420,7 @@ public class PrisonBossLevel extends Level {
}
seal();
Statistics.qualifiedForBossChallengeBadge = true;
set(pointToCell(tenguCellDoor), Terrain.LOCKED_DOOR);
GameScene.updateMap(pointToCell(tenguCellDoor));

View File

@@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.levels;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Bones;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Goo;
@@ -168,6 +169,8 @@ public class SewerBossLevel extends SewerLevel {
super.seal();
Statistics.qualifiedForBossChallengeBadge = true;
set( entrance(), Terrain.WATER );
GameScene.updateMap( entrance() );
GameScene.ripple( entrance() );