mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 04:11:39 +09:00
.
This commit is contained in:
@@ -48,11 +48,17 @@ if settings.startup['PHI-PB'].value then
|
|||||||
player.print('Parameter need to be in range of 0 - 10')
|
player.print('Parameter need to be in range of 0 - 10')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(items['bonus']['player_bonus']) do
|
for _, v in pairs(items['bonus']['player_bonus']) do
|
||||||
if v.enabled then
|
if v.enabled then
|
||||||
game.players[command.player_index][v.name] = game.players[command.player_index][v.name] + (bonus / 10)
|
game.players[command.player_index][v.name] = game.players[command.player_index][v.name] + (bonus / 10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (bonus > 0) then
|
||||||
|
if (player.character) then
|
||||||
|
player.ticks_to_respawn = 120
|
||||||
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user