Skip to content

Commit

Permalink
Fix: Grant Faction Inherent Upgrades By Dummy Instead Of By Building
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 authored and xezon committed Jul 16, 2022
1 parent e71b6d7 commit d28cf00
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1033,15 +1033,6 @@ Object Chem_GLACommandCenter
ReallyDamagedParticleSystem3 = Bone:None RandomBone:No PSys:StructureTransitionMediumShockwave
End

;Toxin General gets these for free.
Behavior = GrantUpgradeCreate ModuleTag_23
UpgradeToGrant = Upgrade_GLAToxinShells
End

Behavior = GrantUpgradeCreate ModuleTag_24
UpgradeToGrant = Upgrade_GLAAnthraxBeta
End

Geometry = BOX
GeometryMajorRadius = 65.0
GeometryMinorRadius = 65.0
Expand Down
6 changes: 0 additions & 6 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/DemoGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1169,12 +1169,6 @@ Object Demo_GLACommandCenter
ReallyDamagedParticleSystem3 = Bone:None RandomBone:No PSys:StructureTransitionMediumShockwave
End

; DemoGen gets free booby trap power.
Behavior = GrantUpgradeCreate ModuleTag_23
UpgradeToGrant = Upgrade_GLAInfantryRebelBoobyTrapAttack
ExemptStatus = UNDER_CONSTRUCTION
End

Geometry = BOX
GeometryMajorRadius = 65.0
GeometryMinorRadius = 65.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1948,14 +1948,6 @@ Object GC_Chem_GLACommandCenter
ReferenceObject = GLASneakAttackTunnelNetwork ;So we know what the final product is for script placement calculations
End

Behavior = GrantUpgradeCreate ModuleTag_22
UpgradeToGrant = Upgrade_GLAToxinShells
End

Behavior = GrantUpgradeCreate ModuleTag_23
UpgradeToGrant = Upgrade_GLAAnthraxBeta
End

Geometry = BOX
GeometryMajorRadius = 65.0
GeometryMinorRadius = 65.0
Expand Down
15 changes: 0 additions & 15 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/InfantryGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4281,11 +4281,6 @@ Object Infa_ChinaCommandCenter
OCLAdjustPositionToPassable = Yes ;Like RA2, shift target to passable cell so we don't land in water and on cliffs.
End

Behavior = GrantUpgradeCreate ModuleTag_28
UpgradeToGrant = Upgrade_Nationalism
ExemptStatus = UNDER_CONSTRUCTION
End

Behavior = OCLSpecialPower ModuleTag_29
SpecialPowerTemplate = Early_SuperweaponFrenzy
UpgradeOCL = Early_SCIENCE_Frenzy3 SUPERWEAPON_Frenzy3
Expand Down Expand Up @@ -9803,11 +9798,6 @@ Object Infa_ChinaBarracks
TriggeredBy = Upgrade_ChinaEMPMines
End

Behavior = GrantUpgradeCreate ModuleTag_27
UpgradeToGrant = Upgrade_Nationalism
ExemptStatus = UNDER_CONSTRUCTION
End

Geometry = BOX
GeometryMajorRadius = 36.0
GeometryMinorRadius = 44.0
Expand Down Expand Up @@ -10858,11 +10848,6 @@ Object Infa_ChinaWarFactory
TriggeredBy = Upgrade_ChinaEMPMines
End

Behavior = GrantUpgradeCreate ModuleTag_27
UpgradeToGrant = Upgrade_Nationalism
ExemptStatus = UNDER_CONSTRUCTION
End

Geometry = BOX
GeometryMajorRadius = 57.0
GeometryMinorRadius = 61.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12812,9 +12812,6 @@ Object Slth_GLAInfantryRebel
Behavior = WeaponBonusUpgrade ModuleTag_09
TriggeredBy = Upgrade_GLAAPBullets
End
Behavior = GrantUpgradeCreate ModuleTag_10
UpgradeToGrant = Upgrade_GLACamouflage
End

Behavior = SquishCollide ModuleTag_11
;nothing
Expand Down
104 changes: 104 additions & 0 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/System.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2912,3 +2912,107 @@ Object CashBountyDummy
Bounty = 20%
End
End

