Showing
1 changed file
with
5 additions
and
0 deletions
... | ... | @@ -348,6 +348,11 @@ newTalent{ |
348 | 348 | game.uiset:setupMinimap(game.level) |
349 | 349 | game.nicer_tiles:postProcessLevelTilesOnLoad(game.level) |
350 | 350 | |
351 | + if game.level.map:checkEntity(game.player.x, game.player.y, Map.TERRAIN, "block_move") then | |
352 | + -- Emergency teleport in case we somehow end up in a wall | |
353 | + game.player:teleportRandom(math.floor(game.level.map.w / 2), math.floor(game.level.map.h / 2), 100) | |
354 | + end | |
355 | + | |
351 | 356 | game.logPlayer(game.player, "#LIGHT_RED#You are brought back from the Fearscape!") |
352 | 357 | end) |
353 | 358 | ... | ... |
-
Please register or login to post a comment