Code: Select all
EffectsGroup
scope = Source
activation = And [
Planet
Focus type = "FOCUS_PLANET_DRIVE"
Or [
WithinStarlaneJumps jumps = 1 condition = Building name = "BLD_PLANET_BEACON"
WithinStarlaneJumps jumps = 1 condition = Contains And [
Ship
OwnedBy empire = Source.Owner
DesignHasPart low = 1 high = 999 name = "SP_PLANET_BEACON"
Turn low = LocalCandidate.ArrivedOnTurn + 1
]
]
]
effects = [
MoveTo destination = And [
OwnedBy empire = Source.Owner
WithinStarlaneJumps jumps = 1 condition = Source
Contains Or [
And [
Building name = "BLD_PLANET_BEACON"
OwnedBy empire = Source.Owner
]
And [
Ship
OwnedBy empire = Source.Owner
DesignHasPart low = 1 high = 999 name = "SP_PLANET_BEACON"
]
]
]
GenerateSitRepMessage
message = "EFFECT_PLANET_DRIVE"
label = "EFFECT_PLANET_DRIVE_LABEL"
icon = "icons/building/planetary_stardrive.png"
parameters = [
tag = "planet" data = Source.ID
tag = "system" data = Source.SystemID
]
empire = Source.Owner
SetPopulation value = Value / 2
]
Second issue: In the destination condition of the MoveTo effect the owner of the Planetary Beacon building is checked, but not in the activation condition. Shouldn't these two match (after all, the owner of the ship based Planetary Beacon does get checked in both conditions)?