moddables.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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" : [ "VV", "AV"]
  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. },
  232. "alchemistLab" : {
  233. "index" : 1,
  234. "aiValue" : 3500,
  235. "rmg" : {
  236. "value" : 3500
  237. },
  238. "sounds" : {
  239. "ambient" : ["LOOPSTAR"]
  240. }
  241. },
  242. "orePit" : {
  243. "index" : 2,
  244. "aiValue" : 1500,
  245. "rmg" : {
  246. "value" : 1500
  247. },
  248. "sounds" : {
  249. "ambient" : ["LOOPSULF"]
  250. }
  251. },
  252. "sulfurDune" : {
  253. "index" : 3,
  254. "aiValue" : 3500,
  255. "rmg" : {
  256. "value" : 3500
  257. },
  258. "sounds" : {
  259. "ambient" : ["LOOPSULF"]
  260. }
  261. },
  262. "crystalCavern" : {
  263. "index" : 4,
  264. "aiValue" : 3500,
  265. "rmg" : {
  266. "value" : 3500
  267. },
  268. "sounds" : {
  269. "ambient" : ["LOOPCRYS"]
  270. }
  271. },
  272. "gemPond" : {
  273. "index" : 5,
  274. "aiValue" : 3500,
  275. "rmg" : {
  276. "value" : 3500
  277. },
  278. "sounds" : {
  279. "ambient" : ["LOOPGEMP"]
  280. }
  281. },
  282. "goldMine" : {
  283. "index" : 6,
  284. "aiValue" : 7000,
  285. "rmg" : {
  286. "value" : 7000
  287. },
  288. "sounds" : {
  289. "ambient" : ["LOOPMINE"]
  290. }
  291. },
  292. "abandoned" : {
  293. "index" : 7,
  294. "aiValue" : 3500,
  295. "sounds" : {
  296. "ambient" : ["LOOPCAVE"],
  297. "visit" : ["MYSTERY"]
  298. }
  299. }
  300. }
  301. },
  302. "abandonedMine" : {
  303. "index" :220,
  304. "handler": "mine",
  305. "defaultAiValue" : 3500,
  306. "base" : {
  307. "sounds" : {
  308. "ambient" : ["LOOPCAVE"]
  309. }
  310. },
  311. "types" : {
  312. "mine" : { "index" : 7 }
  313. }
  314. },
  315. "garrisonHorizontal": {
  316. "index" :33,
  317. "handler": "garrison",
  318. "defaultAiValue" : 0,
  319. "base" : {
  320. "sounds" : {
  321. "visit" : ["MILITARY"]
  322. }
  323. },
  324. "types": {
  325. "normal": {
  326. "index": 0,
  327. "sounds" : {
  328. "ambient" : ["LOOPSWAR"]
  329. }
  330. },
  331. "antiMagic": {
  332. "index": 1,
  333. "sounds" : {
  334. "ambient" : ["LOOPMAGI"]
  335. }
  336. }
  337. }
  338. },
  339. "garrisonVertical" : {
  340. "index" :219,
  341. "handler": "garrison",
  342. "defaultAiValue" : 0,
  343. "base" : {
  344. "sounds" : {
  345. "visit" : ["MILITARY"]
  346. }
  347. },
  348. "types": {
  349. "normal": {
  350. "index": 0,
  351. "sounds" : {
  352. "ambient" : ["LOOPSWAR"]
  353. }
  354. },
  355. "antiMagic": {
  356. "index": 1,
  357. "sounds" : {
  358. "ambient" : ["LOOPMAGI"]
  359. }
  360. }
  361. }
  362. },
  363. // Subtype: paired monoliths
  364. "monolithOneWayEntrance" : {
  365. "index" :43,
  366. "handler": "monolith",
  367. "base" : {
  368. "sounds" : {
  369. "ambient" : ["LOOPMON1"],
  370. "visit" : ["TELPTOUT"]
  371. }
  372. },
  373. "types" : {
  374. "monolith1" : { "index" : 0 },
  375. "monolith2" : { "index" : 1 },
  376. "monolith3" : { "index" : 2 },
  377. "monolith4" : { "index" : 3 },
  378. "monolith5" : { "index" : 4 },
  379. "monolith6" : { "index" : 5 },
  380. "monolith7" : { "index" : 6 },
  381. "monolith8" : { "index" : 7 }
  382. }
  383. },
  384. "monolithOneWayExit" : {
  385. "index" :44,
  386. "handler": "monolith",
  387. "base" : {
  388. "sounds" : { "ambient" : ["LOOPMON1"] }
  389. },
  390. "types" : {
  391. "monolith1" : { "index" : 0 },
  392. "monolith2" : { "index" : 1 },
  393. "monolith3" : { "index" : 2 },
  394. "monolith4" : { "index" : 3 },
  395. "monolith5" : { "index" : 4 },
  396. "monolith6" : { "index" : 5 },
  397. "monolith7" : { "index" : 6 },
  398. "monolith8" : { "index" : 7 }
  399. }
  400. },
  401. "monolithTwoWay" : {
  402. "index" :45,
  403. "handler": "monolith",
  404. "base" : {
  405. "sounds" : {
  406. "ambient" : ["LOOPMON2"],
  407. "visit" : ["TELPTOUT"]
  408. }
  409. },
  410. "types" : {
  411. "monolith1" : { "index" : 0 },
  412. "monolith2" : { "index" : 1 },
  413. "monolith3" : { "index" : 2 },
  414. "monolith4" : { "index" : 3 },
  415. "monolith5" : { "index" : 4 },
  416. "monolith6" : { "index" : 5 },
  417. "monolith7" : { "index" : 6 },
  418. "monolith8" : { "index" : 7 }
  419. }
  420. },
  421. // subtype: level
  422. "randomDwellingLvl" : {
  423. "index" :217, "handler": "randomDwelling",
  424. "types" : {
  425. "objectLvl1" : { "index" : 0},
  426. "objectLvl2" : { "index" : 1},
  427. "objectLvl3" : { "index" : 2},
  428. "objectLvl4" : { "index" : 3},
  429. "objectLvl5" : { "index" : 4},
  430. "objectLvl6" : { "index" : 5},
  431. "objectLvl7" : { "index" : 6}
  432. }
  433. },
  434. // subtype: faction ID
  435. "randomDwellingFaction" : {
  436. "index" :218,
  437. "handler": "randomDwelling",
  438. "types" : {
  439. "objectCastle" : { "index" : 0},
  440. "objectRampart" : { "index" : 1},
  441. "objectTower" : { "index" : 2},
  442. "objectInferno" : { "index" : 3},
  443. "objectNecropolis" : { "index" : 4},
  444. "objectDungeon" : { "index" : 5},
  445. "objectStronghold" : { "index" : 6},
  446. "objectFortress" : { "index" : 7},
  447. "objectConflux" : { "index" : 8},
  448. }
  449. },
  450. // don't have subtypes (at least now), but closely connected to this objects
  451. "spellScroll" : {
  452. "index" :93,
  453. "handler": "artifact",
  454. "types" : {
  455. "object" : {
  456. "index" : 0,
  457. "aiValue" : 500,
  458. "templates" : {
  459. "normal" : {
  460. "visitableFrom" : [ "+++", "+-+", "+++" ],
  461. "mask" : [ "VA" ],
  462. "animation" : "AVA0001.def"
  463. }
  464. }
  465. }
  466. }
  467. },
  468. "heroPlaceholder" : {
  469. "index" : 214,
  470. "handler": "heroPlaceholder",
  471. "types" : { "object" : { "index" : 0 } }
  472. }
  473. }