1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Defined templates for objects with incorrect info in objects.txt:

- random arts
- random resources
- random creatures
- spell scroll
This commit is contained in:
Ivan Savenko 2014-06-27 20:36:50 +03:00
parent 52b17334a0
commit 0f5826802d
2 changed files with 185 additions and 16 deletions

View File

@ -64,26 +64,180 @@
}, },
/// Random objects /// Random objects
"randomResource" : { "index" :76, "handler": "randomResource", "types" : { "object" : { "index" : 0} } },
"randomTown" : { "index" :77, "handler": "randomTown", "types" : { "object" : { "index" : 0} } }, "randomTown" : { "index" :77, "handler": "randomTown", "types" : { "object" : { "index" : 0} } },
"randomHero" : { "index" :70, "handler": "randomHero", "types" : { "object" : { "index" : 0} } }, "randomHero" : { "index" :70, "handler": "randomHero", "types" : { "object" : { "index" : 0} } },
"randomDwelling" : { "index" :216, "handler": "randomDwelling", "types" : { "object" : { "index" : 0} } }, "randomDwelling" : { "index" :216, "handler": "randomDwelling", "types" : { "object" : { "index" : 0} } },
"randomArtifact" : { "index" :65, "handler": "randomArtifact", "types" : { "object" : { "index" : 0} } }, "randomResource" : {
"randomArtifactTreasure" : { "index" :66, "handler": "randomArtifact", "types" : { "object" : { "index" : 0} } }, "index" :76,
"randomArtifactMinor" : { "index" :67, "handler": "randomArtifact", "types" : { "object" : { "index" : 0} } }, "handler": "randomResource",
"randomArtifactMajor" : { "index" :68, "handler": "randomArtifact", "types" : { "object" : { "index" : 0} } }, "types" : {
"randomArtifactRelic" : { "index" :69, "handler": "randomArtifact", "types" : { "object" : { "index" : 0} } }, "object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVTrndm0", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonster" : { "index" :71, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "randomArtifact" : {
"randomMonsterLevel1" : { "index" :72, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "index" :65,
"randomMonsterLevel2" : { "index" :73, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "handler": "randomArtifact",
"randomMonsterLevel3" : { "index" :74, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "types" : {
"randomMonsterLevel4" : { "index" :75, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "object" : {
"randomMonsterLevel5" : { "index" :162, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "index" : 0,
"randomMonsterLevel6" : { "index" :163, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "templates" : {
"randomMonsterLevel7" : { "index" :164, "handler": "randomMonster", "types" : { "object" : { "index" : 0} } }, "normal" : { "animation" : "AVArand", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomArtifactTreasure" : {
"index" :66,
"handler": "randomArtifact",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVArnd1", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomArtifactMinor" : {
"index" :67,
"handler": "randomArtifact",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVArnd2", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomArtifactMajor" : {
"index" :68,
"handler": "randomArtifact",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVArnd3", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomArtifactRelic" : {
"index" :69,
"handler": "randomArtifact",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVArnd4", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonster" : {
"index" :71,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmrnd0", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel1" : {
"index" :72,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon1", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel2" : {
"index" :73,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon2", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel3" : {
"index" :74,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon3", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel4" : {
"index" :75,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon4", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel5" : {
"index" :162,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon5", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel6" : {
"index" :163,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon6", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
"randomMonsterLevel7" : {
"index" :164,
"handler": "randomMonster",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : { "animation" : "AVWmon7", "visitableFrom" : [ "+++", "+-+", "+++" ], "mask" : [ "VV", "VA"] }
}
}
}
},
/// Classes without dedicated object /// Classes without dedicated object
"hillFort" : { "index" :35, "handler": "generic", "types" : { "object" : { "index" : 0} } }, "hillFort" : { "index" :35, "handler": "generic", "types" : { "object" : { "index" : 0} } },

View File

@ -267,6 +267,21 @@
}, },
// don't have subtypes (at least now), but closely connected to this objects // don't have subtypes (at least now), but closely connected to this objects
"spellScroll" : { "index" :93, "handler": "artifact", "types" : { "object" : { "index" : 0 } } }, "spellScroll" : {
"index" :93,
"handler": "artifact",
"types" : {
"object" : {
"index" : 0,
"templates" : {
"normal" : {
"visitableFrom" : [ "+++", "+-+", "+++" ],
"mask" : [ "VA" ],
"animation" : "AVA0001.def"
}
}
}
}
},
"heroPlaceholder" : { "index" :214, "handler": "heroPlaceholder", "types" : { "object" : { "index" : 0 } } } "heroPlaceholder" : { "index" :214, "handler": "heroPlaceholder", "types" : { "object" : { "index" : 0 } } }
} }