Ignore:
Timestamp:
Jul 5, 2025, 10:57:12 AM (5 hours ago)
Author:
chronos
Message:
  • Fixed: Fixed unit move style hostile calculation in StdAI. Engineers don't take hostile damage on hostile terrain.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AI/StdAI/ToolAI.pas

    r592 r663  
    613613      dGround:
    614614      begin
    615         Inc(Result, (50 + (Speed - 150) * 13 shr 7) shl 8); //HeavyCost
     615        Inc(Result, (50 + (Speed - 150) * 13 shr 7) shl 8); // HeavyCost
    616616        if RO.Wonder[woShinkansen].EffectiveOwner <> Me then
    617617          Inc(Result, Speed * (4 * 1311) shr 17); // RailCost
    618         if (RO.Wonder[woGardens].EffectiveOwner <> Me) or
    619           (Kind = mkSettler) and (Speed >= 200) then
     618        if (RO.Wonder[woGardens].EffectiveOwner <> Me) and
     619          not ((Kind = mkSettler) and (Speed >= 200)) then
    620620          Inc(Result, msHostile);
    621621        if Kind = mkDiplomat then
Note: See TracChangeset for help on using the changeset viewer.