mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -35,6 +35,7 @@ if settings.startup['PHI-PB'].value then
|
|||||||
game.print('Command Error')
|
game.print('Command Error')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local bonus = tonumber(command.parameter)
|
local bonus = tonumber(command.parameter)
|
||||||
|
|
||||||
if type(bonus) ~= 'number' then
|
if type(bonus) ~= 'number' then
|
||||||
@@ -56,11 +57,9 @@ if settings.startup['PHI-PB'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
if (bonus > 0) then
|
script.on_event(defines.events.on_player_died, function(event)
|
||||||
if (player.character) then
|
game.players[event.player_index].ticks_to_respawn = 120
|
||||||
player.ticks_to_respawn = 120
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user