Skip to content

Commit

Permalink
make Military Command slot effects only act on capitals owned by the …
Browse files Browse the repository at this point in the history
…building owner, so that stacking group will prevent multiple additional slots for multiple owned buildings
  • Loading branch information
geoffthemedio committed Jan 28, 2023
1 parent 900f680 commit a5311dd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions default/scripting/buildings/MILITARY_COMMAND.focs.txt
Expand Up @@ -19,7 +19,11 @@ BuildingType
[[SPECIES_LIKES_OR_DISLIKES_BUILDING_STABILITY_EFFECTS]]

EffectsGroup
scope = Source
scope = And [
Planet
OwnedBy empire = Source.Owner
Capital
]
activation = ContainedBy And [
Object id = Source.PlanetID
OwnedBy empire = Source.Owner
Expand All @@ -28,7 +32,11 @@ BuildingType
effects = SetEmpireMeter empire = Source.Owner meter = "MILITARY_CATEGORY_NUM_POLICY_SLOTS" value = Value + 1

EffectsGroup
scope = Source
scope = And [
Planet
OwnedBy empire = Source.Owner
Capital
]
activation = (5 <= SpeciesShipsDestroyed empire = Source.Owner)
stackinggroup = "MILITARY_COMMAND_SLOT_METER_EFFECT2"
effects =
Expand Down

0 comments on commit a5311dd

Please sign in to comment.