Skip to content

Commit

Permalink
Cleanup unused condition warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Aug 29, 2024
1 parent 1f38b8a commit 5e3a0cd
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mods/gen/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,8 @@
Delay: 1
Condition: update_queue
ShowSelectionBar: false
-GrantConditionOnFaction@Toxin:
-GrantConditionOnFaction@Demo:
-ActorStatOverride@ZH_UNITS:
ActorStatOverride@Stealth_ZH_UNITS:
Upgrades: upgrade.camo_netting
Expand Down Expand Up @@ -2289,11 +2291,13 @@
TargetTypes: GroundActor, Structure, NonGarrisonedStructure, C4, DetonateAttack, Disable, Defense
MustBeDestroyed:
RequiredForShortGame: false
-GrantConditionOnBotOwner@bot_owner:
-GivesBuildableArea@AI:
-AcceptsDeliveredCash:
-Capturable:
-CapturableProgressBar:
-CapturableProgressBlink:
-CaptureManager:
-DelayedWeaponAttachable@BOOBY_TRAP:
-TriggersDelayedWeapon@BOOBY_TRAP:
-Targetable@BOOBY_TRAP:
Expand All @@ -2316,6 +2320,7 @@
-Capturable:
-CapturableProgressBar:
-CapturableProgressBlink:
-CaptureManager:
-DelayedWeaponAttachable@BOOBY_TRAP:
-TriggersDelayedWeapon@BOOBY_TRAP:
-Targetable@BOOBY_TRAP:
Expand Down
1 change: 1 addition & 0 deletions mods/gen/rules/fakes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ fake.advanced_demo_trap:
IntoActor: building.advanced_demo_trap
Valued:
Cost: 25
-GrantConditionOnFaction@Toxin:
ActorStatValues:
Damage: 700
ActorStatOverride@Enemy:
Expand Down
1 change: 1 addition & 0 deletions mods/gen/rules/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ crate.supply_drop:
Delay: 13
RequiresCondition: !parachute
-Crate:
-GrantConditionOnPrerequisite@ZH_UNITS:
-ActorStatOverride@ZH_UNITS:

crate.scrap:
Expand Down
9 changes: 9 additions & 0 deletions mods/gen/rules/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,7 @@ building.advanced_demo_trap:
Name: actor-building-advanced-demo-trap.name
SpawnActorOnDeath:
Actor: building.advanced_demo_trap.explode
-GrantConditionOnFaction@Toxin:
ActorStatValues:
Damage: 700
-ActorStatOverride@Toxin:
Expand Down Expand Up @@ -4255,6 +4256,7 @@ building.supply_drop_zone:
PauseOnCondition: emp || hacked
Exit:
-CashTricklerMultiplier@SUPPLY_LINES:
-GrantConditionOnPrerequisite@SUPPLY_LINES:
Voiced:
VoiceSet: SupplyDropVoice
ActorStatValues:
Expand Down Expand Up @@ -4396,6 +4398,7 @@ building.speaker_tower:
-Capturable:
-CapturableProgressBar:
-CapturableProgressBlink:
-CaptureManager:
-DelayedWeaponAttachable@BOOBY_TRAP:
-TriggersDelayedWeapon@BOOBY_TRAP:
-Targetable@BOOBY_TRAP:
Expand Down Expand Up @@ -4709,6 +4712,9 @@ building.scud_storm:
GrantConditionOnFaction@ANTHRAX_BETA:
Condition: anthrax_beta
Factions: toxin
GrantConditionOnFaction@Toxin:
Condition: toxin
Factions: toxin
GrantConditionOnFaction@Demo:
Condition: demo
Factions: demo
Expand Down Expand Up @@ -4815,6 +4821,9 @@ building.scud_storm.boss:
DisplayOrder: 65
ProductionBar:
ProductionType: queue.boss_gen_scud_storm
-GrantConditionOnPrerequisite@MERGE_GENERALS:
-GrantConditionOnFaction@Stealth:
-GrantConditionOnFaction@Toxin:
-ActorStatOverride@Toxin:
-ActorStatOverride@Toxin_ZH_UNITS:
-ActorStatOverride@Demo:
Expand Down
9 changes: 8 additions & 1 deletion mods/gen/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,9 @@ vehicle.sentry_drone:
Modifier: 84
Passenger:
Weight: 1
-CargoCondition:
SharedPassenger:
-CargoCondition:
Crushable:
WarnProbability: 0
CrushClasses: vehicle
Expand Down Expand Up @@ -2285,7 +2288,7 @@ vehicle.assault_troop_crawler:
Condition: ShouldUnload
ValidDamageStates: Critical, Heavy
IssueOrderToBot@AI:
RequiresCondition: loaded && ShouldUnload
RequiresCondition: bot_owner && loaded && ShouldUnload
OrderName: Unload
OrderChance: 100
OrderTrigger: Periodically
Expand Down Expand Up @@ -4355,6 +4358,9 @@ vehicle.combat_cycle:
Modifier: 75
Passenger:
Weight: 1
-CargoCondition:
SharedPassenger:
-CargoCondition:
Crushable:
WarnProbability: 0
CrushClasses: vehicle
Expand Down Expand Up @@ -4994,6 +5000,7 @@ vehicle.tech_mcc:
WithTextDecoration@SIDE:
Text: TECH
Color: 888888
-GrantConditionOnPrerequisite@MERGE_GENERALS:

# used by laser general in no base mode
vehicle.mobile_reactor:
Expand Down

0 comments on commit 5e3a0cd

Please sign in to comment.