Bug: Planet stealth tech costs wrong

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
wobbly
Cosmic Dragon
Posts: 1808
Joined: Thu Oct 10, 2013 6:48 pm

Bug: Planet stealth tech costs wrong

#1 Post by wobbly »

brackets are out:

Code: Select all

    researchcost=(
        160
        - (80 * StatisticIf(float, condition=Source & OwnerHasTech(name="SPY_STEALTH_PART_1")))
        * TECH_COST_MULTIPLIER
        / (1 + StatisticIf(float, condition=OwnedBy(empire=Source.Owner) & HasTag(name="SNEAKY")))
    ),
should be:

Code: Select all

    researchcost=(
        (
        160
        - (80 * StatisticIf(float, condition=Source & OwnerHasTech(name="SPY_STEALTH_PART_1")))
        )
        * TECH_COST_MULTIPLIER
        / (1 + StatisticIf(float, condition=OwnedBy(empire=Source.Owner) & HasTag(name="SNEAKY")))
    ),

Post Reply