1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00

Merge pull request #262 from ComfyFactory/mtn_v3

mtn v3 - small tweak to breached wall
This commit is contained in:
Gerkiz 2022-05-08 23:07:37 +02:00 committed by GitHub
commit 937911847f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ local check_distance_between_player_and_locomotive = function(player)
local t_y = gap_between_locomotive.highest_pos.y
if c_y - t_y <= gap_between_locomotive.neg_gap then
player.teleport({position.x, locomotive.position.y + gap_between_locomotive.neg_gap}, surface)
player.teleport({position.x, locomotive.position.y + gap_between_locomotive.neg_gap + 2}, surface)
player.print(({'breached_wall.hinder'}), Color.warning)
if player.character then
player.character.health = player.character.health - 5