Where to anchor a global, empire-less effect?
Posted: Sat Jun 20, 2020 9:55 am
AFAICT, most (or probably all) FOCS effects are triggered from techs or populated ships/planets owned by empires.
For example, the -50% troop malus for outposts is triggered from the species troop traits (NO/BAD/AVERAGE/GOOD/GREAT/ULTIMATE_DEFENSE_TROOPS), which in turn is triggered from the species themselves.
As Ophiuchus and Geoff explain, If an empire had no species (no ships, no populated planets), the malus would not be applied to its outposts. A possible solution would be to anchor that effect (AFTER_SPECIES_MULTIPLICATOR_TROOPS) to a tech instead of to species.
Another problematic case is about monsters producing resources: since they don't have a species, the STANDARD_METER_GROWTH effect (which is anchored at the species definitions) does not apply to them. The solution in that PR is a bit hacky: do not let monsters (owned and unowned) to produce resources. The STANDARD_METER_GROWTH could be attached to a tech instead of to species, and then owned monsters could do things like producing resources. However, would that work for unowned natives? AFAIK, techs are attached to empires, and natives (or rebelled colonies, when we get that) do not have an empire.
So, could we get some sort of universal/global macro that applies to everything in the universe regardless of empires, species, techs, etc.?
For example, the -50% troop malus for outposts is triggered from the species troop traits (NO/BAD/AVERAGE/GOOD/GREAT/ULTIMATE_DEFENSE_TROOPS), which in turn is triggered from the species themselves.
As Ophiuchus and Geoff explain, If an empire had no species (no ships, no populated planets), the malus would not be applied to its outposts. A possible solution would be to anchor that effect (AFTER_SPECIES_MULTIPLICATOR_TROOPS) to a tech instead of to species.
Another problematic case is about monsters producing resources: since they don't have a species, the STANDARD_METER_GROWTH effect (which is anchored at the species definitions) does not apply to them. The solution in that PR is a bit hacky: do not let monsters (owned and unowned) to produce resources. The STANDARD_METER_GROWTH could be attached to a tech instead of to species, and then owned monsters could do things like producing resources. However, would that work for unowned natives? AFAIK, techs are attached to empires, and natives (or rebelled colonies, when we get that) do not have an empire.
So, could we get some sort of universal/global macro that applies to everything in the universe regardless of empires, species, techs, etc.?