mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +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:
@@ -135,7 +135,7 @@ void CGPandoraBox::grantRewardWithMessage(const CGHeroInstance * h, int index, b
|
||||
for(auto c : vi.reward.creatures)
|
||||
{
|
||||
loot.appendRawString("%s");
|
||||
loot.replaceCreatureName(c);
|
||||
loot.replaceName(c);
|
||||
}
|
||||
|
||||
if(vi.reward.creatures.size() == 1 && vi.reward.creatures[0].count == 1)
|
||||
|
||||
Reference in New Issue
Block a user