From 10f8dc0d8405457b532cc42c4807a507c9aee9b2 Mon Sep 17 00:00:00 2001
From: j <okp57855@psoxs.com>
Date: Fri, 8 Dec 2017 07:29:02 +1300
Subject: [PATCH] new content plus addition refactouring.

---
 src/pregmod/SpecialForceUpgradeDec.tw       | 415 ++++++++++++++++
 src/pregmod/SpecialForceUpgradeTree.tw      |  62 +++
 src/uncategorized/SFMBarracks.tw            | 524 ++------------------
 src/uncategorized/securityForceEOWReport.tw | 454 +----------------
 4 files changed, 507 insertions(+), 948 deletions(-)
 create mode 100644 src/pregmod/SpecialForceUpgradeDec.tw
 create mode 100644 src/pregmod/SpecialForceUpgradeTree.tw

diff --git a/src/pregmod/SpecialForceUpgradeDec.tw b/src/pregmod/SpecialForceUpgradeDec.tw
new file mode 100644
index 00000000000..8cf357cc0e8
--- /dev/null
+++ b/src/pregmod/SpecialForceUpgradeDec.tw
@@ -0,0 +1,415 @@
+:: SpecialForceUpgradeDec [nobr]
+
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Barracks:''
+<br>
+/* 13 upgrades */
+<<if $securityForceArcologyUpgrades == 0>>
+	The barracks is currently quite basic, consisting of little more than a dormitory, armoury, a processing facility for human spoils, and a common area, sectioned off by stacks of empty supply crates. The cavernous space, however, is ripe for expansion.
+<<elseif $securityForceArcologyUpgrades == 1>>
+	The barracks has become more permanent, expanding into free space, erecting permanent dividers, and sectioning off an area for use as a garage and vehicle maintenance bay.
+<<elseif $securityForceArcologyUpgrades == 2>>
+	The barracks has added a facility for the storage, maintenance, and deployment of armed combat drones, and added storage facilities for the soldiers to store their personal spoils in.
+<<elseif $securityForceArcologyUpgrades == 3>>
+	The barracks has added additional support personnel and equipment, allowing the potential procurement of heavier infantry armour, fighting vehicles, and combat drones.
+<<elseif $securityForceArcologyUpgrades == 4>>
+	The barracks has expanded tremendously, adding an aerial control facility and express elevator connecting to a ring of launch pads and hangars built around the arcology's upper levels. Additional facilities have been added for soldier recreation, and Spartan quarters for live-in slaves, both menial and service, have been installed.
+<<elseif $securityForceArcologyUpgrades == 5>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly delineated soldier and logistical areas, dedicated support and recreation facilities, in addition to advanced command and control apparatus. As a final measure, heavy, long range, electromagnetic railgun artillery pieces have been installed in casemates along the aerial launch pads, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 6>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As a final measure, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in casemates along the aerial launch pads, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 7>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As a final measure, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 8>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 9>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery 356 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 10>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 11>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, dual barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 12>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+<<elseif $securityForceArcologyUpgrades == 13>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.
+<<elseif $securityForceArcologyUpgrades == 14>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>'Borowed' old world designs for a kill house.
+<<elseif $securityForceArcologyUpgrades == 15>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>Added electronics to the kill house.
+<<elseif $securityForceArcologyUpgrades == 16>>
+	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
+	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>Added VR support to the kill house.
+<</if>>
+
+<br><br>
+
+<div style="margin-left:1em">
+<<if $securityForcePersonnel < 100>>
+	The barracks' large dormitories are sparsely occupied, the few members of $securityForceName residing within them concentrating together in a corner. The hundreds of empty beds and lockers visible herald the future.
+<<elseif $securityForcePersonnel < 300>>
+	The barracks' large dormitories are lightly occupied, with the $securityForcePersonnel members of $securityForceName starting to spread out across them.
+<<elseif $securityForcePersonnel < 500>>
+	The barracks' large dormitories are moderately occupied, though the $securityForcePersonnel members of $securityForceName residing within have a considerable amount of extra room.
+<<elseif $securityForcePersonnel < 700>>
+	The barracks' large dormitories are well-occupied, and the $securityForcePersonnel members of $securityForceName within have started to form small cliques based on section and row.
+<<elseif $securityForcePersonnel < 1500>>
+	The barracks' large dormitories are near capacity, and the $securityForcePersonnel members of $securityForceName often barter their personal loot, whether it be monetary or human, for the choicest bunks.
+<</if>>
+</div>
+
+<<if $FacilitySupport == 1>>
+<br><br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''$facilitysupportName:''
+<br>
+<<if $LieutenantColonel != 0>><<SlaveFullName $LieutenantColonel>> is the Lieutenant Colonel of $securityForceName, primarily in charge of $FacilitySupportName.<</if>> <<if $FacilitySupportSlaves > 0>>There are $FacilitySupportSlaves slaves serving in $FacilitySupportName.<</if>> The <<if $FacilitySupportUpgrade == 3>>quantum teleportation system greatly improves efficiency<<elseif $FacilitySupportUpgrade == 2>>rapid tube system somewhat improves efficiency<<elseif $FacilitySupportUpgrade == 1>>specialized pathways slightly improves efficiency<<else>>general pathways does nothing to improve efficiency<</if>>.
+<br><<link "Enter the building then send a slave to serve in the HQ and facilities of $securityForceName">>
+	<<goto "FacilitySupport">>
+<</link>>
+<</if>>
+
+<br>
+
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Armory:''
+<br>
+/* 11 upgrades */
+<<if $securityForceInfantryPower == 0>>
+	The armory is well-stocked with high-quality personal weapons and light armour, but contains little in the way of exceptional armament.
+<<elseif $securityForceInfantryPower == 1>>
+	The armory has large stocks of the absolute latest personal weapons and light armour, and has added first-generation exo-suits to improve soldier lethality.
+<<elseif $securityForceInfantryPower == 2>>
+	The armory has acquired advanced tactical helmets and second-generation exo-suits to further improve soldier lethality.
+<<elseif $securityForceInfantryPower == 3>>
+	The armory has replaced deployed exo-suits with basic enclosed combat armour suits, and has further begun to deploy early electromagnetic (coilgun) weaponry.
+<<elseif $securityForceInfantryPower == 4>>
+	The armory has begun to equip the soldiers with more advanced combat armour suits, and has expanded its inventory of electromagnetic weaponry.
+<<elseif $securityForceInfantryPower == 5>>
+	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced small advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<<elseif $securityForceInfantryPower == 6>>
+	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced both small and medium advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<<elseif $securityForceInfantryPower == 7>>
+	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<<elseif $securityForceInfantryPower == 8>>
+	The armory has acquired heavy weapon attachments for its combat armour suits with basic thrusters, and has further sourced both small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<<elseif $securityForceInfantryPower == 9>>
+	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters, and has further sourced both small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<<elseif $securityForceInfantryPower == 10>>
+	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters,basic optical illusion kits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<<elseif $securityForceInfantryPower == 11>>
+	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters,advanced optical illusion kits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
+<</if>>
+
+<br><br>
+
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Stimulant Lab:''
+<br>
+/* 7 upgrades */
+<<if $securityForceStimulantPower == 0>>
+	The stimulant lab is providing the soldiers with standard ephedrine-based stimulants.
+<<elseif $securityForceStimulantPower == 1>>
+	The stimulant lab has improved the formula of the ephedrine-based stimulants, concentrating them and increasing both their potency, and the effectiveness of the soldiers under their influence.
+<<elseif $securityForceStimulantPower == 2>>
+	The stimulant lab has replaced the soldiers' stimulants with methamphetamine-based variants, greatly increasing their alertness and aggressiveness when under their influence.
+<<elseif $securityForceStimulantPower == 3>>
+	The stimulant lab has improved and concentrated the methamphetamine-based stimulants, and has also begun providing soldiers with phenylcyclidine-based dissociatives, allowing the soldiers to excuse their actions in the field and reducing any reluctance to follow severe orders.
+<<elseif $securityForceStimulantPower == 4>>
+	The stimulant lab has further refined the formulas of the methamphetamine-based stimulants and phenylcyclidine-based dissociatives, and has also begun providing tryptamine-based psychedelics to the soldiers, allowing them to avoid traumatic stress in the field.
+<<elseif $securityForceStimulantPower == 5>>
+	The stimulant lab has maximally refined the formulas of the methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed).
+<<elseif $securityForceStimulantPower == 6>>
+	The stimulant lab has slightly refined the formulas of higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed).
+<<elseif $securityForceStimulantPower == 7>>
+	The stimulant lab has maximally refined the formulas of higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed).
+<<elseif $securityForceStimulantPower == 8>>
+	The stimulant lab has mixed the higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics into a single dose further increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed). However side effects may include (no particular order): Dissociative Identity Disorder , severe clincal depresssion, unstopabble vomitting, extreme paranoia, PTSD, finally total organ failfure. Recommended by 9/10 doctors*. * only doctors of $securityForceName for a completely unbiased result.
+<<elseif $securityForceStimulantPower == 9>>
+	The stimulant lab has mixed the higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics into a single dose further increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed). Potentinal side effects have been reduced slightly to "only mildly" severe ones: Dissociative Identity Disorder , severe clincal depresssion, unstopabble vomitting, extreme paranoia and PTSD. Now recommended by 15/10 doctors*. * only doctors of $securityForceName for a completely unbiased result.
+<</if>>
+
+<<if _Garage > 0 && $securityForceArcologyUpgrades >= 1>>
+<br><br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Garage:''
+<br>
+/* 7 upgrades */
+<<if $securityForceVehiclePower == 0>>
+	The garage contains basic, unarmoured vehicles for use by the soldiers, primarily high-end civilian vehicles with jury-rigged crew-served weapons.
+<<elseif $securityForceVehiclePower == 1>>
+	The garage has replaced its technical fleet with armed military utility vehicles. It has also sourced customized, high-volume slave transports for better securing human spoils.
+<<elseif $securityForceVehiclePower == 2>>
+	The garage has added a number of light infantry fighting vehicles to its fleet, and acquired more slave transports to keep up with demand.
+<<elseif $securityForceVehiclePower == 3>>
+	The garage has acquired improved infantry fighting vehicles, and has also added some mobile artillery and other support vehicles.
+<<elseif $securityForceVehiclePower == 4>>
+	The garage has acquired some heavier armoured vehicles to augment the infantry fighting vehicles and expanded their inventory of artillery and support vehicles.
+<<elseif $securityForceVehiclePower == 5>>
+	The garage has replaced both its armoured and support vehicles with the most advanced variants possible, making the mobile unit of $securityForceName far superior to anything in the arcology's immediate area.
+<<elseif $securityForceVehiclePower == 6>>
+	The garage has replaced both its armoured and support vehicles with the most advanced light variants possible, making the mobile unit of $securityForceName far superior to anything in the arcology's immediate area.
+<<elseif $securityForceVehiclePower == 7>>
+	The garage has replaced both its armoured and support vehicles with the most advanced light and medium variants possible, making the mobile unit of $securityForceName far superior to anything in the arcology's immediate area.
+<</if>>
+
+/* 3 upgrades */
+<<if $securityForceHeavyBattleTank == 1>>
+	A basic heavy battle tank has been 'borrowed' from the old world.
+<<elseif $securityForceHeavyBattleTank == 2>>
+	Modernised the heavy battle tank's armor.
+<<elseif $securityForceHeavyBattleTank == 3>>
+	Modernised the heavy battle tank's armor and upgradeded the main gun to a 356 cm barrel.
+<</if>>
+<</if>>
+
+<<if $securityForceArcologyUpgrades >= 4>>
+<br><br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Hangar:''
+<br>
+/* 8 upgrades */
+<<if $securityForceAircraftPower == 0>>
+	The aerial fleet primarily consists of light transport VTOLs equipped with non-lethal weaponry.
+<<elseif $securityForceAircraftPower == 1>>
+	The aerial fleet's light transport VTOLs have been upgraded with additional fire-power and lethal weaponry.
+<<elseif $securityForceAircraftPower == 2>>
+	The aerial fleet's VTOLs have been upgraded to higher-capacity variants with heavier weaponry.
+<<elseif $securityForceAircraftPower == 3>>
+	The aerial fleet's medium transport VTOLs have been upgraded with enhanced armour and customized cargo compartments to better transport captured stock.
+<<elseif $securityForceAircraftPower == 4>>
+	The aerial fleet has acquired specialized attack VTOLs to complement and escort its advanced transport fleet, as well as to provide close air support.
+<<elseif $securityForceAircraftPower == 5>>
+	The aerial fleet has upgraded its attack VTOLs for enhanced lethality, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.
+<<elseif $securityForceAircraftPower == 6>>
+	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.
+<<elseif $securityForceAircraftPower == 7>>
+	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.
+<<elseif $securityForceAircraftPower == 8>>
+	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Also It now possesses a basic old world bomber.
+<<elseif $securityForceAircraftPower == 9>>
+	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Improved the bomber's engines.
+<<elseif $securityForceAircraftPower == 10>>
+	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Improved the bomber's engines and armour.
+<</if>>
+<<if $securityForceSpacePlanePower > 0>>
+	<br>
+	/* 11 upgrades */
+	<<if $securityForceSpacePlanePower == 1>>
+		A basic two engine SpacePlane has been 'borrowed' from the old world.
+	<<elseif $securityForceSpacePlanePower == 2>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature.
+	<<elseif $securityForceSpacePlanePower == 3>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,also mounted another engine on top of the space plane's tail.
+	<<elseif $securityForceSpacePlanePower == 4>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail and modernized the electronics.
+	<<elseif $securityForceSpacePlanePower == 5>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail,modernized the electronics in addition to the fuel lines to increase efficiency.
+		<<elseif $securityForceSpacePlanePower == 6>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.
+	<<elseif $securityForceSpacePlanePower == 7>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.
+	<<elseif $securityForceSpacePlanePower == 8>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.
+	<<elseif $securityForceSpacePlanePower == 9>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.
+	<<elseif $securityForceSpacePlanePower == 10>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.Replaced the skin of $securityForceName Space Plane with a basic optical illusion kit.
+	<<elseif $securityForceSpacePlanePower == 11>>
+		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.Replaced the skin of $securityForceName Space Plane with an advanced optical illusion kit.
+	<</if>>
+<</if>>
+<<if $securityForceFortressZeppelin > 0>>
+	<br>
+	/* 3 upgrades */
+	<<if $securityForceFortressZeppelin == 1>>
+		A basic fortress zeppelin has been 'borrowed' from the old world.
+	<<elseif $securityForceFortressZeppelin == 2>>
+		Modernized the fortress zeppelin's armor.
+	<<elseif $securityForceFortressZeppelin == 3>>
+		Modernized the fortress zeppelin's armor and weaponry.
+	<</if>>
+<</if>>
+<<if $securityForceAC130 > 0>>
+	<br>
+	/* 5 upgrades */
+	<<if $securityForceAC130 == 1>>
+		A basic AC-130 has been 'borrowed' from the old world.
+	<<elseif $securityForceAC130 == 2>>
+		Modernized the AC-130's armor.
+	<<elseif $securityForceAC130 == 3>>
+		Modernized the AC-130's armor and weaponry.
+	<<elseif $securityForceAC130 == 4>>
+		Modernized the AC-130's armor, weaponry and electronics.
+	<<elseif $securityForceAC130 == 5>>
+		Modernized the AC-130's armor, weaponry, electronics and crew seating.
+	<</if>>
+<</if>>
+<<if $securityForceHeavyTransport > 0>>
+	<br>
+	/* 3 upgrades */
+	<<if $securityForceHeavyTransport == 1>>
+		A basic heavy transport has been 'borrowed' from the old world.
+	<<elseif $securityForceHeavyTransport == 2>>
+		Modernized the heavy transport's armor.
+	<<elseif $securityForceHeavyTransport == 3>>
+		Modernized the armor and engines of the heavy transport.
+	<<elseif $securityForceHeavyTransport == 4>>
+		Modernized the armor and engines of the heavy transport. Replaced the ballistic gun mounts with electromagnetic ones.
+	<</if>>
+<</if>>
+<</if>>
+
+<<if $securityForceArcologyUpgrades >= 2>>
+<br><br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Drone Bay:''
+<br>
+/* 7 upgrades */
+<<if $securityForceDronePower == 0>>
+	The drone bay contains a small number of 're-purposed' non-military drones from the arcology's original contingent.
+<<elseif $securityForceDronePower == 1>>
+	The drone bay has replaced the security drones with basic, lightly-armoured military combat models possessing integrated small arms.
+<<elseif $securityForceDronePower == 2>>
+	The drone bay has replaced its basic military drones with more advanced models and added a number of support drones carrying heavy weaponry to its fleet.
+<<elseif $securityForceDronePower == 3>>
+	The drone bay has acquired even more advanced models of both the standard combat drones and the heavy support drones, and expanded its numbers of both.
+<<elseif $securityForceDronePower == 4>>
+	The drone bay has acted to upgrade both the standard and support models of drones to carry basic electromagnetic weaponry, improving their overall combat effectiveness.
+<<elseif $securityForceDronePower == 5>>
+	The drone bay has improved the electromagnetic armament of it's drones by mounting both miniaturized and heavy railguns on them. In addition further sourcing numerous models of drones for roles as diverse as reconnaissance, independent slave capture and swarming tactics.
+<<elseif $securityForceDronePower == 6>>
+	The drone bay has acquired even lighter advanced armoured combat Drones with electromagnetic weaponry, advanced heavy Drones with electromagnetic support weaponry along with specialized Drones for reconnaissance, capture, and swarm tactics.
+<<elseif $securityForceDronePower == 7>>
+	The drone bay has acquired even lighter advanced thicker armoured combat Drones with electromagnetic weaponry, advanced heavy Drones with electromagnetic support weaponry along with specialized Drones for reconnaissance, capture, and swarm tactics.
+<</if>>
+<</if>>
+
+<<if (_LaunchBayNO > 0 || _LaunchBayO > 0) && $securityForceArcologyUpgrades >= 4>>
+<br><br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Launch Bay:''
+<<if $securityForceSatellitePower > 0>>
+	<br>
+	/* 18 upgrades */
+	<<if $securityForceSatellitePower == 1>>
+		A basic Satellite 'borrowed' from the old world.
+	<<elseif $securityForceSatellitePower == 2>>
+		Modernized the Satellite's electronics.
+	<<elseif $securityForceSatellitePower == 3>>
+		Modernized the Satellite's electronics, wiring and circuitry.
+	<<elseif $securityForceSatellitePower == 4>>
+		Modernized the Satellite's electronics, wiring and circuitry.Installed a basic localized communications jammer to the Satellite (excludes your own frequencies with little to no leeway) that will "slightly" anger locals until it is deactivated.
+	<<elseif $securityForceSatellitePower == 5>>
+		Modernized the Satellite's electronics, wiring and circuitry.An advanced communications jammer is installed in the Satellite, increasing the AO localization, reducing the number of effected equipment.
+	<<elseif $securityForceSatellitePower == 6>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer power by 25% (now can damage effected equipment).
+	<<elseif $securityForceSatellitePower == 7>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).
+	<<elseif $securityForceSatellitePower == 8>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).The Satellite is now equipped with a basic EMP generator (advanced EMP hardening was applied before the insulation and activation) will "slightly" anger locals until it is deactivated.
+	<<elseif $securityForceSatellitePower == 9>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).The Satellite is now equipped with an advanced EMP generator, increasing the AO localization which reduces the quantity of effected equipment.
+	<<elseif $securityForceSatellitePower == 10>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator by 25% (now can damage effected equipment).
+	<<elseif $securityForceSatellitePower == 11>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).
+	<<elseif $securityForceSatellitePower == 12>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to be able to shoot a concentrated beam of pure energy that is able to level an entire city block. It required overhauling the Satellite's battery system and shielding.
+	<<elseif $securityForceSatellitePower == 13>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the bean enough to level a suburb.
+	<<elseif $securityForceSatellitePower == 14>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level a box of houses.
+	<<elseif $securityForceSatellitePower == 15>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level a single house.
+	<<elseif $securityForceSatellitePower == 16>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 366 cm.
+	<<elseif $securityForceSatellitePower == 17>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 30 cm.
+	<<elseif $securityForceSatellitePower == 18>>
+		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 15 cm.
+	<</if>>
+<</if>>
+<<if $securityForceGiantRobot > 0>>
+	<br>
+	/* 11 upgrades */
+	<<if $securityForceGiantRobot == 1>>
+		An old world giant robot has been 'Borrowed'.
+	<<elseif $securityForceGiantRobot == 2>>
+		Upgraded the giant robot's wiring and circuitry.
+	<<elseif $securityForceGiantRobot == 3>>
+		Upgraded the giant robot's wiring, circuitry and power efficiency.
+	<<elseif $securityForceGiantRobot == 4>>
+		Upgraded the giant robot's wiring, circuitry and power efficiency.Reduced the giant robot's weight.
+	<<elseif $securityForceGiantRobot == 5>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency and battery capacity.Reduced the giant robot's weight.
+	<<elseif $securityForceGiantRobot == 6>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency,battery capacity and armour.Reduced the giant robot's weight.
+	<<elseif $securityForceGiantRobot == 7>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons.
+	<<elseif $securityForceGiantRobot == 8>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.
+	<<elseif $securityForceGiantRobot == 9>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.
+	<<elseif $securityForceGiantRobot == 10>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.Replaced the skin of $securityForceName's giant robot with a basic optical illusion kit.
+	<<elseif $securityForceGiantRobot == 11>>
+		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.Replaced the skin of $securityForceName's giant robot with an advanced optical illusion kit.
+	<</if>>
+<</if>>
+<<if $securityForceMissileSilo > 0>>
+	<br>
+	/* 3 upgrades */
+	<<if $securityForceMissileSilo == 1>>
+		A basic missile silo has been 'borrowed' from the old world.
+	<<elseif $securityForceMissileSilo == 2>>
+		Modernized the missile silo's launching electronics.
+	<<elseif $securityForceMissileSilo == 3>>
+		Modernized the missile silo's launching electronics, wiring and circuitry.
+	<</if>>
+<</if>>
+<</if>>
+
+<<if _NavalYard > 0 && ($terrain == "oceanic" || $terrain == "marine")>>
+<br><br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Naval Yard:''
+<<if $securityForceAircraftCarrier > 0>>
+	<br>
+	/* 4 upgrades */
+	<<if $securityForceAircraftCarrier == 1>>
+		A basic aircraft carrier has been 'borrowed' from the old world.
+	<<elseif $securityForceAircraftCarrier == 2>>
+		Modernized the aircraft carrier's electronics.
+	<<elseif $securityForceAircraftCarrier == 3>>
+		Modernized the aircraft carrier's electronics and weaponry.
+	<<elseif $securityForceAircraftCarrier == 4>>
+		Modernized the aircraft carrier's electronics, weaponry and armour.
+	<</if>>
+<</if>>
+<<if $securityForceSubmarine > 0>>
+	<br>
+	/* 6 upgrades */
+	<<if $securityForceSubmarine == 1>>
+	A basic submarine has been 'borrowed' from the old world.
+	<<elseif $securityForceSubmarine == 2>>
+	Modernized the submarine's engines for speed.
+	<<elseif $securityForceSubmarine == 3>>
+	Modernized the submarine's engines for speed and silence.
+	<<elseif $securityForceSubmarine == 4>>
+	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence.
+	<<elseif $securityForceSubmarine == 5>>
+	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence and weaponry.
+	<<elseif $securityForceSubmarine == 6>>
+	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence, weaponry and air scrubbers, allowing the sub to stay submerged for longer.
+	<</if>>
+<</if>>
+<<if $securityForceHeavyAmphibiousTransport > 0>>
+	<br>
+	/* 5 upgrades */
+	<<if $securityForceHeavyAmphibiousTransport == 1>>
+		A basic heavy amphibious transport has been 'borrowed' from the old world.
+	<<elseif $securityForceHeavyAmphibiousTransport == 2>>
+		Modernized the heavy amphibious transport's armor.
+	<<elseif $securityForceHeavyAmphibiousTransport == 3>>
+		Modernized the heavy amphibious transport's armor and speed.
+	<<elseif $securityForceHeavyAmphibiousTransport == 4>>
+		Modernized the heavy amphibious transport's armor and speed. Added miniaturized railguns in all four corners.
+	<<elseif $securityForceHeavyAmphibiousTransport == 5>>
+		Modernized the heavy amphibious transport's armor and speed. Added miniaturized railguns in all four corners and a lazer designator in the midle.
+	<</if>>
+<</if>>
+<</if>>
diff --git a/src/pregmod/SpecialForceUpgradeTree.tw b/src/pregmod/SpecialForceUpgradeTree.tw
new file mode 100644
index 00000000000..2e26140d20e
--- /dev/null
+++ b/src/pregmod/SpecialForceUpgradeTree.tw
@@ -0,0 +1,62 @@
+:: SpecialForceUpgradeTree
+
+<<silently>>
+<<set _Barracks = $securityForceArcologyUpgrades>>
+	<<set _BarracksMax = 16>>
+
+<<set _FacilitySupport = $FacilitySupport>>
+	<<set _FacilitySupportMax = 1>>
+
+<<set _Armoury = $securityForceInfantryPower>>
+	<<set _ArmouryMax = 11>>
+
+<<set _StimulantLab = $securityForceStimulantPower>>
+	<<set _StimulantLabMax = 9>>
+
+<<set _Garage = $securityForceVehiclePower+$securityForceHeavyBattleTank>>
+<<set _GarageMax = 10>>
+	<<set _LightAndMediumVehiclesMax = 7>>
+	<<set _HeavyBattleTankMax = 3>>
+
+<<set _Hangar = $securityForceAircraftcraftPower+$securityForceSpacePlanePower+$securityForceFortressZeppelin+$securityForceAC130+$securityForceHeavyTransport>>
+<<set _HangarMax = 33>>
+	<<set _AircraftMax = 10>>
+	<<set _SpacePlaneMax = 11>>
+	<<set _ForceFortressZeppelinMax = 3>>
+	<<set _AC10Max = 5>>
+	<<set _heavyTransportMax = 4>>
+
+<<set _DroneBay = $securityForceDronePower>>
+	<<set _DroneBayMax = 7>>
+
+<<set _LaunchBayNO = $securityForceSatellitePower+$securityForceGiantRobot+$securityForceMissileSilo>>
+<<set _LaunchBayNOMax = 32>>
+	<<set _SatelliteMax = 18>>
+	<<set _GiantRobotMax = 11>>
+	<<set _MissileSiloMax = 3>>
+
+<<set _LaunchBayO = $securityForceSatellitePower>>
+	<<set _LaunchBayOMax = 18>>
+	<<set _SatelliteMax = 18>>
+
+<<set _NavalYardMax = 15>>
+	<<set _AmphibiousTransportMax = 4>>
+	<<set _SubmarineMax = 6>>
+	<<set _HeavyAmphibiousTransportMax = 5>>
+
+<<set _maxNO = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayNOMax+_FacilitySupportMax>>
+<<set _maxO = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayOMax+_NavalYardMax+_FacilitySupportMax>>
+
+<<if $terrain != "oceanic" && $terrain != "marine">>
+	<<set $SFNO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayNO+_FacilitySupport>>
+	<<set _max = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayNOMax+_FacilitySupportMax>>
+	<<set $SFO = 0>>
+	<<set _NavalYard = 0>>
+	<<set _NavalYardMax = 0>>
+<<elseif $terrain == "oceanic" || $terrain == "marine">>
+	<<set _NavalYard = $securityForceAircraftcraftCarrier+$securityForceSubmarine+$securityForceHeavyAmphibiousTransport>>
+	<<set $SFO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayO+_NavalYard+_FacilitySupport>>
+	<<set _max = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayOMax+_FacilitySupportMax>>
+	<<set $SFNO = 0>>
+<</if>>
+<</silently>>
diff --git a/src/uncategorized/SFMBarracks.tw b/src/uncategorized/SFMBarracks.tw
index 739cbbdadcd..3829d240e67 100644
--- a/src/uncategorized/SFMBarracks.tw
+++ b/src/uncategorized/SFMBarracks.tw
@@ -13,64 +13,7 @@
 	<<set $Env = _N3, $EnvCash2 = 550, $EnvCash3 = 300, $EnvCash4 = 200, $EnvProsp = 7, _BaseDiscount = _BaseDiscount+.005>>
 <</if>>
 
