1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00

accept log text suggestion

Co-authored-by: Alexander Wilms <Alexander-Wilms@users.noreply.github.com>
This commit is contained in:
kdmcser 2024-04-18 08:40:25 +08:00 committed by GitHub
parent b61011e8b4
commit c2d76ab95d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}