1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

resource translation

This commit is contained in:
Laserlicht
2025-09-14 16:17:55 +02:00
parent 75f965c93a
commit 40062d7755
10 changed files with 54 additions and 29 deletions

View File

@@ -17,6 +17,7 @@
#include "../callback/IGameInfoCallback.h"
#include "../entities/faction/CTownHandler.h"
#include "../entities/hero/CHeroClass.h"
#include "../entities/ResourceTypeHandler.h"
#include "../mapObjects/CGHeroInstance.h"
#include "../mapObjects/CGTownInstance.h"
#include "../mapObjects/MiscObjects.h"
@@ -60,7 +61,7 @@ bool ResourceInstanceConstructor::hasNameTextID() const
std::string ResourceInstanceConstructor::getNameTextID() const
{
return TextIdentifier("core", "restypes", resourceType.getNum()).get();
return LIBRARY->resourceTypeHandler->getById(resourceType)->getNameTextID();
}
GameResID ResourceInstanceConstructor::getResourceType() const