v2.5.4: fixed imp's new terrain override not setting terrain flags

This commit is contained in:
Evan Debenham
2024-10-06 13:38:17 -04:00
parent e3a11ba771
commit 7215fc999d

View File

@@ -34,6 +34,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.quest.DwarfToken;
import com.shatteredpixel.shatteredpixeldungeon.items.rings.Ring;
import com.shatteredpixel.shatteredpixeldungeon.journal.Notes;
import com.shatteredpixel.shatteredpixeldungeon.levels.CityLevel;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
@@ -231,7 +232,7 @@ public class Imp extends NPC {
spawned = true;
//imp always spawns on an empty tile, for better visibility
level.map[ npc.pos ] = Terrain.EMPTY;
Level.set( npc.pos, Terrain.EMPTY, level);
//always assigns monks on floor 17, golems on floor 19, and 50/50 between either on 18
switch (Dungeon.depth){