1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fix movement bonus subtype

This commit is contained in:
nordsoft 2023-04-29 15:03:19 +04:00 committed by Nordsoft91
parent 193cf6676a
commit b29fc1a5f4
2 changed files with 2 additions and 2 deletions

View File

@ -1755,7 +1755,7 @@ BonusParams::BonusParams(std::string deprecatedTypeStr, std::string deprecatedSu
}
else if(deprecatedSubtype == SecondarySkill::LOGISTICS || deprecatedSubtypeStr == "skill.logistics")
{
subtype = 0;
subtype = 1;
subtypeRelevant = true;
valueType = Bonus::PERCENT_TO_BASE;
valueTypeRelevant = true;

View File

@ -2145,7 +2145,7 @@ void CGLighthouse::giveBonusTo(const PlayerColor & player, bool onInit) const
gb.bonus.duration = Bonus::PERMANENT;
gb.bonus.source = Bonus::OBJECT;
gb.bonus.sid = id.getNum();
gb.bonus.subtype = 1;
gb.bonus.subtype = 0;
// FIXME: This is really dirty hack
// Proper fix would be to make CGLighthouse into bonus system node