Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Microwave Fix To Boss Fusion Reactor #832

Merged
merged 5 commits into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9833,7 +9833,6 @@ Object AirF_AmericaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down Expand Up @@ -14663,7 +14662,6 @@ Object AirF_AmericaSupplyDropZone

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down
43 changes: 38 additions & 5 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/BossGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2393,11 +2393,24 @@ Object Boss_PowerPlant
EnergyBonus = 5
VisionRange = 200.0 ; Shroud clearing distance
ShroudClearingRange = 200

; Patch104p @bugfix - hanfield commy2
; Added new default armorset that cannot be targeted or suffer SUBDUAL damage.
; This resolves the Microwave Tank exploit but does not prevent being properly disabled later.
; 06/08/2022

ArmorSet
Conditions = None
Armor = StructureArmor
DamageFX = StructureDamageFXNoShake
Conditions = None ; Default state while being constructed.
Armor = StructureArmor_NoSubdualDamage ; Cannot be targeted by Microwave Tanks.
DamageFX = StructureDamageFXNoShake
End

ArmorSet
Conditions = PLAYER_UPGRADE ; Upgrade is granted immediately once construction is complete.
Armor = StructureArmor ; Can be disabled by Microwave Tanks normally.
DamageFX = StructureDamageFXNoShake
End

CommandSet = Boss_AmericaPowerPlantCommandSet
ExperienceValue = 100 100 100 100 ; Experience point value at each level

Expand Down Expand Up @@ -2486,10 +2499,30 @@ Object Boss_PowerPlant
UpgradedMineName = ChinaEMPMine
End

Behavior = ArmorUpgrade ModuleTag_26
TriggeredBy = Upgrade_ChinaEMPMines
; Patch104p @bugfix - hanfield commy2
; Added two extra modules for Microwave Tank bug fix.
;
; MicrowaveTankFix01 grants a dummy object-class upgrade once the building is complete.
; MicrowaveTankFix02 upgrades the armor with said upgrade and allows subdual once again.
;
; 06/08/2022

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
TriggeredBy = Upgrade_DummyUpgrade
End

; Patch104p @bugfix - hanfield commy2
; Replaced the ArmorUpgrade that was used to trigger EMP mine availability with WeaponSetUpgrade.
; This allows the player to research EMP mines while permitting the armorset-related bugfix.
; 06/08/2022

Behavior = WeaponSetUpgrade ModuleTag_NeutronMineDummy
TriggeredBy = Upgrade_ChinaEMPMines
End

Geometry = BOX
GeometryMajorRadius = 22.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5115,7 +5115,6 @@ Object AmericaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down Expand Up @@ -19017,7 +19016,6 @@ Object ChinaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down Expand Up @@ -20415,12 +20413,12 @@ Object AmericaSupplyDropZone
; 22/08/2021

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_ChinaOverlordGattlingCannon
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
TriggeredBy = Upgrade_ChinaOverlordGattlingCannon
TriggeredBy = Upgrade_DummyUpgrade
End

Geometry = BOX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8461,7 +8461,6 @@ Object Infa_ChinaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down
2 changes: 0 additions & 2 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/LaserGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9533,7 +9533,6 @@ Object Lazr_AmericaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down Expand Up @@ -14348,7 +14347,6 @@ Object Lazr_AmericaSupplyDropZone

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10231,7 +10231,6 @@ Object Nuke_ChinaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13776,7 +13776,6 @@ Object SupW_AmericaSupplyDropZone

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down Expand Up @@ -17505,7 +17504,6 @@ Object SupW_AmericaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8136,7 +8136,6 @@ Object Tank_ChinaPowerPlant

Behavior = GrantUpgradeCreate ModuleTag_MicrowaveTankFix01
UpgradeToGrant = Upgrade_DummyUpgrade
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = ArmorUpgrade ModuleTag_MicrowaveTankFix02
Expand Down
2 changes: 1 addition & 1 deletion Patch104pZH/GameFilesEdited/Data/INI/Upgrade.ini
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,9 @@ End
; Added a new dummy object-class upgrade for use in places where a local upgrade is required.
; 23/08/2021

; @bugfix commy2 06/08/2022 Upgrade is now global.
;----------------------------
Upgrade Upgrade_DummyUpgrade
Type = OBJECT
BuildTime = 0.0
BuildCost = 0
End