mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Enabled new secondary skills to be created (#438)
* Universities, Scholars and Witch Huts may offer new skills * Moved encode/decodeSkill to CSkillHandler * Refactored CSkill interface and CSkill::LevelInfo image storage * Legacy game constants renamed to ORIGINAL_XXX_QUANTITY
This commit is contained in:
committed by
ArseniyShestakov
parent
b09a54fa9c
commit
6ddcb079a4
@@ -24,6 +24,7 @@
|
||||
#include "../GameConstants.h"
|
||||
#include "../StringConstants.h"
|
||||
#include "../spells/CSpellHandler.h"
|
||||
#include "../CSkillHandler.h"
|
||||
#include "../mapping/CMap.h"
|
||||
|
||||
|
||||
@@ -920,7 +921,7 @@ void CGSeerHut::serializeJsonOptions(JsonSerializeFormat & handler)
|
||||
identifier = PrimarySkill::names[rID];
|
||||
break;
|
||||
case SECONDARY_SKILL:
|
||||
identifier = NSecondarySkill::names[rID];
|
||||
identifier = CSkillHandler::encodeSkill(rID);
|
||||
break;
|
||||
case ARTIFACT:
|
||||
identifier = ArtifactID(rID).toArtifact()->identifier;
|
||||
|
||||
Reference in New Issue
Block a user