I don't know if it's possible with the code base, but could a new trait be "militaristic : ability to mobilize all the planet for war" ?
Militaristic species would get a +150 % bonus from "Protection" focus (very militaristic could get +200 %, extremely militaristic +300 %).
Obviously we could get "pacific" also who would get +75 % bonus only from "Protection" focus.
New Species Trait : Militaristic ?
Moderator: Oberlus
Re: New Species Trait : Militaristic ?
Technically possible.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!
Re: New Species Trait : Militaristic ?
Those words (Militaristic, Pacifist) are somewhat reserved for species (moral) values.
If this is about Planetary Defenses, call it something more directly related to that.
If this is about Planetary Defenses, call it something more directly related to that.
Re: New Species Trait : Militaristic ?
I don't know the code very well but I'd probably start by looking at planet_defense.macros
Code: Select all
PROTECTION_FOCUS_DEFENSE
'''EffectsGroup
scope = Source
activation = And [
Planet
Focus type = "FOCUS_PROTECTION"
]
stackinggroup = "FOCUS_PROTECTION_DEFENSE_STACK"
accountinglabel = "FOCUS_PROTECTION_LABEL"
priority = [[TARGET_AFTER_2ND_SCALING_PRIORITY]]
effects = [
SetMaxDefense value = Value * 2 accountinglabel = "FOCUS_PROTECTION_LABEL"
SetTargetHappiness value = Value + 15
]
'''
Re: New Species Trait : Militaristic ?
Either add a tag to the species and use that in the PROTECTION_FOCUS_DEFENSE or add it as new effect to the species (using a macro like its done for all that GOOD/../BAD stuff).
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!