News

[Bug] Missing Info in tooltip.

Posted on Monday, August 15, 2016

I created a Planet Trait that has a trigger to apply a bonus to each new colony founded. I had to use a trigger because adding a Scope entry(Global) too EffectModifier does not work neither does having Faction as a Target btw. So a Trigger it was:-

 <PlanetTrait>
    <InternalName>HomeWorld_FED</InternalName>
    <DisplayName>ST_HomeWorld_Name</DisplayName>
    <Description>ST_HomeWorld_Dec</Description>
    <RelativeWeight>0</RelativeWeight>
        
    <PlanetClassSelect>
      <MinPlanetClass>16</MinPlanetClass>
      <MaxPlanetClass>16</MaxPlanetClass>
      <Weight>100</Weight>
    </PlanetClassSelect>
    
    <EffectModifier>
      <EffectType>Growth</EffectType>
      <Target>
        <TargetType>Colony</TargetType>
      </Target>
      <BonusType>Multiplier</BonusType>
      <Value>0.2</Value>
    </EffectModifier>
    <EffectModifier>
      <EffectType>ProductionPoints</EffectType>
      <Target>
        <TargetType>Colony</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>4</Value>
    </EffectModifier>
        <EffectModifier>
            <EffectType>InfluencePerTurn</EffectType>
            <Target>
                <TargetType>Colony</TargetType>
            </Target>
            <BonusType>Flat</BonusType>
            <Value>1.5</Value>
        </EffectModifier>

        <Triggers>
            <OnEvent>OnColonizePlanet</OnEvent>
            <Scope>Global</Scope>
            <Target>
                <TargetType>Colony</TargetType>
            </Target>
            <Lifetime>Target</Lifetime>
            <Modifier>
                <EffectType>InfluencePerTurn</EffectType>
                <Target>
                    <TargetType>Colony</TargetType>
                </Target>
                <BonusType>Flat</BonusType>
                <Value>1</Value>
            </Modifier>
        </Triggers>
        
        <ColonizationPrerequ>
      <Techs>
          <Option>TechTree</Option>
      </Techs>
    </ColonizationPrerequ>

  </PlanetTrait>

It works, the +1 Influence is applied to a new colony, only it does not show where from in the tooltip instead it shows a "Missing Info" +1:-