浏览代码

Update docs to be in line with existing code.

Tomasz Zieliński 1 年之前
父节点
当前提交
a93dd25867
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/modders/Map_Objects/Rewardable.md
  2. 1 1
      lib/mapObjects/CRewardableObject.cpp

+ 1 - 1
docs/modders/Map_Objects/Rewardable.md

@@ -515,7 +515,7 @@ canLearnSpells
 ```jsonc
 "creatures" : [
     {
-        "creature" : "archer",
+        "type" : "archer",
         "upgradeChance" : 30,
         "amount" : 20,
     }

+ 1 - 1
lib/mapObjects/CRewardableObject.cpp

@@ -60,7 +60,7 @@ void CRewardableObject::grantAllRewardsWthMessage(const CGHeroInstance * context
 		
 	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);
 	}
 	// Mark visited only after all rewards were processed