mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Fix mapping of map objects linked to game entities
This commit is contained in:
parent
f86133705e
commit
d742b6b809
@ -111,6 +111,15 @@ void MapIdentifiersH3M::remapTemplate(ObjectTemplate & objectTemplate)
|
||||
objectTemplate.id = mappedType.ID;
|
||||
objectTemplate.subid = mappedType.subID;
|
||||
}
|
||||
|
||||
if (objectTemplate.id == Obj::TOWN || objectTemplate.id == Obj::RANDOM_DWELLING_FACTION)
|
||||
objectTemplate.subid = remap(FactionID(objectTemplate.subid));
|
||||
|
||||
if (objectTemplate.id == Obj::MONSTER)
|
||||
objectTemplate.subid = remap(CreatureID(objectTemplate.subid));
|
||||
|
||||
if (objectTemplate.id == Obj::ARTIFACT)
|
||||
objectTemplate.subid = remap(ArtifactID(objectTemplate.subid));
|
||||
}
|
||||
|
||||
BuildingID MapIdentifiersH3M::remapBuilding(std::optional<FactionID> owner, BuildingID input) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user