buildingsLibrary.json 7.5 KB

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