Design summary detection & BioAdaptive Hull

Creation, discussion, and balancing of game content such as techs, buildings, ship parts.

Moderators: Oberlus, Committer

Post Reply
Message
Author
User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Design summary detection & BioAdaptive Hull

#1 Post by MatGB »

In the preview for most other hull types, it correctly shows the base detection strength, but for the Bioadaptive it doesn't. Given that it's one of the main strengths of the hull and it's probably the best stealth scout hull in the game, that's a minor problem.

For the Ravenous Hull, it works corretly, code is:

Code: Select all

    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetDetection value = Value + 75
For the BioAdaptive it's a combined group

Code: Select all

    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Turn low = Source.CreationTurn + 1
            effects = [
                SetStructure value = Target.MaxStructure
                SetFuel value = Value + 0.2
                SetDetection value = Value + 75
            ]
I'm guessing it's because it's in the same group as the full repair effect and thus doesn't apply on turn one, yes?

I like the new feature, need to understand what it's looking at to make sure it works properly for any future effects.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Post Reply