-<<set _Barracks = $securityForceArcologyUpgrades>>
-<<set _BarracksMax = 16>>
-
-<<set _FacilitySupport = $FacilitySupport>>
-<<set _FacilitySupportMax = 1>>
-
-<<set _Armoury = $securityForceInfantryPower>>
-<<set _ArmouryMax = 11>>
-
-<<set _StimulantLab = $securityForceStimulantPower>>
-<<set _StimulantLabMax = 9>>
-
-<<set _Garage = $securityForceVehiclePower+$securityForceHeavyBattleTank>>
-<<set _GarageMax = 10>>
-	<<set _L&M-MAX = 7>>
-	<<set _HBTMax = 3>>
-
-<<set _Hangar = $securityForceAircraftPower+$securityForceSpacePlanePower+$securityForceFortressZeppelin+$securityForceAC130+$securityForceHeavyTransport>>
-	<<set _HangarMax = 32>>
-	<<set _AirMax = 10>>
-	<<set _SPMax = 11>>
-	<<set _FZMax = 3>>
-	<<set _AC13Max = 5>>
-	<<set _HTMax = 3>>
-
-<<set _DroneBay = $securityForceDronePower>>
-<<set _DroneBayMax = 7>>
-
-<<set _LaunchBayNO = $securityForceSatellitePower+$securityForceGiantRobot+$securityForceMissileSilo>>
-<<set _LaunchBayNOMax = 32>>
-	<<set _SATMax = 18>>
-	<<set _GRBMax = 11>>
-	<<set _MSMax = 3>>
-
-<<set _LaunchBayO = $securityForceSatellitePower>>
-<<set _LaunchBayOMax = 18>>
-	<<set _SATMax = 18>>
-
-<<set _NavalYardMax = 15>>
-	<<set _ACMax = 4>>
-	<<set _SMax = 6>>
-	<<set _HATMax = 5>>
-
-<<set _maxNO = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayNOMax+_FacilitySupportMax>>
-<<set _maxO = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayOMax+_NavalYardMax+_FacilitySupportMax>>
-
-<<if $terrain != "oceanic" && $terrain != "marine">>
-	<<set $SFNO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayNO+_FacilitySupport>>
-	<<set _max = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayNOMax+_FacilitySupportMax>>
-	<<set $SFO = 0>>
-	<<set _NavalYard = 0>>
-	<<set _NavalYardMax = 0>>
-<<elseif $terrain == "oceanic" || $terrain == "marine">>
-	<<set _NavalYard = $securityForceAircraftCarrier+$securityForceSubmarine+$securityForceHeavyAmphibiousTransport>>
-	<<set $SFO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayO+_NavalYard+_FacilitySupport>>
-	<<set _max = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayOMax+_FacilitySupportMax>>
-	<<set $SFNO = 0>>
-<</if>>
+<<include "SpecialForceUpgradeTree">>
 
 <<if $SFNO > 0>>
 	<<set $SFAO = $SFNO>>
