mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
MetaString refactor to eliminate integer usage for identifiers
- entity names are now stored and serialized as text ID's - added helper methods for convenience to get entities names to metastring
This commit is contained in:
@ -485,7 +485,7 @@ void CUnitState::getCastDescription(const spells::Spell * spell, const std::vect
|
||||
text.appendLocalString(EMetaText::GENERAL_TXT, 565);//The %s casts %s
|
||||
//todo: use text 566 for single creature
|
||||
getCasterName(text);
|
||||
text.replaceLocalString(EMetaText::SPELL_NAME, spell->getIndex());
|
||||
text.replaceName(spell->getId());
|
||||
}
|
||||
|
||||
int32_t CUnitState::manaLimit() const
|
||||
|
Reference in New Issue
Block a user