Ver código fonte

Fix movement bonus subtype

nordsoft 2 anos atrás
pai
commit
b29fc1a5f4
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      lib/HeroBonus.cpp
  2. 1 1
      lib/mapObjects/MiscObjects.cpp

+ 1 - 1
lib/HeroBonus.cpp

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

+ 1 - 1
lib/mapObjects/MiscObjects.cpp

@@ -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