FUNCTION CohesionTest code error?

Post Reply
eblingus
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 10
Joined: Sat Jan 11, 2020 2:01 am

FUNCTION CohesionTest code error?

Post by eblingus »

in FUNCTION CohesionTest, in section "// Troops fighting nasty impact types"
One of the three possible conditions is:
if (IsUnitSquadType(me, "Heavy_Chariots") == 1)
{
uniqueModifier = 1;
PrintStringLiteralX(UIString, 0, "\n"); // v1.5.4 addition
PrintStringX(UIString, 0, "IDS_CT_HEAVY_CHARIOTS"); // v1.5.4 addition
Log("Fighting heavy chariots", me);
}

This looks to me to be an error in the code. I think it is supposed to be "if (IsUnitSquadType(enemy, "Heavy_Chariots") == 1)" ?
That is the way the other modifiers in this section work.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28274
Joined: Sun Dec 04, 2005 6:25 pm

Re: FUNCTION CohesionTest code error?

Post by rbodleyscott »

Many thanks indeed. Will look into it and correct it.
Richard Bodley Scott

Image
eblingus
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 10
Joined: Sat Jan 11, 2020 2:01 am

Re: FUNCTION CohesionTest code error?

Post by eblingus »

ya welcome :)
Post Reply

Return to “Field of Glory II: Tech Support”