Skip to content

Commit

Permalink
Make the BLD_LIGHTHOUSE effect more gradual and less effective for pl…
Browse files Browse the repository at this point in the history
…anets/buildings

was -30, now between -20 to -30 for ships and -0 to -10 for all other objects
  • Loading branch information
Axel Groß committed Oct 11, 2022
1 parent eee10ab commit 82e73e2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
31 changes: 26 additions & 5 deletions default/scripting/buildings/LIGHTHOUSE.focs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,42 @@ BuildingType
enqueuelocation = [[ENQUEUE_BUILD_ONE_PER_PLANET]]
effectsgroups = [
[[SPECIES_LIKES_OR_DISLIKES_BUILDING_STABILITY_EFFECTS]]


EffectsGroup
scope = And [
Ship
WithinDistance distance = 0.00001 condition = Source
]
stackinggroup = "LIGHTHOUSE_IMMEDIATE_STEALTH_STACK"
effects = SetStealth value = Value - NamedReal name = "BLD_LIGHTHOUSE_IMMEDIATE_STEALTH_MALUS" value = 20

// Highly Self Illuminated, automatically "registered in catalog"
EffectsGroup
scope = Source
stackinggroup = "LIGHTHOUSE_CATALOG_STEALTH_STACK"
accountinglabel = "BLD_LIGHTHOUSE_CATALOG_STEALTH_LABEL"
effects = SetStealth value = Value - NamedReal name = "BLD_LIGHTHOUSE_SELF_STEALTH_MALUS" value = 20

// takes the maximum age of all lighthouse buildings in the system regardless of owner (by just triggering for the oldest ones)
EffectsGroup
scope = WithinDistance distance = 0.00001 condition = Source
stackinggroup = "LIGHTHOUSE_STEALTH_STACK"
effects = SetStealth value = Value - 30
stackinggroup = "LIGHTHOUSE_CATALOG_STEALTH_STACK"
activation = (Source.Age >= (Statistic Max value = LocalCandidate.Age condition = And [
InSystem id = Source.SystemID
Building name = "BLD_LIGHTHOUSE"
]))
accountinglabel = "BLD_LIGHTHOUSE_CATALOG_STEALTH_LABEL"
effects = SetStealth value = Value - min(Source.Age, NamedReal name = "BLD_LIGHTHOUSE_CATALOG_STEALTH_MALUS" value = 10)

EffectsGroup
scope = And [
Ship
OwnedBy empire = Source.Owner
WithinDistance distance = 50 condition = Source
WithinDistance distance = NamedReal name = "BLD_LIGHTHOUSE_SPEEDUP_DISTANCE" value = 50 condition = Source
Speed low = 1 // Immobile objects do not get the starlane speed boost.
]
stackinggroup = "LIGHTHOUSE_SPEED_STACK"
effects = SetSpeed value = Value + 20
effects = SetSpeed value = Value + NamedReal name = "BLD_LIGHTHOUSE_SPEEDUP" value = 20
]
icon = "icons/building/lighthouse.png"

Expand Down
9 changes: 8 additions & 1 deletion default/stringtables/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14817,7 +14817,14 @@ BLD_LIGHTHOUSE
Interstellar Lighthouse

BLD_LIGHTHOUSE_DESC
Decreases the [[metertype METER_STEALTH]] of all objects in the same system by 30 and increases the [[metertype METER_SPEED]] of friendly ships that start the turn within 50 uu by 20 for that turn. [[BUILDING_AVAILABLE_ON_OUTPOSTS]] and may facilitate use of a [[buildingtype BLD_PLANET_DRIVE]].
'''Decreases the [[metertype METER_STEALTH]] of all ships in the same system by [[value BLD_LIGHTHOUSE_IMMEDIATE_STEALTH_MALUS]]. On top of this the Interstellar Lighthouse decreases the [[metertype METER_STEALTH]] of all objects by the number of turns it operates, up to [[value BLD_LIGHTHOUSE_CATALOG_STEALTH_MALUS]]. It also increases the [[metertype METER_SPEED]] of friendly ships that start the turn within [[value BLD_LIGHTHOUSE_SPEEDUP_DISTANCE]] uu by [[value BLD_LIGHTHOUSE_SPEEDUP]] for that turn. [[BUILDING_AVAILABLE_ON_OUTPOSTS]] and may facilitate use of a [[buildingtype BLD_PLANET_DRIVE]].

This building complex sends a complex pattern of EM pulses and particle streams to reveal the location of objects in a system. After a while, all usual objects in a system are registered in a catalog so unusual occurences can be identified more effectively.

The building complex itself immediately gets registered in the catalog and is very visible with [[metertype METER_STEALTH]] decreased by [[value BLD_LIGHTHOUSE_SELF_STEALTH_MALUS]].'''

BLD_LIGHTHOUSE_CATALOG_STEALTH_LABEL
Lighthouse System Catalog

BLD_SCANNING_FACILITY
Scanning Facility
Expand Down

0 comments on commit 82e73e2

Please sign in to comment.