FreeOrion

Forums for the FreeOrion project
It is currently Sun Dec 17, 2017 3:46 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue May 26, 2015 12:11 am 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3295
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:
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = Source
            effects = SetDetection value = Value + 75
For the BioAdaptive it's a combined group
Code:
    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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group