1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-25 22:32:18 +02:00

mor changes to mtn fortress

This commit is contained in:
Gerkiz
2021-05-16 14:57:42 +02:00
parent 11084fba25
commit fd58a2b4fc
4 changed files with 51 additions and 51 deletions

View File

@@ -1098,7 +1098,7 @@ local function on_player_used_capsule(event)
elseif object.obj_to_create == 'warp-gate' then
player.teleport(surface.find_non_colliding_position('character', game.forces.player.get_spawn_position(surface), 3, 0, 5), surface)
rpg_t[player.index].mana = 0
Functions.damage_player_over_time(player, 10)
Functions.damage_player_over_time(player, math.random(8, 16))
player.play_sound {path = 'utility/armor_insert', volume_modifier = 1}
p(({'rpg_main.warped_ok'}), Color.info)
rpg_t[player.index].mana = rpg_t[player.index].mana - object.mana_cost