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
Changes from all 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
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