瀏覽代碼

accept log text suggestion

Co-authored-by: Alexander Wilms <[email protected]>
kdmcser 1 年之前
父節點
當前提交
c2d76ab95d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/battle/DamageCalculator.cpp

+ 4 - 4
lib/battle/DamageCalculator.cpp

@@ -33,10 +33,10 @@ DamageRange DamageCalculator::getBaseDamageSingle() const
 
     if(minDmg > maxDmg)
     {
-		const auto & creatureName = info.attacker->creatureId().toEntity(VLC)->getNamePluralTranslated();
-		logGlobal->error("Creature %s min damage %lld exceed max damage %lld.", creatureName, minDmg, maxDmg);
-        logGlobal->error("This problem may lead to unexpected result, please report it to modder.");
-        // to avoid RNG crash. and make bless and curse spell correct
+	const auto & creatureName = info.attacker->creatureId().toEntity(VLC)->getNamePluralTranslated();
+	logGlobal->error("Creature %s: min damage %lld exceeds max damage %lld.", creatureName, minDmg, maxDmg);
+        logGlobal->error("This may lead to unexpected results, please report it to the mod's creator.");
+        // to avoid an RNG crash and make bless and curse spells work as expected
         std::swap(minDmg, maxDmg);
     }