mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
Add comment on H3 logic bug
This commit is contained in:
@@ -98,6 +98,9 @@ std::shared_ptr<Bonus> TimesHeroLevelDivideStackLevelUpdater::createUpdatedBonus
|
||||
{
|
||||
if(context.getNodeType() == BonusNodeType::HERO)
|
||||
{
|
||||
// FIXME: current logic is (val * hero level) / stack level
|
||||
// However H3 logic is val * (hero level / stack level)
|
||||
// Probably needs creation of temporary limiter & passing hero level into it, to perform all math in one place
|
||||
auto newBonus = TimesHeroLevelUpdater::createUpdatedBonus(b, context);
|
||||
newBonus->updater = divideStackLevel;
|
||||
return newBonus;
|
||||
|
||||
Reference in New Issue
Block a user