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:
parent
193cf6676a
commit
b29fc1a5f4
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user