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:
parent
7f22a29b22
commit
51e5eb7502
@ -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
|
||||
|
6
make.rkt
6
make.rkt
@ -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")))
|
||||
|
Loading…
Reference in New Issue
Block a user