Replaced the air defence Command Center with a bunker for SHORADs. Will use the Command Center in the future for medium/long range SAMs.

This commit is contained in:
MetalStormGhost 2023-09-23 16:20:49 +03:00
parent c6a8673b5e
commit d870099f41
3 changed files with 9 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class PretenseLuaGenerator(LuaGenerator):
)
lua_string_zones += " }\n"
lua_string_zones += " }),\n"
lua_string_zones += " presets.upgrades.airdef.comCenter:extend({\n"
lua_string_zones += " presets.upgrades.airdef.bunker:extend({\n"
lua_string_zones += (
f" name = '{cp_name_trimmed}-mission-command-"
+ cp_side_str

View File

@ -464,6 +464,12 @@ presets = {
})
},
airdef = {
bunker = Preset:new({
display = 'Bunker',
cost = 1500,
type = 'upgrade',
template = "bunker-1"
}),
comCenter = Preset:new({
display = 'Command Center',
cost = 2500,

View File

@ -7524,6 +7524,8 @@ do
TemplateDB.templates["tv-tower"] = { type="TV tower", category="Fortifications", shape="tele_bash", dataCategory=TemplateDB.type.static }
TemplateDB.templates["bunker-1"] = { type="Sandbox", category="Fortifications", dataCategory=TemplateDB.type.static }
TemplateDB.templates["command-center"] = { type=".Command Center", category="Fortifications", shape="ComCenter", dataCategory=TemplateDB.type.static }
TemplateDB.templates["military-staff"] = { type="Military staff", category="Fortifications", shape="aviashtab", dataCategory=TemplateDB.type.static }