@@ -93,418 +36,7 @@
 //The barracks of <<textbox "$securityForceName" $securityForceName "SFM Barracks">> is located in the lower levels of $arcologies[0].name, occupying unneeded warehouse space. It is not accessible to the general citizenry, but your personal elevator has express service to it. As you step off, two soldiers in combat armour manning the entry checkpoint tense and raise their weapons, before nodding respectfully and stepping aside, allowing their patron entry. The barracks is cavernous, containing areas for the soldiers to sleep and keep their belongings, areas for the storage and maintenance of their weapons and equipment, and common areas for them to amuse themselves, since they rarely mix with your citizens on the upper levels. You survey the facilities.//
 
 <br><br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Barracks:''
-<br>
-/* 13 upgrades */
-<<if $securityForceArcologyUpgrades == 0>>
-	The barracks is currently quite basic, consisting of little more than a dormitory, armoury, a processing facility for human spoils, and a common area, sectioned off by stacks of empty supply crates. The cavernous space, however, is ripe for expansion.
-<<elseif $securityForceArcologyUpgrades == 1>>
-	The barracks has become more permanent, expanding into free space, erecting permanent dividers, and sectioning off an area for use as a garage and vehicle maintenance bay.
-<<elseif $securityForceArcologyUpgrades == 2>>
-	The barracks has added a facility for the storage, maintenance, and deployment of armed combat drones, and added storage facilities for the soldiers to store their personal spoils in.
-<<elseif $securityForceArcologyUpgrades == 3>>
-	The barracks has added additional support personnel and equipment, allowing the potential procurement of heavier infantry armour, fighting vehicles, and combat drones.
-<<elseif $securityForceArcologyUpgrades == 4>>
-	The barracks has expanded tremendously, adding an aerial control facility and express elevator connecting to a ring of launch pads and hangars built around the arcology's upper levels. Additional facilities have been added for soldier recreation, and Spartan quarters for live-in slaves, both menial and service, have been installed.
-<<elseif $securityForceArcologyUpgrades == 5>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly delineated soldier and logistical areas, dedicated support and recreation facilities, in addition to advanced command and control apparatus. As a final measure, heavy, long range, electromagnetic railgun artillery pieces have been installed in casemates along the aerial launch pads, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 6>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As a final measure, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in casemates along the aerial launch pads, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 7>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As a final measure, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 8>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 9>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery 356 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 10>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 11>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, dual barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 12>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 13>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.
-<<elseif $securityForceArcologyUpgrades == 14>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>'Borowed' old world designs for a kill house.
-<<elseif $securityForceArcologyUpgrades == 15>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>Added electronics to the kill house.
-<<elseif $securityForceArcologyUpgrades == 16>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>Added VR support to the kill house.
-<</if>>
-
-<br><br>
-
-<div style="margin-left:1em">
-<<if $securityForcePersonnel < 100>>
-	The barracks' large dormitories are sparsely occupied, the few members of $securityForceName residing within them concentrating together in a corner. The hundreds of empty beds and lockers visible herald the future.
-<<elseif $securityForcePersonnel < 300>>
-	The barracks' large dormitories are lightly occupied, with the $securityForcePersonnel members of $securityForceName starting to spread out across them.
-<<elseif $securityForcePersonnel < 500>>
-	The barracks' large dormitories are moderately occupied, though the $securityForcePersonnel members of $securityForceName residing within have a considerable amount of extra room.
-<<elseif $securityForcePersonnel < 700>>
-	The barracks' large dormitories are well-occupied, and the $securityForcePersonnel members of $securityForceName within have started to form small cliques based on section and row.
-<<elseif $securityForcePersonnel < 1500>>
-	The barracks' large dormitories are near capacity, and the $securityForcePersonnel members of $securityForceName often barter their personal loot, whether it be monetary or human, for the choicest bunks.
-<</if>>
-</div>
-
-<<if $FacilitySupport == 1>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''$facilitysupportName:''
-<br>
-<<if $LieutenantColonel != 0>><<SlaveFullName $LieutenantColonel>> is the Lieutenant Colonel of $securityForceName, primarily in charge of $FacilitySupportName.<</if>> <<if $FacilitySupportSlaves > 0>>There are $FacilitySupportSlaves slaves serving in $FacilitySupportName.<</if>> The <<if $FacilitySupportUpgrade == 3>>quantum teleportation system greatly improves efficiency<<elseif $FacilitySupportUpgrade == 2>>rapid tube system somewhat improves efficiency<<elseif $FacilitySupportUpgrade == 1>>specialized pathways slightly improves efficiency<<else>>general pathways does nothing to improve efficiency<</if>>.
-<br><<link "Enter the building then send a slave to serve in the HQ and facilities of $securityForceName">>
-	<<goto "FacilitySupport">>
-<</link>>
-<</if>>
-
-<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Armory:''
-<br>
-/* 11 upgrades */
-<<if $securityForceInfantryPower == 0>>
-	The armory is well-stocked with high-quality personal weapons and light armour, but contains little in the way of exceptional armament.
-<<elseif $securityForceInfantryPower == 1>>
-	The armory has large stocks of the absolute latest personal weapons and light armour, and has added first-generation exo-suits to improve soldier lethality.
-<<elseif $securityForceInfantryPower == 2>>
-	The armory has acquired advanced tactical helmets and second-generation exo-suits to further improve soldier lethality.
-<<elseif $securityForceInfantryPower == 3>>
-	The armory has replaced deployed exo-suits with basic enclosed combat armour suits, and has further begun to deploy early electromagnetic (coilgun) weaponry.
-<<elseif $securityForceInfantryPower == 4>>
-	The armory has begun to equip the soldiers with more advanced combat armour suits, and has expanded its inventory of electromagnetic weaponry.
-<<elseif $securityForceInfantryPower == 5>>
-	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced small advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 6>>
-	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced both small and medium advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 7>>
-	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 8>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with basic thrusters, and has further sourced both small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 9>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters, and has further sourced both small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 10>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters,basic optical illusion kits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 11>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters,advanced optical illusion kits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of $securityForceName is perhaps the most well-equipped in the world.
-<</if>>
-
-<br><br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Stimulant Lab:''
-<br>
-/* 7 upgrades */
-<<if $securityForceStimulantPower == 0>>
-	The stimulant lab is providing the soldiers with standard ephedrine-based stimulants.
-<<elseif $securityForceStimulantPower == 1>>
-	The stimulant lab has improved the formula of the ephedrine-based stimulants, concentrating them and increasing both their potency, and the effectiveness of the soldiers under their influence.
-<<elseif $securityForceStimulantPower == 2>>
-	The stimulant lab has replaced the soldiers' stimulants with methamphetamine-based variants, greatly increasing their alertness and aggressiveness when under their influence.
-<<elseif $securityForceStimulantPower == 3>>
-	The stimulant lab has improved and concentrated the methamphetamine-based stimulants, and has also begun providing soldiers with phenylcyclidine-based dissociatives, allowing the soldiers to excuse their actions in the field and reducing any reluctance to follow severe orders.
-<<elseif $securityForceStimulantPower == 4>>
-	The stimulant lab has further refined the formulas of the methamphetamine-based stimulants and phenylcyclidine-based dissociatives, and has also begun providing tryptamine-based psychedelics to the soldiers, allowing them to avoid traumatic stress in the field.
-<<elseif $securityForceStimulantPower == 5>>
-	The stimulant lab has maximally refined the formulas of the methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed).
-<<elseif $securityForceStimulantPower == 6>>
-	The stimulant lab has slightly refined the formulas of higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed).
-<<elseif $securityForceStimulantPower == 7>>
-	The stimulant lab has maximally refined the formulas of higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed).
-<<elseif $securityForceStimulantPower == 8>>
-	The stimulant lab has mixed the higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics into a single dose further increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed). However side effects may include (no particular order): Dissociative Identity Disorder , severe clincal depresssion, unstopabble vomitting, extreme paranoia, PTSD, finally total organ failfure. Recommended by 9/10 doctors*. * only doctors of $securityForceName for a completely unbiased result.
-<<elseif $securityForceStimulantPower == 9>>
-	The stimulant lab has mixed the higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics into a single dose further increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed). Potentinal side effects have been reduced slightly to "only mildly" severe ones: Dissociative Identity Disorder , severe clincal depresssion, unstopabble vomitting, extreme paranoia and PTSD. Now recommended by 15/10 doctors*. * only doctors of $securityForceName for a completely unbiased result.
-<</if>>
-
-<<if _Garage > 0 && $securityForceArcologyUpgrades >= 1>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Garage:''
-<br>
-/* 7 upgrades */
-<<if $securityForceVehiclePower == 0>>
-	The garage contains basic, unarmoured vehicles for use by the soldiers, primarily high-end civilian vehicles with jury-rigged crew-served weapons.
-<<elseif $securityForceVehiclePower == 1>>
-	The garage has replaced its technical fleet with armed military utility vehicles. It has also sourced customized, high-volume slave transports for better securing human spoils.
-<<elseif $securityForceVehiclePower == 2>>
-	The garage has added a number of light infantry fighting vehicles to its fleet, and acquired more slave transports to keep up with demand.
-<<elseif $securityForceVehiclePower == 3>>
-	The garage has acquired improved infantry fighting vehicles, and has also added some mobile artillery and other support vehicles.
-<<elseif $securityForceVehiclePower == 4>>
-	The garage has acquired some heavier armoured vehicles to augment the infantry fighting vehicles and expanded their inventory of artillery and support vehicles.
-<<elseif $securityForceVehiclePower == 5>>
-	The garage has replaced both its armoured and support vehicles with the most advanced variants possible, making the mobile unit of $securityForceName far superior to anything in the arcology's immediate area.
-<<elseif $securityForceVehiclePower == 6>>
-	The garage has replaced both its armoured and support vehicles with the most advanced light variants possible, making the mobile unit of $securityForceName far superior to anything in the arcology's immediate area.
-<<elseif $securityForceVehiclePower == 7>>
-	The garage has replaced both its armoured and support vehicles with the most advanced light and medium variants possible, making the mobile unit of $securityForceName far superior to anything in the arcology's immediate area.
-<</if>>
-
-/* 3 upgrades */
-<<if $securityForceHeavyBattleTank == 1>>
-	A basic heavy battle tank has been 'borrowed' from the old world.
-<<elseif $securityForceHeavyBattleTank == 2>>
-	Modernised the heavy battle tank's armor.
-<<elseif $securityForceHeavyBattleTank == 3>>
-	Modernised the heavy battle tank's armor and upgradeded the main gun to a 356 cm barrel.
-<</if>>
-<</if>>
-
-<<if $securityForceArcologyUpgrades >= 4>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Hangar:''
-<br>
-/* 8 upgrades */
-<<if $securityForceAircraftPower == 0>>
-	The aerial fleet primarily consists of light transport VTOLs equipped with non-lethal weaponry.
-<<elseif $securityForceAircraftPower == 1>>
-	The aerial fleet's light transport VTOLs have been upgraded with additional fire-power and lethal weaponry.
-<<elseif $securityForceAircraftPower == 2>>
-	The aerial fleet's VTOLs have been upgraded to higher-capacity variants with heavier weaponry.
-<<elseif $securityForceAircraftPower == 3>>
-	The aerial fleet's medium transport VTOLs have been upgraded with enhanced armour and customized cargo compartments to better transport captured stock.
-<<elseif $securityForceAircraftPower == 4>>
-	The aerial fleet has acquired specialized attack VTOLs to complement and escort its advanced transport fleet, as well as to provide close air support.
-<<elseif $securityForceAircraftPower == 5>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.
-<<elseif $securityForceAircraftPower == 6>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.
-<<elseif $securityForceAircraftPower == 7>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.
-<<elseif $securityForceAircraftPower == 8>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Also It now possesses a basic old world bomber.
-<<elseif $securityForceAircraftPower == 9>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Improved the bomber's engines.
-<<elseif $securityForceAircraftPower == 10>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Improved the bomber's engines and armour.
-<</if>>
-<<if $securityForceSpacePlanePower > 0>>
-	<br>
-	/* 11 upgrades */
-	<<if $securityForceSpacePlanePower == 1>>
-		A basic two engine SpacePlane has been 'borrowed' from the old world.
-	<<elseif $securityForceSpacePlanePower == 2>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature.
-	<<elseif $securityForceSpacePlanePower == 3>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,also mounted another engine on top of the space plane's tail.
-	<<elseif $securityForceSpacePlanePower == 4>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail and modernized the electronics.
-	<<elseif $securityForceSpacePlanePower == 5>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail,modernized the electronics in addition to the fuel lines to increase efficiency.
-		<<elseif $securityForceSpacePlanePower == 6>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.
-	<<elseif $securityForceSpacePlanePower == 7>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.
-	<<elseif $securityForceSpacePlanePower == 8>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.
-	<<elseif $securityForceSpacePlanePower == 9>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.
-	<<elseif $securityForceSpacePlanePower == 10>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.Replaced the skin of $securityForceName Space Plane with a basic optical illusion kit.
-	<<elseif $securityForceSpacePlanePower == 11>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.Replaced the skin of $securityForceName Space Plane with an advanced optical illusion kit.
-	<</if>>
-<</if>>
-<<if $securityForceFortressZeppelin > 0>>
-	<br>
-	/* 3 upgrades */
-	<<if $securityForceFortressZeppelin == 1>>
-		A basic fortress zeppelin has been 'borrowed' from the old world.
-	<<elseif $securityForceFortressZeppelin == 2>>
-		Modernized the fortress zeppelin's armor.
-	<<elseif $securityForceFortressZeppelin == 3>>
-		Modernized the fortress zeppelin's armor and weaponry.
-	<</if>>
-<</if>>
-<<if $securityForceAC130 > 0>>
-	<br>
-	/* 5 upgrades */
-	<<if $securityForceAC130 == 1>>
-		A basic AC-130 has been 'borrowed' from the old world.
-	<<elseif $securityForceAC130 == 2>>
-		Modernized the AC-130's armor.
-	<<elseif $securityForceAC130 == 3>>
-		Modernized the AC-130's armor and weaponry.
-	<<elseif $securityForceAC130 == 4>>
-		Modernized the AC-130's armor, weaponry and electronics.
-	<<elseif $securityForceAC130 == 5>>
-		Modernized the AC-130's armor, weaponry, electronics and crew seating.
-	<</if>>
-<</if>>
-<<if $securityForceHeavyTransport > 0>>
-	<br>
-	/* 3 upgrades */
-	<<if $securityForceHeavyTransport == 1>>
-		A basic heavy transport has been 'borrowed' from the old world.
-	<<elseif $securityForceHeavyTransport == 2>>
-		Modernized the heavy transport's armor.
-	<<elseif $securityForceHeavyTransport == 3>>
-		Modernized the armor and engines of the heavy transport.
-	<</if>>
-<</if>>
-<</if>>
-
-<<if $securityForceArcologyUpgrades >= 2>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Drone Bay:''
-<br>
-/* 7 upgrades */
-<<if $securityForceDronePower == 0>>
-	The drone bay contains a small number of 're-purposed' non-military drones from the arcology's original contingent.
-<<elseif $securityForceDronePower == 1>>
-	The drone bay has replaced the security drones with basic, lightly-armoured military combat models possessing integrated small arms.
-<<elseif $securityForceDronePower == 2>>
-	The drone bay has replaced its basic military drones with more advanced models and added a number of support drones carrying heavy weaponry to its fleet.
-<<elseif $securityForceDronePower == 3>>
-	The drone bay has acquired even more advanced models of both the standard combat drones and the heavy support drones, and expanded its numbers of both.
-<<elseif $securityForceDronePower == 4>>
-	The drone bay has acted to upgrade both the standard and support models of drones to carry basic electromagnetic weaponry, improving their overall combat effectiveness.
-<<elseif $securityForceDronePower == 5>>
-	The drone bay has improved the electromagnetic armament of it's drones by mounting both miniaturized and heavy railguns on them. In addition further sourcing numerous models of drones for roles as diverse as reconnaissance, independent slave capture and swarming tactics.
-<<elseif $securityForceDronePower == 6>>
-	The drone bay has acquired even lighter advanced armoured combat Drones with electromagnetic weaponry, advanced heavy Drones with electromagnetic support weaponry along with specialized Drones for reconnaissance, capture, and swarm tactics.
-<<elseif $securityForceDronePower == 7>>
-	The drone bay has acquired even lighter advanced thicker armoured combat Drones with electromagnetic weaponry, advanced heavy Drones with electromagnetic support weaponry along with specialized Drones for reconnaissance, capture, and swarm tactics.
-<</if>>
-<</if>>
-
-<<if (_LaunchBayNO > 0 || _LaunchBayO > 0) && $securityForceArcologyUpgrades >= 4>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Launch Bay:''
-<<if $securityForceSatellitePower > 0>>
-	<br>
-	/* 18 upgrades */
-	<<if $securityForceSatellitePower == 1>>
-		A basic Satellite 'borrowed' from the old world.
-	<<elseif $securityForceSatellitePower == 2>>
-		Modernized the Satellite's electronics.
-	<<elseif $securityForceSatellitePower == 3>>
-		Modernized the Satellite's electronics, wiring and circuitry.
-	<<elseif $securityForceSatellitePower == 4>>
-		Modernized the Satellite's electronics, wiring and circuitry.Installed a basic localized communications jammer to the Satellite (excludes your own frequencies with little to no leeway) that will "slightly" anger locals until it is deactivated.
-	<<elseif $securityForceSatellitePower == 5>>
-		Modernized the Satellite's electronics, wiring and circuitry.An advanced communications jammer is installed in the Satellite, increasing the AO localization, reducing the number of effected equipment.
-	<<elseif $securityForceSatellitePower == 6>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer power by 25% (now can damage effected equipment).
-	<<elseif $securityForceSatellitePower == 7>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).
-	<<elseif $securityForceSatellitePower == 8>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).The Satellite is now equipped with a basic EMP generator (advanced EMP hardening was applied before the insulation and activation) will "slightly" anger locals until it is deactivated.
-	<<elseif $securityForceSatellitePower == 9>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).The Satellite is now equipped with an advanced EMP generator, increasing the AO localization which reduces the quantity of effected equipment.
-	<<elseif $securityForceSatellitePower == 10>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator by 25% (now can damage effected equipment).
-	<<elseif $securityForceSatellitePower == 11>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).
-	<<elseif $securityForceSatellitePower == 12>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to be able to shoot a concentrated beam of pure energy that is able to level an entire city block. It required overhauling the Satellite's battery system and shielding.
-	<<elseif $securityForceSatellitePower == 13>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the bean enough to level a suburb.
-	<<elseif $securityForceSatellitePower == 14>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level a box of houses.
-	<<elseif $securityForceSatellitePower == 15>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level a single house.
-	<<elseif $securityForceSatellitePower == 16>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 366 cm.
-	<<elseif $securityForceSatellitePower == 17>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 30 cm.
-	<<elseif $securityForceSatellitePower == 18>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 15 cm.
-	<</if>>
-<</if>>
-<<if $securityForceGiantRobot > 0>>
-	<br>
-	/* 11 upgrades */
-	<<if $securityForceGiantRobot == 1>>
-		An old world giant robot has been 'Borrowed'.
-	<<elseif $securityForceGiantRobot == 2>>
-		Upgraded the giant robot's wiring and circuitry.
-	<<elseif $securityForceGiantRobot == 3>>
-		Upgraded the giant robot's wiring, circuitry and power efficiency.
-	<<elseif $securityForceGiantRobot == 4>>
-		Upgraded the giant robot's wiring, circuitry and power efficiency.Reduced the giant robot's weight.
-	<<elseif $securityForceGiantRobot == 5>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency and battery capacity.Reduced the giant robot's weight.
-	<<elseif $securityForceGiantRobot == 6>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency,battery capacity and armour.Reduced the giant robot's weight.
-	<<elseif $securityForceGiantRobot == 7>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons.
-	<<elseif $securityForceGiantRobot == 8>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.
-	<<elseif $securityForceGiantRobot == 9>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.
-	<<elseif $securityForceGiantRobot == 10>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.Replaced the skin of $securityForceName's giant robot with a basic optical illusion kit.
-	<<elseif $securityForceGiantRobot == 11>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.Replaced the skin of $securityForceName's giant robot with an advanced optical illusion kit.
-	<</if>>
-<</if>>
-<<if $securityForceMissileSilo > 0>>
-	<br>
-	/* 3 upgrades */
-	<<if $securityForceMissileSilo == 1>>
-		A basic missile silo has been 'borrowed' from the old world.
-	<<elseif $securityForceMissileSilo == 2>>
-		Modernized the missile silo's launching electronics.
-	<<elseif $securityForceMissileSilo == 3>>
-		Modernized the missile silo's launching electronics, wiring and circuitry.
-	<</if>>
-<</if>>
-<</if>>
-
-<<if _NavalYard > 0 && ($terrain == "oceanic" || $terrain == "marine")>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Naval Yard:''
-<<if $securityForceAircraftCarrier > 0>>
-	<br>
-	/* 4 upgrades */
-	<<if $securityForceAircraftCarrier == 1>>
-		A basic aircraft carrier has been 'borrowed' from the old world.
-	<<elseif $securityForceAircraftCarrier == 2>>
-		Modernized the aircraft carrier's electronics.
-	<<elseif $securityForceAircraftCarrier == 3>>
-		Modernized the aircraft carrier's electronics and weaponry.
-	<<elseif $securityForceAircraftCarrier == 4>>
-		Modernized the aircraft carrier's electronics, weaponry and armour.
-	<</if>>
-<</if>>
-<<if $securityForceSubmarine > 0>>
-	<br>
-	/* 6 upgrades */
-	<<if $securityForceSubmarine == 1>>
-	A basic submarine has been 'borrowed' from the old world.
-	<<elseif $securityForceSubmarine == 2>>
-	Modernized the submarine's engines for speed.
-	<<elseif $securityForceSubmarine == 3>>
-	Modernized the submarine's engines for speed and silence.
-	<<elseif $securityForceSubmarine == 4>>
-	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence.
-	<<elseif $securityForceSubmarine == 5>>
-	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence and weaponry.
-	<<elseif $securityForceSubmarine == 6>>
-	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence, weaponry and air scrubbers, allowing the sub to stay submerged for longer.
-	<</if>>
-<</if>>
-<<if $securityForceHeavyAmphibiousTransport > 0>>
-	<br>
-	/* 5 upgrades */
-	<<if $securityForceHeavyAmphibiousTransport == 1>>
-		A basic heavy amphibious transport has been 'borrowed' from the old world.
-	<<elseif $securityForceHeavyAmphibiousTransport == 2>>
-		Modernized the heavy amphibious transport's armor.
-	<<elseif $securityForceHeavyAmphibiousTransport == 3>>
-		Modernized the heavy amphibious transport's armor and speed.
-	<<elseif $securityForceHeavyAmphibiousTransport == 4>>
-		Modernized the heavy amphibious transport's armor and speed. Added miniaturized railguns in all four corners.
-	<<elseif $securityForceHeavyAmphibiousTransport == 5>>
-		Modernized the heavy amphibious transport's armor and speed. Added miniaturized railguns in all four corners and a lazer designator in the midle.
-	<</if>>
-<</if>>
-<</if>>
+<<include "SpecialForceUpgradeDec">>
 <br><br>
 
 //You continue towards the common area, the soldiers you pass nodding respectfully, saluting, or giving slight bows, as they please, to you. You pass the briefing areas, the officers and sergeants of the force are conferring over planning tables and display screens regarding their upcoming deployments.//
