moddables.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. {
  2. /// These are objects that have subtypes that change various aspects of their mechanics
  3. /// Should be made configurable (either directly or via other parts of modding system ASAP)
  4. /// Editing these objects either directly or via mod may have negative effect on game since they are handled by engine
  5. // subtype: artifact ID
  6. "artifact" : {
  7. "index" :5,
  8. "handler": "artifact",
  9. "base" : {
  10. "base" : {
  11. "visitableFrom" : [ "+++", "+-+", "+++" ],
  12. "mask" : [ "VV", "VA"]
  13. },
  14. "sounds" : {
  15. "visit" : ["TREASURE"],
  16. "removal" : [ "PICKUP01", "PICKUP02", "PICKUP03", "PICKUP04", "PICKUP05", "PICKUP06", "PICKUP07" ]
  17. }
  18. }
  19. },
  20. // subtype: hero CLASS (not hero).
  21. "hero" : {
  22. "index" :34,
  23. "handler": "hero",
  24. "defaultAiValue" : 7500,
  25. "base" : {
  26. "base" : {
  27. "visitableFrom" : [ "+++", "+-+", "+++" ],
  28. "mask" : [ "VVV", "VAV"]
  29. },
  30. "sounds" : {
  31. "removal" : ["KILLFADE"]
  32. }
  33. }
  34. },
  35. // subtype: creatures
  36. "monster" : {
  37. "index" :54,
  38. "handler": "monster",
  39. "base" : {
  40. "base" : {
  41. "visitableFrom" : [ "+++", "+-+", "+++" ],
  42. "mask" : [ "VV", "VA"]
  43. },
  44. "sounds" : {
  45. "removal" : ["KILLFADE"]
  46. }
  47. }
  48. },
  49. // subtype: resource ID
  50. "resource" : {
  51. "index" :79,
  52. "handler": "resource",
  53. "base" : {
  54. "base" : {
  55. "visitableFrom" : [ "+++", "+-+", "+++" ],
  56. "mask" : [ "VA" ]
  57. }
  58. },
  59. "types" : {
  60. "wood" : { "index" : 0, "aiValue" : 1400, "rmg" : { "value" : 1400, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTwood0.def" } } },
  61. "mercury" : { "index" : 1, "aiValue" : 2000, "rmg" : { "value" : 2000, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTmerc0.def" } } },
  62. "ore" : { "index" : 2, "aiValue" : 1400, "rmg" : { "value" : 1400, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTore0.def" } } },
  63. "sulfur" : { "index" : 3, "aiValue" : 2000, "rmg" : { "value" : 2000, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTsulf0.def" } } },
  64. "crystal" : { "index" : 4, "aiValue" : 2000, "rmg" : { "value" : 2000, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTcrys0.def" } } },
  65. "gems" : { "index" : 5, "aiValue" : 2000, "rmg" : { "value" : 2000, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTgems0.def" } } },
  66. "gold" : { "index" : 6, "aiValue" : 750, "rmg" : { "value" : 750, "rarity" : 300 }, "templates" : { "res" : { "animation" : "AVTgold0.def" } } },
  67. "mithril" : { "index" : 7, "aiValue" : 3500 } // TODO: move to WoG?
  68. }
  69. },
  70. // subtype: faction
  71. "town" : {
  72. "index" :98,
  73. "handler": "town",
  74. "defaultAiValue" : 20000,
  75. "base" : {
  76. "filters" : {
  77. // village image - fort not present
  78. "village" : [ "noneOf", [ "fort" ] ],
  79. // fort image - fort is here but not capitol
  80. "fort" : [ "allOf", [ "fort" ], [ "noneOf", ["capitol" ] ] ],
  81. // capitol image only when capitol is built
  82. "capitol" : [ "capitol" ]
  83. },
  84. // "faction" : "stringID", // should be set by engine
  85. "base" : {
  86. "visitableFrom" : [ "---", "+++", "+++" ],
  87. "mask" : [
  88. "VVVVVV", // a LOT of just visible rows due to towns like Tower
  89. "VVVVVV",
  90. "VVVVVV",
  91. "VVBBBV",
  92. "VBBBBB",
  93. "VBBABB"
  94. ]
  95. }
  96. }
  97. },
  98. // subtype: one of 3 possible boats
  99. "boat" : {
  100. "index" :8,
  101. "handler": "boat",
  102. "defaultAiValue" : 0,
  103. "base" : {
  104. "base" : {
  105. "visitableFrom" : [ "+++", "+-+", "+++" ],
  106. "mask" : [ "VVV", "VAV" ]
  107. }
  108. },
  109. "types" : {
  110. "evil" : { "index" : 0, "rmg" : { "mapLimit" : 64 } },
  111. "good" : { "index" : 1, "rmg" : { "mapLimit" : 64 } },
  112. "neutral" : { "index" : 2, "rmg" : { "mapLimit" : 64 } },
  113. }
  114. },
  115. // subtype: color of guard
  116. "borderGuard" : {
  117. "index" :9,
  118. "handler": "borderGuard",
  119. "defaultAiValue" : 0,
  120. "base" : {
  121. "sounds" : {
  122. "visit" : ["CAVEHEAD"],
  123. "removal" : [ "PICKUP01", "PICKUP02", "PICKUP03", "PICKUP04", "PICKUP05", "PICKUP06", "PICKUP07" ]
  124. }
  125. },
  126. "types" : {
  127. "lblue" : { "index" : 0 },
  128. "green" : { "index" : 1 },
  129. "red" : { "index" : 2 },
  130. "dblue" : { "index" : 3 },
  131. "brown" : { "index" : 4 },
  132. "purple" : { "index" : 5 },
  133. "white" : { "index" : 6 },
  134. "black" : { "index" : 7 }
  135. }
  136. },
  137. "borderGate" : {
  138. "index" :212,
  139. "handler": "borderGate",
  140. "defaultAiValue" : 0,
  141. "base" : {
  142. "sounds" : {
  143. "visit" : ["CAVEHEAD"]
  144. }
  145. },
  146. "types" : {
  147. "lblue" : { "index" : 0 },
  148. "green" : { "index" : 1 },
  149. "red" : { "index" : 2 },
  150. "dblue" : { "index" : 3 },
  151. "brown" : { "index" : 4 },
  152. "purple" : { "index" : 5 },
  153. "white" : { "index" : 6 },
  154. "black" : { "index" : 7 }
  155. }
  156. },
  157. "keymasterTent" : {
  158. "index" :10,
  159. "handler": "keymaster",
  160. "defaultAiValue" : 10000,
  161. "base" : {
  162. "sounds" : {
  163. "visit" : ["CAVEHEAD"]
  164. }
  165. },
  166. "types" : {
  167. "lblue" : { "index" : 0 },
  168. "green" : { "index" : 1 },
  169. "red" : { "index" : 2 },
  170. "dblue" : { "index" : 3 },
  171. "brown" : { "index" : 4 },
  172. "purple" : { "index" : 5 },
  173. "white" : { "index" : 6 },
  174. "black" : { "index" : 7 }
  175. }
  176. },
  177. //Seer Hut object is set off bottom-right corner, need to fix that
  178. "seerHut" : {
  179. "index" :83,
  180. "handler": "seerHut",
  181. "defaultAiValue" : 10000,
  182. "base" : {
  183. "base" : {
  184. "visitableFrom" : [ "---", "+++", "+++" ],
  185. "mask" : [ "VVV", "VVV", "VAV" ]
  186. },
  187. "sounds" : {
  188. "visit" : ["QUEST"]
  189. }
  190. },
  191. "types" : {
  192. "0" : { "index" : 0 },
  193. "1" : { "index" : 1 },
  194. "2" : { "index" : 2 }
  195. }
  196. },
  197. // subtype: different revealed areas
  198. "cartographer" : {
  199. "index" :13,
  200. "handler": "cartographer",
  201. "base" : {
  202. "sounds" : {
  203. "visit" : ["LIGHTHOUSE"]
  204. }
  205. },
  206. "types" : {
  207. "water" : { "index" : 0, "aiValue" : 5000, "rmg" : { "zoneLimit" : 1, "value" : 5000, "rarity" : 20 } },
  208. "land" : { "index" : 1, "aiValue": 10000, "rmg" : { "zoneLimit" : 1, "value" : 10000, "rarity" : 20 } },
  209. "subterra" : { "index" : 2, "aiValue" : 7500, "rmg" : { "zoneLimit" : 1, "value" : 7500, "rarity" : 20 } }
  210. }
  211. },
  212. // subtype: resource ID
  213. "mine" : {
  214. "index" :53,
  215. "handler": "mine",
  216. "base" : {
  217. "sounds" : {
  218. "visit" : ["FLAGMINE"]
  219. }
  220. },
  221. "types" : {
  222. "sawmill" : {
  223. "index" : 0,
  224. "aiValue" : 1500,
  225. "rmg" : {
  226. "value" : 1500
  227. },
  228. "sounds" : {
  229. "ambient" : ["LOOPLUMB"]
  230. },
  231. "battleground": "subterranean"
  232. },
  233. "alchemistLab" : {
  234. "index" : 1,
  235. "aiValue" : 3500,
  236. "rmg" : {
  237. "value" : 3500
  238. },
  239. "sounds" : {
  240. "ambient" : ["LOOPSTAR"]
  241. },
  242. "battleground": "subterranean"
  243. },
  244. "orePit" : {
  245. "index" : 2,
  246. "aiValue" : 1500,
  247. "rmg" : {
  248. "value" : 1500
  249. },
  250. "sounds" : {
  251. "ambient" : ["LOOPSULF"]
  252. },
  253. "battleground": "subterranean"
  254. },
  255. "sulfurDune" : {
  256. "index" : 3,
  257. "aiValue" : 3500,
  258. "rmg" : {
  259. "value" : 3500
  260. },
  261. "sounds" : {
  262. "ambient" : ["LOOPSULF"]
  263. },
  264. "battleground": "subterranean"
  265. },
  266. "crystalCavern" : {
  267. "index" : 4,
  268. "aiValue" : 3500,
  269. "rmg" : {
  270. "value" : 3500
  271. },
  272. "sounds" : {
  273. "ambient" : ["LOOPCRYS"]
  274. },
  275. "battleground": "subterranean"
  276. },
  277. "gemPond" : {
  278. "index" : 5,
  279. "aiValue" : 3500,
  280. "rmg" : {
  281. "value" : 3500
  282. },
  283. "sounds" : {
  284. "ambient" : ["LOOPGEMP"]
  285. },
  286. "battleground": "subterranean"
  287. },
  288. "goldMine" : {
  289. "index" : 6,
  290. "aiValue" : 7000,
  291. "rmg" : {
  292. "value" : 7000
  293. },
  294. "sounds" : {
  295. "ambient" : ["LOOPMINE"]
  296. },
  297. "battleground": "subterranean"
  298. },
  299. "abandoned" : {
  300. "index" : 7,
  301. "aiValue" : 3500,
  302. "sounds" : {
  303. "ambient" : ["LOOPCAVE"],
  304. "visit" : ["MYSTERY"]
  305. },
  306. "battleground": "subterranean"
  307. }
  308. }
  309. },
  310. "abandonedMine" : {
  311. "index" :220,
  312. "handler": "mine",
  313. "defaultAiValue" : 3500,
  314. "base" : {
  315. "sounds" : {
  316. "ambient" : ["LOOPCAVE"]
  317. }
  318. },
  319. "types" : {
  320. "mine" : { "index" : 7, "battleground": "subterranean" }
  321. }
  322. },
  323. "garrisonHorizontal": {
  324. "index" :33,
  325. "handler": "garrison",
  326. "defaultAiValue" : 0,
  327. "base" : {
  328. "sounds" : {
  329. "visit" : ["MILITARY"]
  330. }
  331. },
  332. "types": {
  333. "normal": {
  334. "index": 0,
  335. "sounds" : {
  336. "ambient" : ["LOOPSWAR"]
  337. }
  338. },
  339. "antiMagic": {
  340. "index": 1,
  341. "sounds" : {
  342. "ambient" : ["LOOPMAGI"]
  343. }
  344. }
  345. }
  346. },
  347. "garrisonVertical" : {
  348. "index" :219,
  349. "handler": "garrison",
  350. "defaultAiValue" : 0,
  351. "base" : {
  352. "sounds" : {
  353. "visit" : ["MILITARY"]
  354. }
  355. },
  356. "types": {
  357. "normal": {
  358. "index": 0,
  359. "sounds" : {
  360. "ambient" : ["LOOPSWAR"]
  361. }
  362. },
  363. "antiMagic": {
  364. "index": 1,
  365. "sounds" : {
  366. "ambient" : ["LOOPMAGI"]
  367. }
  368. }
  369. }
  370. },
  371. // Subtype: paired monoliths
  372. "monolithOneWayEntrance" : {
  373. "index" :43,
  374. "handler": "monolith",
  375. "base" : {
  376. "sounds" : {
  377. "ambient" : ["LOOPMON1"],
  378. "visit" : ["TELPTOUT"]
  379. }
  380. },
  381. "types" : {
  382. "monolith1" : { "index" : 0 },
  383. "monolith2" : { "index" : 1 },
  384. "monolith3" : { "index" : 2 },
  385. "monolith4" : { "index" : 3 },
  386. "monolith5" : { "index" : 4 },
  387. "monolith6" : { "index" : 5 },
  388. "monolith7" : { "index" : 6 },
  389. "monolith8" : { "index" : 7 }
  390. }
  391. },
  392. "monolithOneWayExit" : {
  393. "index" :44,
  394. "handler": "monolith",
  395. "base" : {
  396. "sounds" : { "ambient" : ["LOOPMON1"] }
  397. },
  398. "types" : {
  399. "monolith1" : { "index" : 0 },
  400. "monolith2" : { "index" : 1 },
  401. "monolith3" : { "index" : 2 },
  402. "monolith4" : { "index" : 3 },
  403. "monolith5" : { "index" : 4 },
  404. "monolith6" : { "index" : 5 },
  405. "monolith7" : { "index" : 6 },
  406. "monolith8" : { "index" : 7 }
  407. }
  408. },
  409. "monolithTwoWay" : {
  410. "index" :45,
  411. "handler": "monolith",
  412. "base" : {
  413. "sounds" : {
  414. "ambient" : ["LOOPMON2"],
  415. "visit" : ["TELPTOUT"]
  416. }
  417. },
  418. "types" : {
  419. "monolith1" : { "index" : 0 },
  420. "monolith2" : { "index" : 1 },
  421. "monolith3" : { "index" : 2 },
  422. "monolith4" : { "index" : 3 },
  423. "monolith5" : { "index" : 4 },
  424. "monolith6" : { "index" : 5 },
  425. "monolith7" : { "index" : 6 },
  426. "monolith8" : { "index" : 7 }
  427. }
  428. },
  429. // subtype: level
  430. "randomDwellingLvl" : {
  431. "index" :217, "handler": "randomDwelling",
  432. "types" : {
  433. "objectLvl1" : { "index" : 0},
  434. "objectLvl2" : { "index" : 1},
  435. "objectLvl3" : { "index" : 2},
  436. "objectLvl4" : { "index" : 3},
  437. "objectLvl5" : { "index" : 4},
  438. "objectLvl6" : { "index" : 5},
  439. "objectLvl7" : { "index" : 6}
  440. }
  441. },
  442. // subtype: faction ID
  443. "randomDwellingFaction" : {
  444. "index" :218,
  445. "handler": "randomDwelling",
  446. "types" : {
  447. "objectCastle" : { "index" : 0},
  448. "objectRampart" : { "index" : 1},
  449. "objectTower" : { "index" : 2},
  450. "objectInferno" : { "index" : 3},
  451. "objectNecropolis" : { "index" : 4},
  452. "objectDungeon" : { "index" : 5},
  453. "objectStronghold" : { "index" : 6},
  454. "objectFortress" : { "index" : 7},
  455. "objectConflux" : { "index" : 8},
  456. }
  457. },
  458. // don't have subtypes (at least now), but closely connected to this objects
  459. "spellScroll" : {
  460. "index" :93,
  461. "handler": "artifact",
  462. "types" : {
  463. "object" : {
  464. "index" : 0,
  465. "aiValue" : 500,
  466. "sounds" : {
  467. "removal" : [ "PICKUP01", "PICKUP02", "PICKUP03", "PICKUP04", "PICKUP05", "PICKUP06", "PICKUP07" ]
  468. },
  469. "templates" : {
  470. "normal" : {
  471. "visitableFrom" : [ "+++", "+-+", "+++" ],
  472. "mask" : [ "VA" ],
  473. "animation" : "AVA0001.def"
  474. }
  475. }
  476. }
  477. }
  478. },
  479. "heroPlaceholder" : {
  480. "index" : 214,
  481. "handler": "heroPlaceholder",
  482. "types" : { "object" : { "index" : 0 } }
  483. }
  484. }