Auto-translated
Encountered a strange issue. The script adds creatures based on the difficulty level. However, for some reason, it was outputting incorrect numbers. I added "print(diff)", and it consistently outputted "2" for any difficulty level. I checked in other maps, and the same thing happened. Either something is broken in the game, or in the map... I decided to replace "DIFFICULTY_EASY" etc. with numbers (4 - "Recruit", 1 - "Hero"). It seems to be working now. But I'm surprised by this, as everything was working normally before.