@@ -813,7 +345,7 @@
 					<<set $securityForceUpgradeToken = 1, $securityForceVehiclePower++, $cash -= 60000*$Env>>
 					<</replace>>
 				<</link>>// Costs ¤<<print 60000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceVehiclePower < _L&M-MAX && _Barracks >= 5 && $securityForceAircraftPower >= 5 && _DroneBay >= 5 && _StimulantLab >= 5 && _Armoury >= 5>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceVehiclePower < _LightAndMediumVehiclesMax && _Barracks >= 5 && $securityForceAircraftPower >= 5 && _DroneBay >= 5 && _StimulantLab >= 5 && _Armoury >= 5>>
 				<<if $securityForceVehiclePower < 6>>
 					<<set _vehCost = 2500000>>
 				<<elseif $securityForceVehiclePower == 6>>
@@ -826,7 +358,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print _vehCost*$Env>> //
 			<</if>>
-			<<if $securityForceVehiclePower == 5 || $securityForceVehiclePower == _L&M-MAX >>
+			<<if $securityForceVehiclePower == 5 || $securityForceVehiclePower == _LightAndMediumVehiclesMax >>
 				<br>//$securityForceName has fully upgraded the vehicle fleet to support it's activities.//
 			<<else>>
 				<br>//More barracks infrastructure upgrades are needed before the vehicle fleet can be expanded.//
