buildingsLibrary.json 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. {
  2. "mageGuild1": { "id" : 0 },
  3. "mageGuild2": { "id" : 1, "upgrades" : "mageGuild1" },
  4. "mageGuild3": { "id" : 2, "upgrades" : "mageGuild2" },
  5. "mageGuild4": { "id" : 3, "upgrades" : "mageGuild3" },
  6. "mageGuild5": { "id" : 4, "upgrades" : "mageGuild4" },
  7. "tavern": {
  8. "id" : 5,
  9. "bonuses": [
  10. {
  11. "type": "MORALE",
  12. "val": 1
  13. },
  14. {
  15. "propagator": "PLAYER",
  16. "type": "THIEVES_GUILD_ACCESS",
  17. "val": 1
  18. }
  19. ]
  20. },
  21. "shipyard": { "id" : 6 },
  22. "fort": {
  23. "id" : 7,
  24. "fortifications" : {
  25. "wallsHealth" : 2
  26. }
  27. },
  28. "citadel": {
  29. "id" : 8,
  30. "upgrades" : "fort",
  31. "fortifications" : {
  32. "citadelHealth" : 2,
  33. "hasMoat" : true
  34. }
  35. },
  36. "castle": {
  37. "id" : 9,
  38. "upgrades" : "citadel",
  39. "fortifications" : {
  40. "wallsHealth" : 3,
  41. "upperTowerHealth" : 2,
  42. "lowerTowerHealth" : 2
  43. }
  44. },
  45. "villageHall": {
  46. "id" : 10,
  47. "mode" : "auto",
  48. "produce": { "gold": 500 }
  49. },
  50. "townHall": {
  51. "id" : 11,
  52. "upgrades" : "villageHall",
  53. "requires" : [ "tavern" ],
  54. "produce": { "gold": 1000 }
  55. },
  56. "cityHall": {
  57. "id" : 12,
  58. "upgrades" : "townHall",
  59. "requires" : [ "allOf", [ "mageGuild1" ], [ "marketplace" ], [ "blacksmith" ] ],
  60. "produce": { "gold": 2000 }
  61. },
  62. "capitol": {
  63. "id" : 13,
  64. "upgrades" : "cityHall",
  65. "requires" : [ "castle" ],
  66. "produce": { "gold": 4000 }
  67. },
  68. "marketplace": {
  69. "id" : 14,
  70. "marketModes" : ["resource-resource", "resource-player"],
  71. "bonuses": [
  72. {
  73. "propagator": "PLAYER",
  74. "type": "MARKETPLACE_ACCESS",
  75. "val": 1
  76. }
  77. ]
  78. },
  79. "resourceSilo": { "id" : 15, "requires" : [ "marketplace" ] },
  80. "blacksmith": { "id" : 16 },
  81. "special1": { "id" : 17 },
  82. "ship" : { "id" : 20, "upgrades" : "shipyard" },
  83. "special2": { "id" : 21 },
  84. "special3": { "id" : 22 },
  85. "special4": { "id" : 23 },
  86. "grail" : {
  87. "id" : 26,
  88. "mode" : "grail",
  89. "produce": { "gold": 5000 },
  90. },
  91. "extraTownHall": { "id" : 27, "requires" : [ "townHall" ], "mode" : "auto" },
  92. "extraCityHall": { "id" : 28, "requires" : [ "cityHall" ], "mode" : "auto" },
  93. "extraCapitol": { "id" : 29, "requires" : [ "capitol" ], "mode" : "auto" },
  94. // Previously hardcoded buildings that might be used by mods
  95. // Section 1 - building with bonuses during sieges
  96. "brotherhoodOfSword" : {
  97. "bonuses": [
  98. {
  99. "type": "MORALE",
  100. "val": 2
  101. }
  102. ]
  103. },
  104. "fountainOfFortune" : {
  105. "bonuses": [
  106. {
  107. "type": "LUCK",
  108. "val": 2
  109. }
  110. ]
  111. },
  112. "spellPowerGarrisonBonus" : {
  113. "bonuses": [
  114. {
  115. "type": "PRIMARY_SKILL",
  116. "subtype": "primarySkill.spellpower",
  117. "val": 2
  118. }
  119. ]
  120. },
  121. "attackGarrisonBonus" : {
  122. "bonuses": [
  123. {
  124. "type": "PRIMARY_SKILL",
  125. "subtype": "primarySkill.attack",
  126. "val": 2
  127. }
  128. ]
  129. },
  130. "defenseGarrisonBonus" : {
  131. "bonuses": [
  132. {
  133. "type": "PRIMARY_SKILL",
  134. "subtype": "primarySkill.defence",
  135. "val": 2
  136. }
  137. ]
  138. },
  139. "lighthouse" : {
  140. "bonuses": [
  141. {
  142. "propagator": "PLAYER",
  143. "type": "MOVEMENT",
  144. "subtype": "heroMovementSea",
  145. "val": 500
  146. }
  147. ]
  148. },
  149. // Section 2 - buildings that are visitable by hero
  150. "stables": {
  151. "configuration" : {
  152. "visitMode" : "bonus",
  153. "rewards" : [
  154. {
  155. "message" : "@core.genrltxt.580",
  156. "movePoints" : 400,
  157. "bonuses" : [ { "type" : "MOVEMENT", "subtype" : "heroMovementLand", "val" : 400, "valueType" : "ADDITIVE_VALUE", "duration" : "ONE_WEEK"} ]
  158. }
  159. ]
  160. }
  161. },
  162. "manaVortex": {
  163. "configuration" : {
  164. "resetParameters" : {
  165. "period" : 7,
  166. "visitors" : true
  167. },
  168. "visitMode" : "hero", // Should be 'once' to match (somewhat buggy) H3 logic
  169. "rewards" : [
  170. {
  171. "limiter" : {
  172. "noneOf" : [ { "manaPercentage" : 200 } ]
  173. },
  174. "message" : "@core.genrltxt.579",
  175. "manaPercentage" : 200
  176. }
  177. ]
  178. }
  179. },
  180. "attackVisitingBonus": {
  181. "configuration" : {
  182. "visitMode" : "hero",
  183. "rewards" : [
  184. {
  185. "message" : "@core.genrltxt.584",
  186. "primary" : { "attack" : 1 }
  187. }
  188. ]
  189. }
  190. },
  191. "defenceVisitingBonus": {
  192. "configuration" : {
  193. "visitMode" : "hero",
  194. "rewards" : [
  195. {
  196. "message" : "@core.genrltxt.585",
  197. "primary" : { "defence" : 1 }
  198. }
  199. ]
  200. }
  201. },
  202. "spellPowerVisitingBonus": {
  203. "configuration" : {
  204. "visitMode" : "hero",
  205. "rewards" : [
  206. {
  207. "message" : "@core.genrltxt.582",
  208. "primary" : { "spellpower" : 1 }
  209. }
  210. ]
  211. }
  212. },
  213. "knowledgeVisitingBonus": {
  214. "configuration" : {
  215. "visitMode" : "hero",
  216. "rewards" : [
  217. {
  218. "message" : "@core.genrltxt.581",
  219. "primary" : { "knowledge" : 1 }
  220. }
  221. ]
  222. }
  223. },
  224. "experienceVisitingBonus": {
  225. "configuration" : {
  226. "visitMode" : "hero",
  227. "rewards" : [
  228. {
  229. "message" : "@core.genrltxt.583",
  230. "heroExperience" : 1000
  231. }
  232. ]
  233. }
  234. },
  235. // Section 3 - markets
  236. "artifactMerchant" : {
  237. "requires" : [ "marketplace" ],
  238. "marketModes" : ["resource-artifact", "artifact-resource"]
  239. },
  240. "freelancersGuild" : {
  241. "requires" : [ "marketplace" ],
  242. "marketModes" : ["creature-resource"]
  243. },
  244. "magicUniversity" : {
  245. "marketModes" : ["resource-skill"]
  246. },
  247. "creatureTransformer" : {
  248. "marketModes" : ["creature-undead"]
  249. },
  250. // Section 4 - buildings that now have dedicated mechanics
  251. "ballistaYard": {
  252. "warMachine" : "ballista"
  253. },
  254. "thievesGuild" : {
  255. "bonuses": [
  256. {
  257. "propagator": "PLAYER",
  258. "type": "THIEVES_GUILD_ACCESS",
  259. "val": 2
  260. }
  261. ]
  262. },
  263. // Section 5 - H3 creature-related buildings
  264. "horde1" : { "id" : 18 },
  265. "horde1Upgr" : { "id" : 19, "mode" : "auto" },
  266. "horde2" : { "id" : 24 },
  267. "horde2Upgr" : { "id" : 25, "mode" : "auto" },
  268. "dwellingLvl1": { "id" : 30 },
  269. "dwellingLvl2": { "id" : 31 },
  270. "dwellingLvl3": { "id" : 32 },
  271. "dwellingLvl4": { "id" : 33 },
  272. "dwellingLvl5": { "id" : 34 },
  273. "dwellingLvl6": { "id" : 35 },
  274. "dwellingLvl7": { "id" : 36 },
  275. "dwellingUpLvl1": { "id" : 37 },
  276. "dwellingUpLvl2": { "id" : 38 },
  277. "dwellingUpLvl3": { "id" : 39 },
  278. "dwellingUpLvl4": { "id" : 40 },
  279. "dwellingUpLvl5": { "id" : 41 },
  280. "dwellingUpLvl6": { "id" : 42 },
  281. "dwellingUpLvl7": { "id" : 43 },
  282. // Section 6 - VCMI extended creature-related buildings
  283. "dwellingUp2Lvl1": { "id" : 44 },
  284. "dwellingUp2Lvl2": { "id" : 45 },
  285. "dwellingUp2Lvl3": { "id" : 46 },
  286. "dwellingUp2Lvl4": { "id" : 47 },
  287. "dwellingUp2Lvl5": { "id" : 48 },
  288. "dwellingUp2Lvl6": { "id" : 49 },
  289. "dwellingUp2Lvl7": { "id" : 50 },
  290. "dwellingUp3Lvl1": { "id" : 51 },
  291. "dwellingUp3Lvl2": { "id" : 52 },
  292. "dwellingUp3Lvl3": { "id" : 53 },
  293. "dwellingUp3Lvl4": { "id" : 54 },
  294. "dwellingUp3Lvl5": { "id" : 55 },
  295. "dwellingUp3Lvl6": { "id" : 56 },
  296. "dwellingUp3Lvl7": { "id" : 57 },
  297. "dwellingUp4Lvl1": { "id" : 58 },
  298. "dwellingUp4Lvl2": { "id" : 59 },
  299. "dwellingUp4Lvl3": { "id" : 60 },
  300. "dwellingUp4Lvl4": { "id" : 61 },
  301. "dwellingUp4Lvl5": { "id" : 62 },
  302. "dwellingUp4Lvl6": { "id" : 63 },
  303. "dwellingUp4Lvl7": { "id" : 64 },
  304. "dwellingUp5Lvl1": { "id" : 65 },
  305. "dwellingUp5Lvl2": { "id" : 66 },
  306. "dwellingUp5Lvl3": { "id" : 67 },
  307. "dwellingUp5Lvl4": { "id" : 68 },
  308. "dwellingUp5Lvl5": { "id" : 69 },
  309. "dwellingUp5Lvl6": { "id" : 70 },
  310. "dwellingUp5Lvl7": { "id" : 71 },
  311. "horde1Upgr2" : { "id" : 100, "mode" : "auto" },
  312. "horde1Upgr3" : { "id" : 101, "mode" : "auto" },
  313. "horde1Upgr4" : { "id" : 102, "mode" : "auto" },
  314. "horde1Upgr5" : { "id" : 103, "mode" : "auto" },
  315. "horde2Upgr2" : { "id" : 110, "mode" : "auto" },
  316. "horde2Upgr3" : { "id" : 111, "mode" : "auto" },
  317. "horde2Upgr4" : { "id" : 112, "mode" : "auto" },
  318. "horde2Upgr5" : { "id" : 113, "mode" : "auto" },
  319. "dwellingLvl8": { "id" : 150 },
  320. "dwellingUpLvl8": { "id" : 151 },
  321. "dwellingUp2Lvl8": { "id" : 152 },
  322. "dwellingUp3Lvl8": { "id" : 153 },
  323. "dwellingUp4Lvl8": { "id" : 154 },
  324. "dwellingUp5Lvl8": { "id" : 155 }
  325. }