浏览代码

vcmi: map objects test passed

It is weird, because some objects should have mod scope now, and some not
We need to fix this, and rework test if necessary - its data is too huge now.
Konstantin 2 年之前
父节点
当前提交
d31a3362af

+ 223 - 223
test/testdata/ObjectPropertyTest/header.json

@@ -32,236 +32,236 @@
 	},
 	"allowedArtifacts" : {
 		"anyOf" : [
-			"admiralsHat",
-			"angelicAlliance",
-			"armageddonsBlade",
-			"armorOfTheDamned",
-			"bowOfTheSharpshooter",
-			"cloakOfTheUndeadKing",
-			"cornucopia",
-			"elixirOfLife",
-			"powerOfTheDragonFather",
-			"ringOfTheMagi",
-			"statueOfLegion",
-			"titansThunder",
-			"vialOfDragonBlood",
-			"wizardsWell"
+			"core:admiralsHat",
+			"core:angelicAlliance",
+			"core:armageddonsBlade",
+			"core:armorOfTheDamned",
+			"core:bowOfTheSharpshooter",
+			"core:cloakOfTheUndeadKing",
+			"core:cornucopia",
+			"core:elixirOfLife",
+			"core:powerOfTheDragonFather",
+			"core:ringOfTheMagi",
+			"core:statueOfLegion",
+			"core:titansThunder",
+			"core:vialOfDragonBlood",
+			"core:wizardsWell"
 		]
 	},
 	"allowedHeroes" : {
 		"anyOf" : [
-			"adela",
-			"adelaide",
-			"aenain",
-			"aeris",
-			"aine",
-			"aislinn",
-			"ajit",
-			"alagar",
-			"alamar",
-			"alkin",
-			"andra",
-			"arlach",
-			"ash",
-			"astral",
-			"axsis",
-			"ayden",
-			"brissa",
-			"broghild",
-			"bron",
-			"caitlin",
-			"calh",
-			"calid",
-			"charna",
-			"christian",
-			"ciele",
-			"clancy",
-			"clavius",
-			"coronius",
-			"cragHack",
-			"cuthbert",
-			"cyra",
-			"dace",
-			"damacon",
-			"daremyth",
-			"darkstorn",
-			"deemer",
-			"dessa",
-			"drakon",
-			"elleshar",
-			"erdamon",
-			"fafner",
-			"fiona",
-			"fiur",
-			"galthran",
-			"gelare",
-			"gem",
-			"geon",
-			"gerwulf",
-			"gird",
-			"gretchin",
-			"grindan",
-			"gundula",
-			"gunnar",
-			"gurnisson",
-			"halon",
-			"ignatius",
-			"ignissa",
-			"inteus",
-			"iona",
-			"isra",
-			"ivor",
-			"jabarkas",
-			"jaegar",
-			"jeddite",
-			"jenova",
-			"josephine",
-			"kalt",
-			"korbac",
-			"krellion",
-			"kyrre",
-			"labetha",
-			"lacus",
-			"lorelei",
-			"loynis",
-			"malcom",
-			"malekith",
-			"marius",
-			"melodia",
-			"mephala",
-			"merist",
-			"mirlanda",
-			"moandor",
-			"monere",
-			"nagash",
-			"neela",
-			"nimbus",
-			"nymus",
-			"octavia",
-			"olema",
-			"oris",
-			"pasis",
-			"piquedram",
-			"pyre",
-			"rashka",
-			"rion",
-			"rissa",
-			"rosic",
-			"ryland",
-			"sandro",
-			"sanya",
-			"saurug",
-			"sephinroth",
-			"septienna",
-			"serena",
-			"shakti",
-			"shiva",
-			"sirMullich",
-			"solmyr",
-			"straker",
-			"styg",
-			"sylvia",
-			"synca",
-			"tamika",
-			"tazar",
-			"terek",
-			"thane",
-			"thant",
-			"theodorus",
-			"thorgrim",
-			"thunar",
-			"tiva",
-			"torosar ",
-			"tyraxor",
-			"tyris",
-			"ufretin",
-			"uland",
-			"verdish",
-			"vey",
-			"vidomina",
-			"vokial",
-			"voy",
-			"wystan",
-			"xarfax",
-			"xsi",
-			"xyron",
-			"yog",
-			"zubin",
-			"zydar"
+			"core:adela",
+			"core:adelaide",
+			"core:aenain",
+			"core:aeris",
+			"core:aine",
+			"core:aislinn",
+			"core:ajit",
+			"core:alagar",
+			"core:alamar",
+			"core:alkin",
+			"core:andra",
+			"core:arlach",
+			"core:ash",
+			"core:astral",
+			"core:axsis",
+			"core:ayden",
+			"core:brissa",
+			"core:broghild",
+			"core:bron",
+			"core:caitlin",
+			"core:calh",
+			"core:calid",
+			"core:charna",
+			"core:christian",
+			"core:ciele",
+			"core:clancy",
+			"core:clavius",
+			"core:coronius",
+			"core:cragHack",
+			"core:cuthbert",
+			"core:cyra",
+			"core:dace",
+			"core:damacon",
+			"core:daremyth",
+			"core:darkstorn",
+			"core:deemer",
+			"core:dessa",
+			"core:drakon",
+			"core:elleshar",
+			"core:erdamon",
+			"core:fafner",
+			"core:fiona",
+			"core:fiur",
+			"core:galthran",
+			"core:gelare",
+			"core:gem",
+			"core:geon",
+			"core:gerwulf",
+			"core:gird",
+			"core:gretchin",
+			"core:grindan",
+			"core:gundula",
+			"core:gunnar",
+			"core:gurnisson",
+			"core:halon",
+			"core:ignatius",
+			"core:ignissa",
+			"core:inteus",
+			"core:iona",
+			"core:isra",
+			"core:ivor",
+			"core:jabarkas",
+			"core:jaegar",
+			"core:jeddite",
+			"core:jenova",
+			"core:josephine",
+			"core:kalt",
+			"core:korbac",
+			"core:krellion",
+			"core:kyrre",
+			"core:labetha",
+			"core:lacus",
+			"core:lorelei",
+			"core:loynis",
+			"core:malcom",
+			"core:malekith",
+			"core:marius",
+			"core:melodia",
+			"core:mephala",
+			"core:merist",
+			"core:mirlanda",
+			"core:moandor",
+			"core:monere",
+			"core:nagash",
+			"core:neela",
+			"core:nimbus",
+			"core:nymus",
+			"core:octavia",
+			"core:olema",
+			"core:oris",
+			"core:pasis",
+			"core:piquedram",
+			"core:pyre",
+			"core:rashka",
+			"core:rion",
+			"core:rissa",
+			"core:rosic",
+			"core:ryland",
+			"core:sandro",
+			"core:sanya",
+			"core:saurug",
+			"core:sephinroth",
+			"core:septienna",
+			"core:serena",
+			"core:shakti",
+			"core:shiva",
+			"core:sirMullich",
+			"core:solmyr",
+			"core:straker",
+			"core:styg",
+			"core:sylvia",
+			"core:synca",
+			"core:tamika",
+			"core:tazar",
+			"core:terek",
+			"core:thane",
+			"core:thant",
+			"core:theodorus",
+			"core:thorgrim",
+			"core:thunar",
+			"core:tiva",
+			"core:torosar ",
+			"core:tyraxor",
+			"core:tyris",
+			"core:ufretin",
+			"core:uland",
+			"core:verdish",
+			"core:vey",
+			"core:vidomina",
+			"core:vokial",
+			"core:voy",
+			"core:wystan",
+			"core:xarfax",
+			"core:xsi",
+			"core:xyron",
+			"core:yog",
+			"core:zubin",
+			"core:zydar"
 		]
 	},
 	"allowedSpells" : {
 		"anyOf" : [
-			"airElemental",
-			"airShield",
-			"animateDead",
-			"antiMagic",
-			"armageddon",
-			"berserk",
-			"bless",
-			"blind",
-			"bloodlust",
-			"chainLightning",
-			"clone",
-			"counterstrike",
-			"cure",
-			"curse",
-			"deathRipple",
-			"destroyUndead",
-			"dimensionDoor",
-			"disguise",
-			"dispel",
-			"disruptingRay",
-			"earthElemental",
-			"earthquake",
-			"fireElemental",
-			"fireShield",
-			"fireWall",
-			"fireball",
-			"fly",
-			"forceField",
-			"forgetfulness",
-			"fortune",
-			"frenzy",
-			"frostRing",
-			"haste",
-			"hypnotize",
-			"iceBolt",
-			"implosion",
-			"inferno",
-			"landMine",
-			"lightningBolt",
-			"magicArrow",
-			"magicMirror",
-			"meteorShower",
-			"mirth",
-			"misfortune",
-			"prayer",
-			"precision",
-			"protectAir",
-			"protectEarth",
-			"protectFire",
-			"protectWater",
-			"quicksand",
-			"removeObstacle",
-			"resurrection",
-			"sacrifice",
-			"scuttleBoat",
-			"shield",
-			"slayer",
-			"slow",
-			"sorrow",
-			"stoneSkin",
-			"summonBoat",
-			"teleport",
-			"titanBolt",
-			"townPortal",
-			"viewAir",
-			"viewEarth",
-			"visions",
-			"waterElemental",
-			"waterWalk",
-			"weakness"
+			"core:airElemental",
+			"core:airShield",
+			"core:animateDead",
+			"core:antiMagic",
+			"core:armageddon",
+			"core:berserk",
+			"core:bless",
+			"core:blind",
+			"core:bloodlust",
+			"core:chainLightning",
+			"core:clone",
+			"core:counterstrike",
+			"core:cure",
+			"core:curse",
+			"core:deathRipple",
+			"core:destroyUndead",
+			"core:dimensionDoor",
+			"core:disguise",
+			"core:dispel",
+			"core:disruptingRay",
+			"core:earthElemental",
+			"core:earthquake",
+			"core:fireElemental",
+			"core:fireShield",
+			"core:fireWall",
+			"core:fireball",
+			"core:fly",
+			"core:forceField",
+			"core:forgetfulness",
+			"core:fortune",
+			"core:frenzy",
+			"core:frostRing",
+			"core:haste",
+			"core:hypnotize",
+			"core:iceBolt",
+			"core:implosion",
+			"core:inferno",
+			"core:landMine",
+			"core:lightningBolt",
+			"core:magicArrow",
+			"core:magicMirror",
+			"core:meteorShower",
+			"core:mirth",
+			"core:misfortune",
+			"core:prayer",
+			"core:precision",
+			"core:protectAir",
+			"core:protectEarth",
+			"core:protectFire",
+			"core:protectWater",
+			"core:quicksand",
+			"core:removeObstacle",
+			"core:resurrection",
+			"core:sacrifice",
+			"core:scuttleBoat",
+			"core:shield",
+			"core:slayer",
+			"core:slow",
+			"core:sorrow",
+			"core:stoneSkin",
+			"core:summonBoat",
+			"core:teleport",
+			"core:titanBolt",
+			"core:townPortal",
+			"core:viewAir",
+			"core:viewEarth",
+			"core:visions",
+			"core:waterElemental",
+			"core:waterWalk",
+			"core:weakness"
 		]
 	},
 	"defeatIconIndex" : 3,
@@ -317,7 +317,7 @@
 			"mainHero" : "hero_101",
 			"heroes" : {
 				"hero_101" : {
-					"type" : "ingham"
+					"type" : "core:ingham"
 				}
 			}
 		},

文件差异内容过多而无法显示
+ 277 - 277
test/testdata/ObjectPropertyTest/objects.ex.json


文件差异内容过多而无法显示
+ 277 - 277
test/testdata/ObjectPropertyTest/objects.json


部分文件因为文件数量过多而无法显示