@@ -839,7 +371,7 @@
 					<<set $securityForceUpgradeToken = 1, $securityForceHeavyBattleTank++, $cash -= 60000000*$Env>>
 					<</replace>>
 				<</link>>// Costs ¤<<print 60000000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceHeavyBattleTank >= 1 && $securityForceHeavyBattleTank < _HBTMax>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceHeavyBattleTank >= 1 && $securityForceHeavyBattleTank < _HeavyBattleTankMax>>
 				<<if $securityForceHeavyBattleTank < 2>>
 					<<set _hbtCost = 75000000>>
 				<<elseif $securityForceHeavyBattleTank == 2>>
@@ -852,7 +384,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print _hbtCost*$Env>> //
 			<</if>>
-			<<if $securityForceHeavyBattleTank == _HBTMax>>
+			<<if $securityForceHeavyBattleTank == _HeavyBattleTankMax>>
 				<br>//$securityForceName has fully upgraded the heavy battle tank to support it's activities.//
 			<</if>>
 
@@ -878,7 +410,7 @@
 					<<set $securityForceUpgradeToken = 1, $securityForceAircraftPower++, $cash -= 70000*$Env>>
 					<</replace>>
 				<</link>> // Costs ¤<<print 70000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceAircraftPower < 10 && _StimulantLab >= 5 && _Barracks >= 5 && $securityForceVehiclePower >= 5 && _Armoury >= 5 && _DroneBay >= 5>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceAircraftPower < _AircraftMax && _StimulantLab >= 5 && _Barracks >= 5 && $securityForceVehiclePower >= 5 && _Armoury >= 5 && _DroneBay >= 5>>
 				<<if $securityForceAircraftPower == 5>>
 					<<set _airCost = 2750000>>
 				<<elseif $securityForceAircraftPower == 6>>
@@ -897,7 +429,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print  _airCost*$Env>> //
 			<</if>>
-			<<if $securityForceAircraftPower == 5 || $securityForceAircraftPower == 10>>
+			<<if $securityForceAircraftPower == 5 || $securityForceAircraftPower == _AircraftMax>>
 				<br>//$securityForceName has fully upgraded the air fleet to support it's activities.//
 			<<else>>
 				<br>//More barracks infrastructure upgrades are needed before the air fleet can be expanded.//
@@ -910,7 +442,7 @@
 					<<set $securityForceUpgradeToken = 1, $securityForceSpacePlanePower++, $cash -= 4750000*$Env>>
 					<</replace>>
 				<</link>> // Costs ¤<<print 4750000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceSpacePlanePower >= 1 && $securityForceSpacePlanePower < _SPMax>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceSpacePlanePower >= 1 && $securityForceSpacePlanePower < _SpacePlaneMax>>
 				<<if $securityForceSpacePlanePower < 4>>
 					<<set _spCost = 50000000>>
 				<<elseif $securityForceSpacePlanePower == 4>>
@@ -935,7 +467,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print  _spCost*$Env>> //
 			<</if>>
-			<<if $securityForceSpacePlanePower == _SPMax>>
+			<<if $securityForceSpacePlanePower == _SpacePlaneMax>>
 				<br>//$securityForceName has fully upgraded the space plane to support it's activities.//
 			<</if>>
 
@@ -945,7 +477,7 @@
 					"Sure, boss." she says, nodding. "A fortress zeppelin would help a lot." She laughs. "The scum out there don't seem to like it when we have things that their shit equipment can't damage." She picks up a tablet and taps a few commands on it. "I'll get right on it."
 					<<set $securityForceUpgradeToken = 1, $securityForceFortressZeppelin++, $cash -= 30000000*$Env>>
 					<</replace>><</link>> // Costs ¤<<print 30000000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceFortressZeppelin >= 1 && $securityForceFortressZeppelin < _FZMax>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceFortressZeppelin >= 1 && $securityForceFortressZeppelin < _FortressZeppelinMax>>
 				<<link "Fortress zeppelin">>
 					<<replace "#resultY">><br><br>
 					"Sure, boss." she says, nodding. "Upgrading the Fortress Zeppelin, should help us gain a massive advantage." She laughs, picks up a tablet, and taps a few commands on it. "I'll get right on it."
@@ -953,7 +485,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print  20000000*$Env>> //
 			<</if>>
-			<<if $securityForceFortressZeppelin == _FZMax>>
+			<<if $securityForceFortressZeppelin == _FortressZeppelinMax>>
 				<br>//$securityForceName has fully upgraded the fortress zeppelin to support it's activities.//
 			<</if>>
 
@@ -964,7 +496,7 @@
 					<<set $securityForceUpgradeToken = 1, $securityForceAC130++, $cash -= 35000000*$Env>>
 					<</replace>>
 				<</link>> // Costs ¤<<print 35000000*$Env>> //
-			<<elseif $securityForceAC130 > 1 && $securityForceAC130 < _AC13Max>>
+			<<elseif $securityForceAC130 > 1 && $securityForceAC130 < _AC130Max>>
 				<br><<link "AC-130">>
 					<<replace "#resultY">><br><br>
 					"Sure, boss." she says, nodding. "Upgrading the AC-130, should help us gain a massive advantage." She laughs, picks up a tablet, and taps a few commands on it. "I'll get right on it."
@@ -972,7 +504,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print 25000000*$Env>> //
 			<</if>>
-			<<if $securityForceAC130 == _AC13Max>>
+			<<if $securityForceAC130 == _AC130Max>>
 				<br>//$securityForceName has fully upgraded the AC-130 to support it's activities.//
 			<</if>>
 
@@ -982,7 +514,7 @@
 					"Sure, boss." she says, nodding. "A heavy transport would help a lot." She laughs. "The scum out there don't seem to like it when we have things that their shit equipment can't damage." She picks up a tablet and taps a few commands on it. "I'll get right on it."
 					<<set $securityForceUpgradeToken = 1, $securityForceHeavyTransport++, $cash -= 40000000*$Env>>
 					<</replace>><</link>> // Costs ¤<<print 40000000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceHeavyTransport >= 1 && $securityForceHeavyTransport < _HTMax>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceHeavyTransport >= 1 && $securityForceHeavyTransport < _heavyTransportMax>>
 				<br><<link "Heavy transport">>
 					<<replace "#resultY">><br><br>
 					"Sure, boss." she says, nodding. "Upgrading the heavy transport, should help us gain a massive advantage." She laughs, picks up a tablet, and taps a few commands on it. "I'll get right on it."
