Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------------------------------------------------------
- -- Gameplay Speed (Classic RTS Mode) --
- --------------------------------------------------------------------------------
- if modOptions and tobool(modOptions.gameplayspeed == "normal") then
- for id,unitDef in pairs(UnitDefs) do
- -- Spring.Echo(unitDef.buildcostmetal)
- unitDef.buildtime = unitDef.buildcostmetal
- end
- for name, unitDef in pairs(UnitDefs) do
- if unitDef.unitname == "ecommander" then
- -- Spring.Echo(unitDef.unitname)
- unitDef.workertime = unitDef.workertime * 2
- end
- end
- end
- if modOptions and tobool(modOptions.gameplayspeed == "fast") then
- for id,unitDef in pairs(UnitDefs) do
- -- Spring.Echo(unitDef.buildcostmetal)
- unitDef.buildtime = unitDef.buildcostmetal / 2
- end
- for name, unitDef in pairs(UnitDefs) do
- if unitDef.unitname == "ecommander" then
- -- Spring.Echo(unitDef.unitname)
- unitDef.workertime = unitDef.workertime * 2
- end
- end
- end
- if modOptions and tobool(modOptions.gameplayspeed == "faster") then
- for id,unitDef in pairs(UnitDefs) do
- -- Spring.Echo(unitDef.buildcostmetal)
- unitDef.buildtime = unitDef.buildcostmetal / 4
- end
- end
- if modOptions then
- if modOptions.gameplayspeed == nil then
- Spring.Echo("Gameplay Speed is set to fastest")
- else
- Spring.Echo("Gameplay Speed is set to " .. modOptions.gameplayspeed)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment