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

All creature-related texts go through translator

This commit is contained in:
Ivan Savenko
2023-01-02 18:00:51 +02:00
parent fa6f7513e8
commit d2b837b116
33 changed files with 138 additions and 100 deletions

View File

@@ -59,7 +59,7 @@ void CBank::setConfig(const BankConfig & config)
clear(); // remove all stacks, if any
for (auto & stack : config.guards)
setCreature (SlotID(stacksCount()), stack.type->idNumber, stack.count);
setCreature (SlotID(stacksCount()), stack.type->getId(), stack.count);
}
void CBank::setPropertyDer (ui8 what, ui32 val)
@@ -255,7 +255,7 @@ void CBank::doVisit(const CGHeroInstance * hero) const
return a.type->fightValue < b.type->fightValue;
})->type;
iw.text.addReplacement(MetaString::CRE_PL_NAMES, strongest->idNumber);
iw.text.addReplacement(MetaString::CRE_PL_NAMES, strongest->getId());
iw.text.addReplacement(loot.buildList());
}
cb->showInfoDialog(&iw);
@@ -309,7 +309,7 @@ void CBank::doVisit(const CGHeroInstance * hero) const
CCreatureSet ourArmy;
for (auto slot : bc->creatures)
{
ourArmy.addToSlot(ourArmy.getSlotFor(slot.type->idNumber), slot.type->idNumber, slot.count);
ourArmy.addToSlot(ourArmy.getSlotFor(slot.type->idNumber), slot.type->getId(), slot.count);
}
for (auto & elem : ourArmy.Slots())