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:
parent
b61011e8b4
commit
c2d76ab95d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user