v2.5.4: fixed imp's new terrain override not setting terrain flags
This commit is contained in:
+2
-1
@@ -34,6 +34,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.quest.DwarfToken;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.items.rings.Ring;
|
import com.shatteredpixel.shatteredpixeldungeon.items.rings.Ring;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Notes;
|
import com.shatteredpixel.shatteredpixeldungeon.journal.Notes;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.CityLevel;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.CityLevel;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||||
@@ -231,7 +232,7 @@ public class Imp extends NPC {
|
|||||||
spawned = true;
|
spawned = true;
|
||||||
|
|
||||||
//imp always spawns on an empty tile, for better visibility
|
//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
|
//always assigns monks on floor 17, golems on floor 19, and 50/50 between either on 18
|
||||||
switch (Dungeon.depth){
|
switch (Dungeon.depth){
|
||||||
|
|||||||
Reference in New Issue
Block a user