资深玩家
  
- 贡献度
- 93
- 金元
- 103166
- 积分
- 10689
- 精华
- 0
- 注册时间
- 2006-1-25
|
local GameEntityCount = 200000
local MaxPopulation = 2000(人数2000够了)
-- Original mod code
function NoLimitsMod()
-- Sets the entity count
config.MaxGameObjectExCount = GameEntityCount
config.MaxGameObjectCount = GameEntityCount
-- Remove the road construction limitations
road_construction.ReachedLimit = function(x)
return false
end
-- Sets the population
MigrationMaxCitizens = MaxPopulation
ImmigrationRandomize = function(y)
return MulDivRound(y, MaxPopulation - CitizenCount, 60)
end
太阳能电力
SolarPlant["upgrades"][1]["param1"] = 500
SolarPlant["upgrades"][2]["param1"] = 600
SolarPlant["upgrades"][3]["param1"] = 700
TTG电信覆盖范围
TelecomHQ["upgrades"][1]["param1"] = 400
TelecomHQ["upgrades"][2]["param1"] = 500
TelecomHQ["upgrades"][3]["param1"] = 600
TelecomHQ["modes"][1]["param1"] = 35
水处理厂
g_Classes.WaterTreatment.num_workers = 10
g_Classes.WaterTreatment.job_quality = 85
g_Classes.WaterTreatment.clamp_radius = 6000
小教堂
g_Classes.Church.num_people_serviced = 50
g_Classes.Church.num_workers = 5
g_Classes.Church.job_quality = 85
大教堂
g_Classes.CrystalCathedral.num_people_serviced = 100
g_Classes.CrystalCathedral.num_workers = 10
g_Classes.CrystalCathedral.base_service_quality = 240
end
-- Only fire once
local FiredOnce = false
-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)
-- Fire until fired once
if not FiredOnce then
-- If we boot, trip it ...
if(mode == "Boot") then
FiredOnce = true
-- Run the thread to bypass it
CreateRealTimeThread(function()
-- Do mod loading code here.
NoLimitsMod()
-- Reconfigure/force the settings every map load.
OnMsg.MapPermanentObjectsLoaded = function()
NoLimitsMod()
end
end)
end
end
end
-- Legacy load (what the original mod used)
OnMsg.ClassesPreprocess = function()
NoLimitsMod()
end
挑戰模式下
原油蘊藏量
g_Classes.SmallOilMarker.Amount =999990000
g_Classes.LargeOilMarker.Amount =999990000
煉油廠出口儲存容量
OilRefinery["upgrades"][1]["param1"] = 500000
|
|