mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Some more fixes for limiters and specialties.
This commit is contained in:
		| @@ -1181,7 +1181,6 @@ void CGHeroInstance::Updatespecialty() //TODO: calculate special value of bonuse | ||||
| 								param = creatures[b->additionalInfo]->Defense(); | ||||
| 								break; | ||||
| 							default: | ||||
| 								assert(0); | ||||
| 								param = 0; | ||||
| 						} | ||||
| 						b->val = ceil(param * (1 + primSkillModifier)) - param; //yep, overcomplicated but matches original | ||||
|   | ||||
| @@ -328,7 +328,7 @@ public: | ||||
|  | ||||
| 	struct DLL_LINKAGE HeroSpecial : CBonusSystemNode | ||||
| 	{ | ||||
| 		bool growsWithLevel; | ||||
| 		ui8 growsWithLevel; | ||||
|  | ||||
| 		HeroSpecial(){growsWithLevel = false;}; | ||||
|  | ||||
|   | ||||
| @@ -1065,6 +1065,8 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability) | ||||
| 							} | ||||
| 							else | ||||
| 								l2->includeUpgrades = false; | ||||
|  | ||||
| 							l = l2; | ||||
| 						} | ||||
| 						if (limiter["type"].String() == "HAS_ANOTHER_BONUS_LIMITER") | ||||
| 						{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user