@@ -990,7 +522,7 @@
 					<</replace>>
 				<</link>> // Costs ¤<<print  30000000*$Env>> //
 			<</if>>
-			<<if $securityForceHeavyTransport == _HTMax>>
+			<<if $securityForceHeavyTransport == _heavyTransportMax>>
 				<br>//$securityForceName has fully upgraded the heavy transport to support it's activities.//
 			<</if>>
 
@@ -1038,7 +570,7 @@
 						<<set $securityForceUpgradeToken = 1, $securityForceSatellitePower++, $cash -= 3750000*$Env>>
 						<</replace>>
 					<</link>> // Costs ¤<<print 3750000*$Env>> //
-				<<elseif $securityForceUpgradeToken == 0 && $securityForceSatellitePower >= 1 && $securityForceSatellitePower < _SATMax>>
+				<<elseif $securityForceUpgradeToken == 0 && $securityForceSatellitePower >= 1 && $securityForceSatellitePower < _SatelliteMax>>
 					<<if $securityForceSatellitePower < 11>>
 						<<set _satCost = 2350000>>
 					<<elseif $securityForceSatellitePower == 11>>
@@ -1063,7 +595,7 @@
 						<</replace>>
 					<</link>> // Costs ¤<<print _satCost*$Env>> //
 			<</if>>
-				<<if $securityForceSatellitePower == _SATMax>>
+				<<if $securityForceSatellitePower == _SatelliteMax>>
 					<br>//$securityForceName has fully upgraded the Satellite to support it's activities.//
 				<</if>>
 
@@ -1074,7 +606,7 @@
 						<<set $securityForceUpgradeToken = 1, $securityForceGiantRobot++, $cash -= 50000000*$Env>>
 						<</replace>>
 					<</link>> // Costs ¤<<print 50000000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceGiantRobot >= 1 && $securityForceGiantRobot < _GRBMax>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceGiantRobot >= 1 && $securityForceGiantRobot < _GiantRobotMax>>
 					<<if $securityForceGiantRobot < 3>>
 						<<set _robCost = 25000000>>
 					<<elseif $securityForceGiantRobot == 3>>
@@ -1101,7 +633,7 @@
 						<</replace>>
 					<</link>> // Costs ¤<<print _robCost*$Env>> //
 			<</if>>
-				<<if $securityForceGiantRobot == 9 || $securityForceGiantRobot == _GRBMax && ($terrain != "oceanic" && $terrain != "marine")>>
+				<<if $securityForceGiantRobot == 9 || $securityForceGiantRobot == _GiantRobotMax && ($terrain != "oceanic" && $terrain != "marine")>>
 					<br>//$securityForceName has fully upgraded the giant robot to support it's activities.//
 				<</if>>
 
@@ -1112,7 +644,7 @@
 						<<set $securityForceUpgradeToken = 1, $securityForceMissileSilo++, $cash -= 200000000*$Env>>
 						<</replace>>
 					<</link>> // Costs ¤<<print 200000000*$Env>> //
-			<<elseif $securityForceUpgradeToken == 0 && $securityForceMissileSilo >= 1 && $securityForceMissileSilo < _MSMax>>
+			<<elseif $securityForceUpgradeToken == 0 && $securityForceMissileSilo >= 1 && $securityForceMissileSilo < _MissileSiloMax>>
 					<<if $securityForceMissileSilo == 1>>
 						<<set _msCost = 250000000>>
 					<<elseif $securityForceMissileSilo == 2>>
@@ -1125,7 +657,7 @@
 						<</replace>>
 					<</link>> // Costs ¤<<print _msCost*$Env>> //
 			<</if>>
-				<<if $securityForceMissileSilo == _MSMax && ($terrain != "oceanic" && $terrain != "marine")>><br>//$securityForceName has fully upgraded the missile silo to support it's activities.//<</if>>
+				<<if $securityForceMissileSilo == _MissileSiloMax && ($terrain != "oceanic" && $terrain != "marine")>><br>//$securityForceName has fully upgraded the missile silo to support it's activities.//<</if>>
 
 			</span>
 			<</replace>>
@@ -1150,7 +682,7 @@
 						<<set $securityForceUpgradeToken = 1, $securityForceAircraftCarrier++, $cash -= 1500000*$Env>>
 						<</replace>>
 					<</link>> // Costs ¤<<print 1500000*$Env>> //
-				<<elseif $securityForceUpgradeToken == 0 && $securityForceAircraftCarrier >= 1 && $securityForceAircraftCarrier < _ACMax>>
+				<<elseif $securityForceUpgradeToken == 0 && $securityForceAircraftCarrier >= 1 && $securityForceAircraftCarrier < _AmphibiousTransportMax>>
 					<br><<link "Aircraft carrier">>
 						<<replace "#resultA">><br><br>
 						"Sure, boss." she says, nodding. "Upgrading the aircraft carrier should help us gain a massive advantage." She laughs, picks up a tablet, and taps a few commands on it. "I'll get right on it."
@@ -1158,7 +690,7 @@
 						<</replace>>
 					<</link>> // Costs ¤<<print 25000000*$Env>> //
 				<</if>>
-				<<if $securityForceAircraftCarrier == _ACMax && ($terrain == "oceanic" || $terrain == "marine")>>
+				<<if $securityForceAircraftCarrier == _AmphibiousTransportMax && ($terrain == "oceanic" || $terrain == "marine")>>
 					<br>//$securityForceName has fully upgraded the aircraft carrier to support it's activities.//
 				<</if>>
 
@@ -1169,7 +701,7 @@
 						<<set $securityForceUpgradeToken = 1, $securityForceSubmarine++, $cash -= 1500000*$Env>>
 						<</replace>>
 					<</link>> // Costs ¤<<print 1500000*$Env>> //
-				<<elseif $securityForceUpgradeToken == 0 && $securityForceSubmarine >= 1 && $securityForceSubmarine < _SMax>>
+				<<elseif $securityForceUpgradeToken == 0 && $securityForceSubmarine >= 1 && $securityForceSubmarine < _SubmarineMax>>
 					<<if $securityForceSubmarine < 4>>
 						<<set _subCost = 25000000>>
 					<<elseif $securityForceSubmarine == 4>>
@@ -1182,7 +714,7 @@
 						<</replace>>
 					<</link>> // Costs ¤<<print _subCost*$Env>> //
 				<</if>>
-				<<if $securityForceSubmarine == _SMax && ($terrain == "oceanic" || $terrain == "marine")>><br>//$securityForceName has fully upgraded the submarine to support it's activities.//<</if>>
+				<<if $securityForceSubmarine == _SubmarineMax && ($terrain == "oceanic" || $terrain == "marine")>><br>//$securityForceName has fully upgraded the submarine to support it's activities.//<</if>>
 
 				<<if $securityForceUpgradeToken == 0 && $securityForceHeavyAmphibiousTransport < 1>>
 					<br><<link "A heavy amphibious transport">>
@@ -1191,7 +723,7 @@
 						<<set $securityForceUpgradeToken = 1, $securityForceHeavyAmphibiousTransport++, $cash -= 1500000*$Env>>
 						<</replace>>
 					<</link>> // Costs ¤<<print 1500000*$Env>> //
-				<<elseif $securityForceUpgradeToken == 0&& $securityForceHeavyAmphibiousTransport >= 1 && $securityForceHeavyAmphibiousTransport < _HATMax>>
+				<<elseif $securityForceUpgradeToken == 0&& $securityForceHeavyAmphibiousTransport >= 1 && $securityForceHeavyAmphibiousTransport < _HeavyAmphibiousTransportMax>>
 					<<if $securityForceHeavyAmphibiousTransport == 1>>
 						<<set _hatCost = 150000000>>
 					<<elseif $securityForceHeavyAmphibiousTransport == 2>>
@@ -1208,7 +740,7 @@
 						<</replace>>
 					<</link>> // Costs ¤<<print _hatCost*$Env>> //
 				<</if>>
-				<<if $securityForceHeavyAmphibiousTransport == _HATMax && ($terrain == "oceanic" || $terrain == "marine")>><br>//$securityForceName has fully upgraded the heavy amphibious transport to support it's activities.//<</if>>
+				<<if $securityForceHeavyAmphibiousTransport == _HeavyAmphibiousTransportMax && ($terrain == "oceanic" || $terrain == "marine")>><br>//$securityForceName has fully upgraded the heavy amphibious transport to support it's activities.//<</if>>
 
 			</span>
 			<</replace>>
diff --git a/src/uncategorized/securityForceEOWReport.tw b/src/uncategorized/securityForceEOWReport.tw
index 85255e3f241..862ed5d149f 100644
--- a/src/uncategorized/securityForceEOWReport.tw
+++ b/src/uncategorized/securityForceEOWReport.tw
@@ -1,68 +1,11 @@
 :: Security Force EOW Report
 
 <<silently>>
-The upgrades are currently ordered as:
-	Barracks(16)
-		securityForceArcologyUpgrades(16)
-	FacilitySupport(1)
-	Armory(11)
-		securityForceInfantryPower(11)
-	Stimulant Lab(9)
-		securityForceStimulantPower(9)
-	<<if $securityForceArcologyUpgrades >= 1>>Garage(10)
-		securityForceVehiclePower(7)
-		securityForceHeavyBattleTank(3)
-	<</if>>
-	<<if $securityForceArcologyUpgrades >= 4>>Hangar(32)
-		securityForceAircraftPower(10)
-		securityForceSpacePlanePower(11)
-		securityForceFortressZeppelin(3)
-		securityForceAC130(5)
-		securityForceHeavyTransport(3)
-	<</if>>
-	<<if $securityForceArcologyUpgrades >= 2>>Drone Bay(7)
-		securityForceDronePower(7)
-	<</if>>
-	<<if $securityForceArcologyUpgrades >= 4>>Launch Bay(32)
-		securityForceSatellitePower(18)
-		securityForceGiantRobot(11)
-		securityForceMissileSilo(3)
-	<</if>>
-	securityForceX
-
-($terrain == "oceanic")
-	<<if $securityForceArcologyUpgrades >= 4>>Launch Bay(17)
-		securityForceSatellitePower(17)
-	<</if>>
-	Naval Yard (15)
-		securityForceAircraftCarrier(4)
-		securityForceSubmarine(6)
-		securityForceHeavyAmphibiousTransport (5)
-securityForceX
-
-<<set $SFNO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayNO+_FacilitySupport>>
-<<set $SFO = _Barracks+_Armoury+_StimulantLab+_Garage+_Hangar+_DroneBay+_LaunchBayO+_NavalYard+_FacilitySupport>>
-<<set _BarracksMax = 16>>
-<<set _ArmouryMax = 11>>
-<<set _StimulantLabMax = 9>>
-<<set _GarageMax = 10>>
-<<set _HangarMax = 32>>
-<<set _DroneBayMax = 7>>
-<<set _LaunchBayNOMax = 32>>
-<<set _LaunchBayOMax = 17>>
-<<set _FacilitySupportMax = 1>>
-<<set _NavalYardMax = 15>>
-
-<<set _maxNO = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayNOMax+_FacilitySupportMax>>
-<<set _maxO = _BarracksMax+_ArmouryMax+_StimulantLabMax+_GarageMax+_HangarMax+_DroneBayMax+_LaunchBayOMax+_NavalYardMax+_FacilitySupportMax>>
 
+<<include "SpecialForceUpgradeTree">>
 <<set _SFNOPercentage = _maxNO*_RaidingEfficienyPercentage>>
 <<set _SFOPercentage = _maxO*_RaidingEfficienyPercentage>>
 
-<<if $terrain == "oceanic" || $terrain == "marine">>
-	<<set _NavalYard = $securityForceAircraftCarrier+$securityForceSubmarine+$securityForceHeavyAmphibiousTransport>>
-<</if>>
-
 /* Manpower Fluctuation Calculations - loss from attrition, random casualties, etc. Baseline is ~3%/week. Heavier for raiding/slaving, reduced for securing trade. Maxes out between 1000-1500, though never exactly that. If over 1500 for some reason, set to 1455-1495. If under 100, cannot fluctuate further negatively. */
 
 	/* Check for too many troopers, set to mid 1400s if so */
@@ -458,397 +401,4 @@ securityForceX
 		Overal $TotalTradeShowIncome has been made and $TotalTradeShowHelots menial slaves have been acquired during the $OverallTradeShowAttendance TradeShow's I have attended.
 	<</if>>
 	&nbsp;&nbsp;&nbsp;&nbsp;//Current facilities status://
