diff --git a/config/gameConfig.json b/config/gameConfig.json index c6994e855..b57bb849e 100644 --- a/config/gameConfig.json +++ b/config/gameConfig.json @@ -273,17 +273,8 @@ } }, "chronicles" : { - "supported" : true, - "iconIndex" : 2, - - "portraits" : { - "portraitTarnumBarbarian" : 163, - "portraitTarnumKnight" : 164, - "portraitTarnumWizard" : 165, - "portraitTarnumRanger" : 166, - "portraitTarnumOverlord" : 167, - "portraitTarnumBeastmaster" : 168 - } + "supported" : false, + "iconIndex" : 2 }, "jsonVCMI" : { "supported" : true, diff --git a/config/heroes/portraits.json b/config/heroes/portraits.json index aeecfb192..dbe961f7a 100644 --- a/config/heroes/portraits.json +++ b/config/heroes/portraits.json @@ -202,179 +202,5 @@ ], "skills" : [], "specialty" : {} - }, - "portraitTarnumBarbarian" : - { - "class" : "barbarian", - "special" : true, - "images": { - "large" : "HPL137", - "small" : "HPS137", - "specialtySmall" : "default", - "specialtyLarge" : "default" - }, - "texts" : { - "name" : "", - "biography" : "", - "specialty" : { - "description" : "", - "tooltip" : "", - "name" : "" - } - }, - "army" : [ - { - "creature" : "goblin", - "min" : 1, - "max" : 1 - } - ], - "skills" : [], - "specialty" : {} - }, - "portraitTarnumKnight" : - { - "class" : "knight", - "special" : true, - "images": { - "large" : "HPL138", - "small" : "HPS138", - "specialtySmall" : "default", - "specialtyLarge" : "default" - }, - "texts" : { - "name" : "", - "biography" : "", - "specialty" : { - "description" : "", - "tooltip" : "", - "name" : "" - } - }, - "army" : [ - { - "creature" : "pikeman", - "min" : 1, - "max" : 1 - } - ], - "skills" : [], - "specialty" : {} - }, - "portraitTarnumWizard" : - { - "class" : "wizard", - "special" : true, - "images": { - "large" : "HPL139", - "small" : "HPS139", - "specialtySmall" : "default", - "specialtyLarge" : "default" - }, - "texts" : { - "name" : "", - "biography" : "", - "specialty" : { - "description" : "", - "tooltip" : "", - "name" : "" - } - }, - "army" : [ - { - "creature" : "enchanter", - "min" : 1, - "max" : 1 - } - ], - "skills" : [], - "specialty" : {} - }, - "portraitTarnumRanger" : - { - "class" : "ranger", - "special" : true, - "images": { - "large" : "HPL140", - "small" : "HPS140", - "specialtySmall" : "default", - "specialtyLarge" : "default" - }, - "texts" : { - "name" : "", - "biography" : "", - "specialty" : { - "description" : "", - "tooltip" : "", - "name" : "" - } - }, - "army" : [ - { - "creature" : "sharpshooter", - "min" : 1, - "max" : 1 - } - ], - "skills" : [], - "specialty" : {} - }, - "portraitTarnumOverlord" : - { - "class" : "overlord", - "special" : true, - "images": { - "large" : "HPL141", - "small" : "HPS141", - "specialtySmall" : "default", - "specialtyLarge" : "default" - }, - "texts" : { - "name" : "", - "biography" : "", - "specialty" : { - "description" : "", - "tooltip" : "", - "name" : "" - } - }, - "army" : [ - { - "creature" : "troglodyte", - "min" : 1, - "max" : 1 - } - ], - "skills" : [], - "specialty" : {} - }, - "portraitTarnumBeastmaster" : - { - "class" : "beastmaster", - "special" : true, - "images": { - "large" : "HPL142", - "small" : "HPS142", - "specialtySmall" : "default", - "specialtyLarge" : "default" - }, - "texts" : { - "name" : "", - "biography" : "", - "specialty" : { - "description" : "", - "tooltip" : "", - "name" : "" - } - }, - "army" : [ - { - "creature" : "gnoll", - "min" : 1, - "max" : 1 - } - ], - "skills" : [], - "specialty" : {} } -} \ No newline at end of file +} diff --git a/config/heroes/portraitsChronicles.json b/config/heroes/portraitsChronicles.json new file mode 100644 index 000000000..ec3a69c21 --- /dev/null +++ b/config/heroes/portraitsChronicles.json @@ -0,0 +1,176 @@ +{ + "portraitTarnumBarbarian" : // 163 + { + "class" : "barbarian", + "special" : true, + "images": { + "large" : "HPL137", + "small" : "HPS137", + "specialtySmall" : "default", + "specialtyLarge" : "default" + }, + "texts" : { + "name" : "", + "biography" : "", + "specialty" : { + "description" : "", + "tooltip" : "", + "name" : "" + } + }, + "army" : [ + { + "creature" : "goblin", + "min" : 1, + "max" : 1 + } + ], + "skills" : [], + "specialty" : {} + }, + "portraitTarnumKnight" : // 164 + { + "class" : "knight", + "special" : true, + "images": { + "large" : "HPL138", + "small" : "HPS138", + "specialtySmall" : "default", + "specialtyLarge" : "default" + }, + "texts" : { + "name" : "", + "biography" : "", + "specialty" : { + "description" : "", + "tooltip" : "", + "name" : "" + } + }, + "army" : [ + { + "creature" : "pikeman", + "min" : 1, + "max" : 1 + } + ], + "skills" : [], + "specialty" : {} + }, + "portraitTarnumWizard" : // 165 + { + "class" : "wizard", + "special" : true, + "images": { + "large" : "HPL139", + "small" : "HPS139", + "specialtySmall" : "default", + "specialtyLarge" : "default" + }, + "texts" : { + "name" : "", + "biography" : "", + "specialty" : { + "description" : "", + "tooltip" : "", + "name" : "" + } + }, + "army" : [ + { + "creature" : "enchanter", + "min" : 1, + "max" : 1 + } + ], + "skills" : [], + "specialty" : {} + }, + "portraitTarnumRanger" : // 166 + { + "class" : "ranger", + "special" : true, + "images": { + "large" : "HPL140", + "small" : "HPS140", + "specialtySmall" : "default", + "specialtyLarge" : "default" + }, + "texts" : { + "name" : "", + "biography" : "", + "specialty" : { + "description" : "", + "tooltip" : "", + "name" : "" + } + }, + "army" : [ + { + "creature" : "sharpshooter", + "min" : 1, + "max" : 1 + } + ], + "skills" : [], + "specialty" : {} + }, + "portraitTarnumOverlord" : // 167 + { + "class" : "overlord", + "special" : true, + "images": { + "large" : "HPL141", + "small" : "HPS141", + "specialtySmall" : "default", + "specialtyLarge" : "default" + }, + "texts" : { + "name" : "", + "biography" : "", + "specialty" : { + "description" : "", + "tooltip" : "", + "name" : "" + } + }, + "army" : [ + { + "creature" : "troglodyte", + "min" : 1, + "max" : 1 + } + ], + "skills" : [], + "specialty" : {} + }, + "portraitTarnumBeastmaster" : // 168 + { + "class" : "beastmaster", + "special" : true, + "images": { + "large" : "HPL142", + "small" : "HPS142", + "specialtySmall" : "default", + "specialtyLarge" : "default" + }, + "texts" : { + "name" : "", + "biography" : "", + "specialty" : { + "description" : "", + "tooltip" : "", + "name" : "" + } + }, + "army" : [ + { + "creature" : "gnoll", + "min" : 1, + "max" : 1 + } + ], + "skills" : [], + "specialty" : {} + } +} diff --git a/launcher/modManager/chroniclesextractor.cpp b/launcher/modManager/chroniclesextractor.cpp index 6a4ff4f32..08a3afe8a 100644 --- a/launcher/modManager/chroniclesextractor.cpp +++ b/launcher/modManager/chroniclesextractor.cpp @@ -106,6 +106,18 @@ void ChroniclesExtractor::createBaseMod() const { "author", "3DO" }, { "version", "1.0" }, { "contact", "vcmi.eu" }, + { "heroes", QJsonArray({"config/heroes/portraitsChronicles.json"}) }, + { "settings", QJsonObject({{"mapFormat", QJsonObject({{"chronicles", QJsonObject({{ + {"supported", true}, + {"portraits", QJsonObject({ + {"portraitTarnumBarbarian", 163}, + {"portraitTarnumKnight", 164}, + {"portraitTarnumWizard", 165}, + {"portraitTarnumRanger", 166}, + {"portraitTarnumOverlord", 167}, + {"portraitTarnumBeastmaster", 168}, + })}, + }})}})}})}, }; QFile jsonFile(dir.filePath("mod.json"));