v2.5.0: fixed crystal guardians and spire not being recorded in journal
This commit is contained in:
committed by
Evan Debenham
parent
8c6788750e
commit
f5f7568ac9
@@ -30,6 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Doom;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.FloatingText;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Bestiary;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
@@ -138,6 +139,8 @@ public class CrystalGuardian extends Mob{
|
||||
|
||||
if (!recovering) {
|
||||
recovering = true;
|
||||
Bestiary.setSeen(getClass());
|
||||
Bestiary.countEncounter(getClass());
|
||||
if (sprite != null) ((CrystalGuardianSprite) sprite).crumple();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.Pushing;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.TargetedCell;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.quest.Pickaxe;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Bestiary;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
|
||||
@@ -336,6 +337,9 @@ public class CrystalSpire extends Mob {
|
||||
PixelScene.shake( 3, 0.7f );
|
||||
Blacksmith.Quest.beatBoss();
|
||||
|
||||
Bestiary.setSeen(CrystalSpire.class);
|
||||
Bestiary.countEncounter(CrystalSpire.class);
|
||||
|
||||
if (fieldOfView == null || fieldOfView.length != Dungeon.level.length()){
|
||||
fieldOfView = new boolean[Dungeon.level.length()];
|
||||
Dungeon.level.updateFieldOfView( CrystalSpire.this, fieldOfView );
|
||||
|
||||
@@ -27,6 +27,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.CrystalSpire;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mimic;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Pylon;
|
||||
@@ -849,7 +850,7 @@ public class WndJournal extends WndTabbed {
|
||||
|
||||
mob = (Mob) Reflection.newInstance(entityCls);
|
||||
|
||||
if (mob instanceof Mimic || mob instanceof Pylon) {
|
||||
if (mob instanceof Mimic || mob instanceof Pylon || mob instanceof CrystalSpire) {
|
||||
mob.alignment = Char.Alignment.ENEMY;
|
||||
}
|
||||
if (mob instanceof WandOfWarding.Ward){
|
||||
|
||||
Reference in New Issue
Block a user