-<<nobr>>
-<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Barracks:''
-<br>
-/* 13 upgrades */
-<<if $securityForceArcologyUpgrades == 0>>
-	The barracks is currently quite basic, consisting of little more than a dormitory, armoury, a processing facility for human spoils, and a common area, sectioned off by stacks of empty supply crates. The cavernous space, however, is ripe for expansion.
-<<elseif $securityForceArcologyUpgrades == 1>>
-	The barracks has become more permanent, expanding into free space, erecting permanent dividers, and sectioning off an area for use as a garage and vehicle maintenance bay.
-<<elseif $securityForceArcologyUpgrades == 2>>
-	The barracks has added a facility for the storage, maintenance, and deployment of armed combat drones, and added storage facilities for the soldiers to store their personal spoils in.
-<<elseif $securityForceArcologyUpgrades == 3>>
-	The barracks has added additional support personnel and equipment, allowing the potential procurement of heavier infantry armour, fighting vehicles, and combat drones.
-<<elseif $securityForceArcologyUpgrades == 4>>
-	The barracks has expanded tremendously, adding an aerial control facility and express elevator connecting to a ring of launch pads and hangars built around the arcology's upper levels. Additional facilities have been added for soldier recreation, and spartan quarters for live-in slaves, both menial and service, have been installed.
-<<elseif $securityForceArcologyUpgrades == 5>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly delineated soldier and logistical areas, dedicated support and recreation facilities, in addition to advanced command and control apparatus. As a final measure, heavy, long range, electromagnetic railgun artillery pieces have been installed in casemates along the aerial launch pads, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 6>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As a final measure, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in casemates along the aerial launch pads, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 7>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As a final measure, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 8>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful aracolgy wide electromagnetic forcefield has been installed, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 9>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery 356 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful aracolgy wide electromagnetic forcefield has been installed, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 10>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful aracolgy wide electromagnetic forcefield has been installed, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 11>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, dual barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful aracolgy wide electromagnetic forcefield has been installed, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 12>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful aracolgy wide electromagnetic forcefield has been installed, giving the $securityForceName an immense superiority in local firepower.
-<<elseif $securityForceArcologyUpgrades == 13>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departemental R&D teams, $securityForceName now has a faster and much more efficient custom network.
-<<elseif $securityForceArcologyUpgrades == 14>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>'Borowed' old world designs for a kill house.
-<<elseif $securityForceArcologyUpgrades == 15>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>Added electronics to the kill house.
-<<elseif $securityForceArcologyUpgrades == 16>>
-	The barracks has (mostly) taken on the appearance of a professional military installation, with clearly defined soldier and logistical areas, dedicated support and recreation facilities, and advanced command and control apparatus. As final measures, quad heavy, long range, tri barreled electromagnetic railgun artillery 406 cm pieces have been installed in fortified EMP/jammer resistant casemates along the aerial launch pads and a powerful arcology wide electromagnetic forcefield has been installed, giving $securityForceName an immense superiority in local firepower.
-	<br>After pooling resources between several departmental R&D teams, $securityForceName now has a faster and much more efficient custom network.<br>Added VR support to the kill house.
-<</if>>
-
-<<if $FacilitySupport == 1>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''$facilitysupportName:''
-<br>
-<<if $LieutenantColonel != 0>><<SlaveFullName $LieutenantColonel>> is the Lieutenant Colonel of $securityForceName, primarly in charge of $FacilitySupportName.<</if>> <<if $FacilitySupportSlaves >0>>There are $FacilitySupportSlaves slaves serving in $FacilitySupportName.<</if>> The <<if $FacilitySupportUpgrade == 3>>quantum teleportation system greatly improves efficency>><<elseif $FacilitySupportUpgrade == 2>>rapid tube system somewhat improves efficency<<elseif $FacilitySupportUpgrade == 1>>specialized pathways slightly improves efficency<<else>>general pathways does nothing to improve efficency<</if>>
-<</if>>
-
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Armory:''
-<br>
-/* 11 upgrades */
-<<if $securityForceInfantryPower == 0>>
-	The armory is well-stocked with high-quality personal weapons and light armour, but contains little in the way of exceptional armament.
-<<elseif $securityForceInfantryPower == 1>>
-	The armory has large stocks of the absolute latest personal weapons and light armour, and has added first-generation exo-suits to improve soldier lethality.
-<<elseif $securityForceInfantryPower == 2>>
-	The armory has acquired advanced tactical helmets and second-generation exo-suits to further improve soldier lethality.
-<<elseif $securityForceInfantryPower == 3>>
-	The armory has replaced deployed exo-suits with basic enclosed combat armour suits, and has further begun to deploy early electromagnetic (coilgun) weaponry.
-<<elseif $securityForceInfantryPower == 4>>
-	The armory has begun to equip the soldiers with more advanced combat armour suits, and has expanded its inventory of electromagnetic weaponry.
-<<elseif $securityForceInfantryPower == 5>>
-	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced small advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 6>>
-	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced both small and medium advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 7>>
-	The armory has acquired heavy weapon attachments for its combat armour suits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 8>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with basic thrusters, and has further sourced both small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 9>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters, and has further sourced both small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 10>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters,basic optical illusion kits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<<elseif $securityForceInfantryPower == 11>>
-	The armory has acquired heavy weapon attachments for its combat armour suits with advanced thrusters,advanced optical illusion kits, and has further sourced small/medium and large advanced electromagnetic weaponry (miniaturized railguns) for the soldiers, ensuring that the infantry of the $securityForceName is perhaps the most well-equipped in the world.
-<</if>>
-
-<br><br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Stimulant Lab:''
-<br>
-/* 7 upgrades */
-<<if $securityForceStimulantPower == 0>>
-	The stimulant lab is providing the soldiers with standard ephedrine-based stimulants.
-<<elseif $securityForceStimulantPower == 1>>
-	The stimulant lab has improved the formula of the ephedrine-based stimulants, concentrating them and increasing both their potency, and the effectiveness of the soldiers under their influence.
-<<elseif $securityForceStimulantPower == 2>>
-	The stimulant lab has replaced the soldiers' stimulants with methamphetamine-based variants, greatly increasing their alertness and aggressiveness when under their influence.
-<<elseif $securityForceStimulantPower == 3>>
-	The stimulant lab has improved and concentrated the methamphetamine-based stimulants, and has also begun providing soldiers with phenylcyclidine-based dissociatives, allowing the soldiers to excuse their actions in the field and reducing any reluctance to follow severe orders.
-<<elseif $securityForceStimulantPower == 4>>
-	The stimulant lab has further refined the formulas of the methamphetamine-based stimulants and phenylcyclidine-based dissociatives, and has also begun providing tryptamine-based psychedelics to the soldiers, allowing them to avoid traumatic stress in the field.
-<<elseif $securityForceStimulantPower == 5>>
-	The stimulant lab has maximally refined the formulas of the methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of the $securityForceName go into combat wired, aggressive, and euphoric (if needed).
-<<elseif $securityForceStimulantPower == 6>>
-	The stimulant lab has sligtly refined the formulas of higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of the $securityForceName go into combat wired, aggressive, and euphoric (if needed).
-<<elseif $securityForceStimulantPower == 7>>
-	The stimulant lab has maximally refined the formulas of higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics, increasing their effectiveness in all aspects and ensuring that the soldiers of the $securityForceName go into combat wired, aggressive, and euphoric (if needed).
-<<elseif $securityForceStimulantPower == 8>>
-	The stimulant lab has mixed the higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics into a single dose further increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed). However side effects may include (no particular order): Dissociative Identity Disorder , severe clincal depresssion, unstopabble vomitting, extreme paranoia, PTSD, finally total organ failfure. Recommended by 9/10 doctors*. * only doctors of $securityForceName for a completely unbiased result.
-<<elseif $securityForceStimulantPower == 9>>
-	The stimulant lab has mixed the higher purity methamphetamine-based stimulants, phenylcyclidine-based dissociatives, and tryptamine-based psychedelics into a single dose further increasing their effectiveness in all aspects and ensuring that the soldiers of $securityForceName go into combat wired, aggressive, and euphoric (if needed). Potentinal side effects have been reduced slightly to "only mildly" severe ones: Dissociative Identity Disorder , severe clincal depresssion, unstopabble vomitting, extreme paranoia and PTSD. Now recommended by 15/10 doctors*. * only doctors of $securityForceName for a completely unbiased result.
-<</if>>
-
-<<if _Garage > 0 && $securityForceArcologyUpgrades >= 1>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Garage:''
-<br>
-/* 7 upgrades */
-<<if $securityForceVehiclePower == 0>>
-	The garage contains basic, unarmoured vehicles for use by the soldiers, primarily high-end civilian vehicles with jury-rigged crew-served weapons.
-<<elseif $securityForceVehiclePower == 1>>
-	The garage has replaced its technical fleet with armed military utility vehicles. It has also sourced customized, high-volume slave transports for better securing human spoils.
-<<elseif $securityForceVehiclePower == 2>>
-	The garage has added a number of light infantry fighting vehicles to its fleet, and acquired more slave transports to keep up with demand.
-<<elseif $securityForceVehiclePower == 3>>
-	The garage has acquired improved infantry fighting vehicles, and has also added some mobile artillery and other support vehicles.
-<<elseif $securityForceVehiclePower == 4>>
-	The garage has acquired some heavier armoured vehicles to augment the infantry fighting vehicles and expanded their inventory of artillery and support vehicles.
-<<elseif $securityForceVehiclePower == 5>>
-	The garage has replaced both its armoured and support vehicles with the most advanced variants possible, making the mobile unit of the $securityForceName far superior to anything in the arcology's immediate area.
-<<elseif $securityForceVehiclePower == 6>>
-	The garage has replaced both its armoured and support vehicles with the most advanced light variants possible, making the mobile unit of the $securityForceName far superior to anything in the arcology's immediate area.
-<<elseif $securityForceVehiclePower == 7>>
-	The garage has replaced both its armoured and support vehicles with the most advanced light and medium variants possible, making the mobile unit of the $securityForceName far superior to anything in the arcology's immediate area.
-<</if>>
-
-/* 3 upgrades */
-<<if $securityForceHeavyBattleTank == 1>>
-	A basic heavy battle tank has been 'borrowed' from the old world.
-<<elseif $securityForceHeavyBattleTank == 2>>
-	Modernised the heavy battle tank's armor.
-<<elseif $securityForceHeavyBattleTank == 3>>
-	Modernised the heavy battle tank's armor and upgradeded the main gun to a 356 cm barrel.
-<</if>>
-
-<</if>>
-
-<<if $securityForceArcologyUpgrades >= 4>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Hangar:''
-<br>
-/* 10 upgrades */
-<<if $securityForceAircraftPower == 0>>
-	The aerial fleet primarily consists of light transport VTOLs equipped with non-lethal weaponry.
-<<elseif $securityForceAircraftPower == 1>>
-	The aerial fleet's light transport VTOLs have been upgraded with additional fire-power and lethal weaponry.
-<<elseif $securityForceAircraftPower == 2>>
-	The aerial fleet's VTOLs have been upgraded to higher-capacity variants with heavier weaponry.
-<<elseif $securityForceAircraftPower == 3>>
-	The aerial fleet's medium transport VTOLs have been upgraded with enhanced armour and customized cargo compartments to better transport captured stock.
-<<elseif $securityForceAircraftPower == 4>>
-	The aerial fleet has acquired specialized attack VTOLs to complement and escort its advanced transport fleet, as well as to provide close air support.
-<<elseif $securityForceAircraftPower == 5>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of the $securityForceName is amongst the most capable still in operation in the area.
-<<elseif $securityForceAircraftPower == 6>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of the $securityForceName is amongst the most capable still in operation in the area.
-<<elseif $securityForceAircraftPower == 7>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of the $securityForceName is amongst the most capable still in operation in the area.
-<<elseif $securityForceAircraftPower == 8>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of the $securityForceName is amongst the most capable still in operation in the area.Also it now possesses a basic old world bomber.
-<<elseif $securityForceAircraftPower == 9>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Improved the bomber's engines.
-<<elseif $securityForceAircraftPower == 10>>
-	The aerial fleet has upgraded its attack VTOLs for enhanced lethality/speed/armour, and further improved the armour and armament of its transport VTOLs, ensuring that the airfleet of $securityForceName is amongst the most capable still in operation in the area.<br>Improved the bomber's engines and armour.
-<</if>>
-<<if $securityForceSpacePlanePower > 0>>
-	<br>
-	/* 11 upgrades */
-	<<if $securityForceSpacePlanePower == 1>>
-		A basic two engine SpacePlane has been 'borrowed' from the old world.
-	<<elseif $securityForceSpacePlanePower == 2>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature.
-	<<elseif $securityForceSpacePlanePower == 3>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,also mounted another engine on top of the space plane's tail.
-	<<elseif $securityForceSpacePlanePower == 4>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail and modernized the electronics.
-	<<elseif $securityForceSpacePlanePower == 5>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail,modernized the electronics in addition to the fuel lines to increase efficiency.
-		<<elseif $securityForceSpacePlanePower == 6>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.
-	<<elseif $securityForceSpacePlanePower == 7>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.
-	<<elseif $securityForceSpacePlanePower == 8>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.
-	<<elseif $securityForceSpacePlanePower == 9>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.
-	<<elseif $securityForceSpacePlanePower == 10>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.Replaced the skin of $securityForceName Space Plane with a basic optical illusion kit.
-	<<elseif $securityForceSpacePlanePower == 11>>
-		Upgraded the space plane's shielding, reducing both potential heat damage and radar signature,mounted another engine on top of the space plane's tail.Modernized; the electronics in addition to the fuel lines to increase efficiency and the space plane's engines to allow for more efficient fuel.Reduced the space plane's weight and reworked the body to reduce drag.Increased the crew comfort and life support systems to increase operational time.Added an additional engine per wing which greatly increases acceleration and raises the top speed to mach 15, making $securityForceName Space Plane untouchable.Replaced the skin of $securityForceName Space Plane with an advanced optical illusion kit.
-	<</if>>
-<</if>>
-<<if $securityForceFortressZeppelin > 0>>
-	<br>
-	/* 3 upgrades */
-	<<if $securityForceFortressZeppelin == 1>>
-		A basic fortress zeppelin has been 'borrowed' from the old world.
-	<<elseif $securityForceFortressZeppelin == 2>>
-		Modernised fortress zeppelin's armor.
-	<<elseif $securityForceFortressZeppelin == 3>>
-		Modernized the fortress zeppelin's armor and weaponry.
-	<</if>>
-<</if>>
-<<if $securityForceAC130 > 0>>
-	<br>
-	/* 5 upgrades */
-	<<if $securityForceAC130 == 1>>
-		A basic AC-130 has been 'borrowed' from the old world.
-	<<elseif $securityForceAC130 == 2>>
-		Modernised the AC-130's armor.
-	<<elseif $securityForceAC130 == 3>>
-		Modernized the AC-130's armor and weaponry.
-	<<elseif $securityForceAC130 == 4>>
-		Modernized the AC-130's armor, weaponry and electronics.
-	<<elseif $securityForceAC130 == 5>>
-		Modernized the AC-130's armor, weaponry, electronics and crew seating.
-	<</if>>
-<</if>>
-<<if $securityForceHeavyTransport > 0>>
-<br>
-	/* 3 upgrades */
-	<<if $securityForceHeavyTransport == 1>>
-		A basic heavy transport has been 'borrowed' from the old world.
-	<<elseif $securityForceHeavyTransport == 2>>
-		Modernized the heavy transport's armor.
-	<<elseif $securityForceHeavyTransport == 3>>
-		Modernized the armor and engines of the heavy transport.
-<</if>>
-<</if>>
-<</if>>
-
-<<if $securityForceArcologyUpgrades >= 2>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Drone Bay:''
-<br>
-/* 7 upgrades */
-<<if $securityForceDronePower == 0>>
-	The drone bay contains a small number of 're-purposed' non-military drones from the arcology's original contingent.
-<<elseif $securityForceDronePower == 1>>
-	The drone bay has replaced the security drones with basic, lightly-armoured military combat models possessing integrated small arms.
-<<elseif $securityForceDronePower == 2>>
-	The drone bay has replaced its basic military drones with more advanced models and added a number of support drones carrying heavy weaponry to its fleet.
-<<elseif $securityForceDronePower == 3>>
-	The drone bay has acquired even more advanced models of both the standard combat drones and the heavy support drones, and expanded its numbers of both.
-<<elseif $securityForceDronePower == 4>>
-	The drone bay has acted to upgrade both the standard and support models of drones to carry basic electromagnetic weaponry, improving their overall combat effectiveness.
-<<elseif $securityForceDronePower == 5>>
-	The drone bay has improved the electromagnetic armament of it's drones by mounting both miniaturized and heavy railguns on them. In addition further sourcing numerous models of drones for roles as diverse as reconnaissance, independent slave capture and swarming tactics.
-<<elseif $securityForceDronePower == 6>>
-	The drone bay has acquired even lighter advanced armoured combat Drones with electromagnetic weaponry, advanced heavy Drones with electromagnetic support weaponry along with specialized Drones for reconnaissance, capture, and swarm tactics.
-<<elseif $securityForceDronePower == 7>>
-	The drone bay has acquired even lighter advanced thicker armoured combat Drones with electromagnetic weaponry, advanced heavy Drones with electromagnetic support weaponry along with specialized Drones for reconnaissance, capture, and swarm tactics.
-<</if>>
-<</if>>
-
-<<if (_LaunchBayNO > 0 || _LaunchBayO > 0) && $securityForceArcologyUpgrades >= 4>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Launch Bay:''
-<<if $securityForceSatellitePower > 0>>
-	<br>
-	/* 18 upgrades */
-	<<if $securityForceSatellitePower == 1>>
-		A basic Satellite 'borrowed' from the old world.
-	<<elseif $securityForceSatellitePower == 2>>
-		Modernised the Satellite's eletronics.
-		<<elseif $securityForceSatellitePower == 3>>
-		Modernized the Satellite's electronics, wiring and circuitry.
-	<<elseif $securityForceSatellitePower == 4>>
-		Modernized the Satellite's electronics, wiring and circuitry.Installed a basic localized communications jammer to the Satellite (excludes your own frequencies with little to no leeway) that will "slightly" anger locals until it is deactivated.
-	<<elseif $securityForceSatellitePower == 5>>
-		Modernized the Satellite's electronics, wiring and circuitry.An advanced communications jammer is installed in the Satellite, increasing the AO localization, reducing the number of effected equipment.
-	<<elseif $securityForceSatellitePower == 6>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer power by 25% (now can damage effected equipment).
-	<<elseif $securityForceSatellitePower == 7>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).
-	<<elseif $securityForceSatellitePower == 8>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).The Satellite is now equipped with a basic EMP generator (advanced EMP hardening was applied before the insulation and activation) will "slightly" anger locals until it is deactivated.
-	<<elseif $securityForceSatellitePower == 9>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment).The Satellite is now equipped with an advanced EMP generator, increasing the AO localization which reduces the quantity of effected equipment.
-	<<elseif $securityForceSatellitePower == 10>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator by 25% (now can damage effected equipment).
-	<<elseif $securityForceSatellitePower == 11>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).
-	<<elseif $securityForceSatellitePower == 12>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to be able to shoot a concentrated beam of pure energy that is able to level an entire city block. It required overhauling the Satellite's battery system and shielding.
-	<<elseif $securityForceSatellitePower == 13>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the bean enough to level a suburb.
-	<<elseif $securityForceSatellitePower == 14>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level a box of houses.
-	<<elseif $securityForceSatellitePower == 15>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level a single house.
-	<<elseif $securityForceSatellitePower == 16>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 366 cm.
-	<<elseif $securityForceSatellitePower == 17>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 30 cm.
-	<<elseif $securityForceSatellitePower == 18>>
-		Modernized the Satellite's electronics, wiring and circuitry.Boosted the Satellite's advanced comms jammer's power by 50% (now can destroy effected equipment) and the output of the Satellite's advanced EMP generator 50% (now can destroy effected equipment).Provided R&D funds to focus the beam enough to level 15 cm.
-	<</if>>
-<</if>>
-<<if $securityForceGiantRobot > 0>>
-	<br>
-	/* 11 upgrades */
-	<<if $securityForceGiantRobot == 1>>
-		An old world giant robot has been 'Borrowed'.
-	<<elseif $securityForceGiantRobot == 2>>
-		Upgraded the giant robot's wiring and circuitry.
-	<<elseif $securityForceGiantRobot == 3>>
-		Upgraded the giant robot's wiring, circuitry and power efficiency.
-	<<elseif $securityForceGiantRobot == 4>>
-		Upgraded the giant robot's wiring, circuitry and power efficiency.Reduced the giant robot's weight.
-	<<elseif $securityForceGiantRobot == 5>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency and battery capacity.Reduced the giant robot's weight.
-	<<elseif $securityForceGiantRobot == 6>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency,battery capacity and armour.Reduced the giant robot's weight.
-	<<elseif $securityForceGiantRobot == 7>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons.
-	<<elseif $securityForceGiantRobot == 8>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.
-	<<elseif $securityForceGiantRobot == 9>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.
-	<<elseif $securityForceGiantRobot == 10>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.Replaced the skin of $securityForceName's giant robot with a basic optical illusion kit.
-	<<elseif $securityForceGiantRobot == 11>>
-		Upgraded the giant robot's wiring, circuitry, power efficiency, battery capacity, armour and weapons to include heat seeking missiles plus a massive long sword in addition to quad 356 cm back mounted electromagnetic cannons and the amount of pilots to two via a synced neural link.Improved the life support systems, allowing for longer operational time.Replaced the skin of $securityForceName's giant robot with an advanced optical illusion kit.
-	<</if>>
-<</if>>
-<<if $securityForceMissileSilo > 0>>
-	<br>
-	/* 3 upgrades */
-	<<if $securityForceMissileSilo == 1>>
-		A basic missile silo has been 'borrowed' from the old world.
-	<<elseif $securityForceMissileSilo == 2>>
-		Modernised the missile silo's lauching elentroics.
-	<<elseif $securityForceMissileSilo == 3>>
-		Modernized the missile silo's launching electronics, wiring and circuitry.
-	<</if>>
-<</if>>
-<</if>>
-
-<<if _NavalYard > 0 && ($terrain == "oceanic" || $terrain == "marine")>>
-<br><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''Naval Yard:''
-<<if $securityForceAircraftCarrier > 0>>
-	<br>
-	/* 4 upgrades */
-	<<if $securityForceAircraftCarrier == 1>>
-		A basic aircraft carrier has been 'borrowed' from the old world.
-	<<elseif $securityForceAircraftCarrier == 2>>
-		Modernised the aircraft carrier's eletronics.
-		<<elseif $securityForceAircraftCarrier == 3>>
-		Modernized the aircraft carrier's electronics and weaponry.
-	<<elseif $securityForceAircraftCarrier == 4>>
-		Modernized the aircraft carrier's electronics, weaponry and armour.
-	<</if>>
-<</if>>
-<<if $securityForceSubmarine > 0>>
-	<br>
-	/* 6 upgrades */
-	<<if $securityForceSubmarine == 1>>
-	A basic submarine has been 'borrowed' from the old world.
-	<<elseif $securityForceSubmarine == 2>>
-	Modernized the submarine's engines for speed.
-	<<elseif $securityForceSubmarine == 3>>
-	Modernized the submarine's engines for speed and silence.
-	<<elseif $securityForceSubmarine == 4>>
-	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence.
-	<<elseif $securityForceSubmarine == 5>>
-	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence and weaponry.
-	<<elseif $securityForceSubmarine == 6>>
-	Modernized the submarine's engines for speed and silence.Upgraded the submarine's hull for silence, weaponry and air scrubbers which increases submerge time..
-	<</if>>
-<</if>>
-<<if $securityForceHeavyAmphibiousTransport > 0>>
-	<br>
-	/* 5 upgrades */
-	<<if $securityForceHeavyAmphibiousTransport == 1>>
-		A basic heavy amphibious transport has been 'borrowed' from the old world.
-	<<elseif $securityForceHeavyAmphibiousTransport == 2>>
-		Modernized the heavy amphibious transport's armor.
-	<<elseif $securityForceHeavyAmphibiousTransport == 3>>
-		Modernized the heavy amphibious transport's armor and speed.
-	<<elseif $securityForceHeavyAmphibiousTransport == 4>>
-		Modernized the heavy amphibious transport's armor and speed. Added miniaturized railguns in all four corners.
-	<<elseif $securityForceHeavyAmphibiousTransport == 5>>
-		Modernized the heavy amphibious transport's armor and speed. Added miniaturized railguns in all four corners and a lazer designator in the midle.
-	<</if>>
-<</if>>
-<</if>>
-<</nobr>>
+<<include "SpecialForceUpgradeDec">>
-- 
GitLab