;------------------------------------------------------------------------------
Object ChinaNationalism_UpgradeDummy
EditorSorting = SYSTEM
KindOf = INERT

Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 0
MaxLifetime = 0
End

Behavior = GrantUpgradeCreate ModuleTag_28
UpgradeToGrant = Upgrade_Nationalism
ExemptStatus = UNDER_CONSTRUCTION
End
End

;------------------------------------------------------------------------------
Object GLAToxinShells_UpgradeDummy
EditorSorting = SYSTEM
KindOf = INERT

Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 0
MaxLifetime = 0
End

;Toxin General gets these for free.
Behavior = GrantUpgradeCreate ModuleTag_23
UpgradeToGrant = Upgrade_GLAToxinShells
End
End

;------------------------------------------------------------------------------
Object GLAAnthraxBeta_UpgradeDummy
EditorSorting = SYSTEM
KindOf = INERT

Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 0
MaxLifetime = 0
End

Behavior = GrantUpgradeCreate ModuleTag_24
UpgradeToGrant = Upgrade_GLAAnthraxBeta
End
End

;------------------------------------------------------------------------------
Object GLACamouflage_UpgradeDummy
EditorSorting = SYSTEM
KindOf = INERT

Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 0
MaxLifetime = 0
End

Behavior = GrantUpgradeCreate ModuleTag_10
UpgradeToGrant = Upgrade_GLACamouflage
End
End

;------------------------------------------------------------------------------
Object GLAInfantryRebelBoobyTrapAttack_UpgradeDummy
EditorSorting = SYSTEM
KindOf = INERT

Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 0
MaxLifetime = 0
End

; DemoGen gets free booby trap power.
Behavior = GrantUpgradeCreate ModuleTag_23
UpgradeToGrant = Upgrade_GLAInfantryRebelBoobyTrapAttack
ExemptStatus = UNDER_CONSTRUCTION
End
End
5 changes: 5 additions & 0 deletions Patch104pZH/GameFilesEdited/Data/INI/PlayerTemplate.ini
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ PlayerTemplate FactionChinaInfantryGeneral
DisplayName = INI:FactionChinaInfantryGeneral
StartingBuilding = Infa_ChinaCommandCenter
StartingUnit0 = Infa_ChinaVehicleDozer
StartingUnit1 = ChinaNationalism_UpgradeDummy
ScoreScreenImage = China_ScoreScreen
LoadScreenImage = SNFactionLogoPage_China
LoadScreenMusic = Load_China
Expand Down Expand Up @@ -368,6 +369,8 @@ PlayerTemplate FactionGLAToxinGeneral
DisplayName = INI:FactionGLAToxinGeneral
StartingBuilding = Chem_GLACommandCenter
StartingUnit0 = Chem_GLAInfantryWorker
StartingUnit1 = GLAToxinShells_UpgradeDummy
StartingUnit2 = GLAAnthraxBeta_UpgradeDummy
ScoreScreenImage = GLA_ScoreScreen
LoadScreenImage = SUFactionLogoPage_GLA
LoadScreenMusic = Load_GLA
Expand Down Expand Up @@ -403,6 +406,7 @@ PlayerTemplate FactionGLADemolitionGeneral
DisplayName = INI:FactionGLADemolitionGeneral
StartingBuilding = Demo_GLACommandCenter
StartingUnit0 = Demo_GLAInfantryWorker
StartingUnit1 = GLAInfantryRebelBoobyTrapAttack_UpgradeDummy
ScoreScreenImage = GLA_ScoreScreen
LoadScreenImage = SUFactionLogoPage_GLA
LoadScreenMusic = Load_GLA
Expand Down Expand Up @@ -438,6 +442,7 @@ PlayerTemplate FactionGLAStealthGeneral
DisplayName = INI:FactionGLAStealthGeneral
StartingBuilding = Slth_GLACommandCenter
StartingUnit0 = Slth_GLAInfantryWorker
StartingUnit1 = GLACamouflage_UpgradeDummy
ScoreScreenImage = GLA_ScoreScreen
LoadScreenImage = SUFactionLogoPage_GLA
LoadScreenMusic = Load_GLA
Expand Down

0 comments on commit d28cf00

Please sign in to comment.