1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-30 21:19:46 +02:00

Fix penalties null index

This commit is contained in:
Aaron Veden 2019-10-13 13:53:36 -07:00
parent 7f22a29b22
commit 51e5eb7502
3 changed files with 217 additions and 210 deletions

View File

@ -313,6 +313,15 @@ function upgrade.attempt(natives)
game.surfaces[natives.activeSurface].print("Rampant - Version 0.17.28")
global.version = 95
end
if (global.version < 96) then
for i=#natives.squads,1,-1 do
natives.squads[i].penalties = {}
end
game.surfaces[natives.activeSurface].print("Rampant - Version 0.17.29")
global.version = 96
end
return starting ~= global.version, natives
end

View File

@ -4,7 +4,7 @@
(require file/zip)
(require json)
(define modFolder "/data/games/factorio/mods/")
(define modFolder "/mnt/gallery/gameFiles/factorio/mods/")
(define zipModFolder "/data/games/factorio2/mods/")
(define configuration (call-with-input-file "info.json"
(lambda (port)
@ -91,6 +91,4 @@
(define (runStart)
(copyFiles modFolder)
;;(copyFiles zipModFolder)
;; (makeZip modFolder)
(system*/exit-code "/data/games/factorio/bin/x64/factorio")))
(system*/exit-code "factorio")))