ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.74k stars 376 forks source link

Game, recruitment of opponent heroes improved by AI players #2498

Open LeHerosInconnu opened 3 years ago

LeHerosInconnu commented 3 years ago

In fheroes2, it's too easy to recruit heroes improved by AI players compared to the original game.

In this game, I have already recruited heroes from the opposing players and there is still one hero available for recruitment in the tavern.

In fheroes2:

Easy AI hero fh2 01

Easy AI hero fh2 02

Here is the save file: Enemy hero tavern easy fh2 01.zip

vincent-grosbois commented 3 years ago

I don't get it, what's the intended behavior?

LeHerosInconnu commented 3 years ago

Hello @vincent-grosbois,

I don't get it, what's the intended behavior?

In the original game, AI players seem to recruit their defeated heroes more often, so the human player is less likely to be able to recruit them. Someone should check the source code of the original game to see how this is handled.

Branikolog commented 3 years ago

I agree with @LeHerosInconnu. Enemy heroes with high level or with artifacts seem to appear in tavern too often. Either AI doesn't buy heroes that had run from a battle, or AI heroes were defeated too often...

idshibanov commented 3 years ago

Currently AI buys hero only at the start of the turn, have to add another check at the end after all moves.