mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-25 00:37:24 +02:00
Update docs to be in line with existing code.
This commit is contained in:
@ -515,7 +515,7 @@ canLearnSpells
|
|||||||
```jsonc
|
```jsonc
|
||||||
"creatures" : [
|
"creatures" : [
|
||||||
{
|
{
|
||||||
"creature" : "archer",
|
"type" : "archer",
|
||||||
"upgradeChance" : 30,
|
"upgradeChance" : 30,
|
||||||
"amount" : 20,
|
"amount" : 20,
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ void CRewardableObject::grantAllRewardsWthMessage(const CGHeroInstance * context
|
|||||||
|
|
||||||
for (auto index : rewardIndices)
|
for (auto index : rewardIndices)
|
||||||
{
|
{
|
||||||
// TODO: Allow a single message for multiple / all rewards?
|
// TODO: Merge all rewards of same type, with single message?
|
||||||
grantRewardWithMessage(contextHero, index, false);
|
grantRewardWithMessage(contextHero, index, false);
|
||||||
}
|
}
|
||||||
// Mark visited only after all rewards were processed
|
// Mark visited only after all rewards were processed
|
||||||
|
Reference in New Issue
Block a user