1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Remove hardcoded checks for town portal from AI code

This commit is contained in:
Ivan Savenko
2025-07-11 18:03:18 +03:00
parent f51c7c5c28
commit b1aff17e82
10 changed files with 82 additions and 54 deletions

View File

@@ -856,16 +856,16 @@ public:
NONE = -1,
// Adventure map spells
SUMMON_BOAT = 0,
SCUTTLE_BOAT = 1,
VISIONS = 2,
VIEW_EARTH = 3,
DISGUISE = 4,
VIEW_AIR = 5,
FLY = 6,
WATER_WALK = 7,
DIMENSION_DOOR = 8,
TOWN_PORTAL = 9,
SUMMON_BOAT [[deprecated]] = 0,
SCUTTLE_BOAT [[deprecated]] = 1,
VISIONS [[deprecated]] = 2,
VIEW_EARTH [[deprecated]] = 3,
DISGUISE [[deprecated]] = 4,
VIEW_AIR [[deprecated]] = 5,
FLY [[deprecated]] = 6,
WATER_WALK [[deprecated]] = 7,
DIMENSION_DOOR [[deprecated]] = 8,
TOWN_PORTAL [[deprecated]] = 9,
// Combat spells
QUICKSAND = 10,