Hi! Looking for help with good practice and algorithm
Here's my function of henchman selection for AI player, x1 = hero id:
Priority is with
1. Creature with more shots
2. If shots are the same, then the creature with less fight value
Say that there are Archers, Maskmen and Titans, Maskmen would be chosen.
Thoughts?
didn't write in ERM 2 for compatibility reason
____
Edit: Been thinking of adding priority for the creature that matches the hero's specialty. But how can I check whether a creature is buffed by the hero spec efficiently? By comparing creature id with the result from HE:X?