weapons.json 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. {
  2. "weapons": [
  3. {
  4. "id": "pea_shooter",
  5. "name": "毛豆射手",
  6. "type": "single_shot",
  7. "rarity": "common",
  8. "weight": 30,
  9. "stats": {
  10. "damage": 20,
  11. "fireRate": 1.0,
  12. "range": 300,
  13. "bulletSpeed": 200,
  14. "penetration": 1,
  15. "accuracy": 0.95
  16. },
  17. "bulletConfig": {
  18. "bulletType": "normal",
  19. "bulletPrefab": "bullets/PeaBullet",
  20. "hitEffect": "动效输出/特效输出/tx0001",
  21. "trailEffect": null
  22. },
  23. "attackPattern": {
  24. "type": "single",
  25. "projectileCount": 1,
  26. "spreadAngle": 0,
  27. "burstCount": 1,
  28. "burstDelay": 0
  29. },
  30. "visualConfig": {
  31. "weaponSprites": {
  32. "1x1": "images/植物图标/001-0",
  33. "1x2": "images/植物图标/001-1",
  34. "2x1": "images/植物图标/001-1",
  35. "2x2": "images/植物图标/001-1"
  36. },
  37. "muzzleFlash": "动效输出/特效输出/tx0001",
  38. "fireSound": "audio/pea_shot"
  39. }
  40. },
  41. {
  42. "id": "sharp_carrot",
  43. "name": "尖胡萝卜",
  44. "type": "piercing",
  45. "rarity": "common",
  46. "weight": 25,
  47. "stats": {
  48. "damage": 15,
  49. "fireRate": 0.8,
  50. "range": 400,
  51. "bulletSpeed": 250,
  52. "penetration": 999,
  53. "accuracy": 0.9
  54. },
  55. "bulletConfig": {
  56. "bulletType": "piercing",
  57. "bulletPrefab": "bullets/CarrotBullet",
  58. "hitEffect": "动效输出/特效输出/tx0002",
  59. "trailEffect": "动效输出/特效输出/tx0002"
  60. },
  61. "attackPattern": {
  62. "type": "single",
  63. "projectileCount": 1,
  64. "spreadAngle": 0,
  65. "burstCount": 1,
  66. "burstDelay": 0
  67. },
  68. "visualConfig": {
  69. "weaponSprites": {
  70. "1x1": "images/植物图标/002",
  71. "1x2": "images/植物图标/002",
  72. "2x1": "images/植物图标/002",
  73. "2x2": "images/植物图标/002"
  74. },
  75. "muzzleFlash": "动效输出/特效输出/tx0002",
  76. "fireSound": "audio/carrot_shot"
  77. }
  78. },
  79. {
  80. "id": "saw_grass",
  81. "name": "锯齿草",
  82. "type": "ricochet_piercing",
  83. "rarity": "uncommon",
  84. "weight": 20,
  85. "stats": {
  86. "damage": 25,
  87. "fireRate": 0.6,
  88. "range": 350,
  89. "bulletSpeed": 180,
  90. "penetration": 3,
  91. "accuracy": 0.85
  92. },
  93. "bulletConfig": {
  94. "bulletType": "ricochet",
  95. "bulletPrefab": "bullets/SawBullet",
  96. "hitEffect": "动效输出/特效输出/tx0003",
  97. "trailEffect": "动效输出/特效输出/tx0003",
  98. "ricochetCount": 2,
  99. "ricochetAngle": 45
  100. },
  101. "attackPattern": {
  102. "type": "single",
  103. "projectileCount": 1,
  104. "spreadAngle": 0,
  105. "burstCount": 1,
  106. "burstDelay": 0
  107. },
  108. "visualConfig": {
  109. "weaponSprites": {
  110. "1x1": "images/植物图标/003",
  111. "1x2": "images/植物图标/003",
  112. "2x1": "images/植物图标/003",
  113. "2x2": "images/植物图标/003"
  114. },
  115. "muzzleFlash": "动效输出/特效输出/tx0003",
  116. "fireSound": "audio/saw_shot"
  117. }
  118. },
  119. {
  120. "id": "watermelon_bomb",
  121. "name": "西瓜炸弹",
  122. "type": "explosive",
  123. "rarity": "rare",
  124. "weight": 15,
  125. "stats": {
  126. "damage": 50,
  127. "fireRate": 0.4,
  128. "range": 250,
  129. "bulletSpeed": 120,
  130. "penetration": 1,
  131. "accuracy": 0.8,
  132. "explosionRadius": 100,
  133. "explosionDamage": 80
  134. },
  135. "bulletConfig": {
  136. "bulletType": "explosive",
  137. "bulletPrefab": "bullets/WatermelonBomb",
  138. "hitEffect": "动效输出/特效输出/tx0004",
  139. "trailEffect": "动效输出/特效输出/tx0004",
  140. "explosionDelay": 0.1
  141. },
  142. "attackPattern": {
  143. "type": "single",
  144. "projectileCount": 1,
  145. "spreadAngle": 0,
  146. "burstCount": 1,
  147. "burstDelay": 0
  148. },
  149. "visualConfig": {
  150. "weaponSprites": {
  151. "1x1": "images/植物图标/004",
  152. "1x2": "images/植物图标/004",
  153. "2x1": "images/植物图标/004",
  154. "2x2": "images/植物图标/004"
  155. },
  156. "muzzleFlash": "动效输出/特效输出/tx0004",
  157. "fireSound": "audio/bomb_launch"
  158. }
  159. },
  160. {
  161. "id": "boomerang_plant",
  162. "name": "回旋镖盆栽",
  163. "type": "boomerang",
  164. "rarity": "uncommon",
  165. "weight": 18,
  166. "stats": {
  167. "damage": 30,
  168. "fireRate": 0.5,
  169. "range": 300,
  170. "bulletSpeed": 150,
  171. "penetration": 999,
  172. "accuracy": 0.9,
  173. "returnSpeed": 100
  174. },
  175. "bulletConfig": {
  176. "bulletType": "boomerang",
  177. "bulletPrefab": "bullets/BoomerangBullet",
  178. "hitEffect": "动效输出/特效输出/tx0005",
  179. "trailEffect": "动效输出/特效输出/tx0005",
  180. "arcHeight": 50,
  181. "returnDelay": 1.0
  182. },
  183. "attackPattern": {
  184. "type": "arc",
  185. "projectileCount": 1,
  186. "spreadAngle": 0,
  187. "burstCount": 1,
  188. "burstDelay": 0
  189. },
  190. "visualConfig": {
  191. "weaponSprites": {
  192. "1x1": "images/植物图标/005",
  193. "1x2": "images/植物图标/005",
  194. "2x1": "images/植物图标/005",
  195. "2x2": "images/植物图标/005"
  196. },
  197. "muzzleFlash": "动效输出/特效输出/tx0005",
  198. "fireSound": "audio/boomerang_throw"
  199. }
  200. },
  201. {
  202. "id": "hot_pepper",
  203. "name": "炙热辣椒",
  204. "type": "area_burn",
  205. "rarity": "rare",
  206. "weight": 12,
  207. "stats": {
  208. "damage": 40,
  209. "fireRate": 0.3,
  210. "range": 280,
  211. "bulletSpeed": 100,
  212. "penetration": 1,
  213. "accuracy": 0.75,
  214. "explosionRadius": 120,
  215. "burnDuration": 5.0,
  216. "burnDamage": 10
  217. },
  218. "bulletConfig": {
  219. "bulletType": "area_burn",
  220. "bulletPrefab": "bullets/PepperBomb",
  221. "hitEffect": "动效输出/特效输出/tx0006",
  222. "trailEffect": "动效输出/特效输出/tx0006",
  223. "burnEffect": "动效输出/特效输出/tx0006",
  224. "explosionDelay": 0.2
  225. },
  226. "attackPattern": {
  227. "type": "single",
  228. "projectileCount": 1,
  229. "spreadAngle": 0,
  230. "burstCount": 1,
  231. "burstDelay": 0
  232. },
  233. "visualConfig": {
  234. "weaponSprites": {
  235. "1x1": "images/植物图标/006",
  236. "1x2": "images/植物图标/006",
  237. "2x1": "images/植物图标/006",
  238. "2x2": "images/植物图标/006"
  239. },
  240. "muzzleFlash": "动效输出/特效输出/tx0006",
  241. "fireSound": "audio/pepper_launch"
  242. }
  243. },
  244. {
  245. "id": "cactus_shotgun",
  246. "name": "仙人散弹",
  247. "type": "shotgun",
  248. "rarity": "uncommon",
  249. "weight": 22,
  250. "stats": {
  251. "damage": 12,
  252. "fireRate": 0.7,
  253. "range": 200,
  254. "bulletSpeed": 180,
  255. "penetration": 1,
  256. "accuracy": 0.7
  257. },
  258. "bulletConfig": {
  259. "bulletType": "normal",
  260. "bulletPrefab": "bullets/CactusBullet",
  261. "hitEffect": "动效输出/特效输出/tx0007",
  262. "trailEffect": null
  263. },
  264. "attackPattern": {
  265. "type": "spread",
  266. "projectileCount": 5,
  267. "spreadAngle": 30,
  268. "burstCount": 1,
  269. "burstDelay": 0
  270. },
  271. "visualConfig": {
  272. "weaponSprites": {
  273. "1x1": "images/植物图标/007",
  274. "1x2": "images/植物图标/007",
  275. "2x1": "images/植物图标/007",
  276. "2x2": "images/植物图标/007"
  277. },
  278. "muzzleFlash": "动效输出/特效输出/tx0007",
  279. "fireSound": "audio/cactus_shot"
  280. }
  281. },
  282. {
  283. "id": "okra_missile",
  284. "name": "秋葵导弹",
  285. "type": "homing_missile",
  286. "rarity": "epic",
  287. "weight": 8,
  288. "stats": {
  289. "damage": 70,
  290. "fireRate": 0.25,
  291. "range": 500,
  292. "bulletSpeed": 80,
  293. "penetration": 1,
  294. "accuracy": 1.0,
  295. "explosionRadius": 150,
  296. "homingStrength": 0.8
  297. },
  298. "bulletConfig": {
  299. "bulletType": "homing_missile",
  300. "bulletPrefab": "bullets/OkraMissile",
  301. "hitEffect": "动效输出/特效输出/tx0004",
  302. "trailEffect": "动效输出/特效输出/tx0007",
  303. "homingDelay": 0.3,
  304. "arcHeight": 100
  305. },
  306. "attackPattern": {
  307. "type": "arc",
  308. "projectileCount": 1,
  309. "spreadAngle": 0,
  310. "burstCount": 1,
  311. "burstDelay": 0
  312. },
  313. "visualConfig": {
  314. "weaponSprites": {
  315. "1x1": "images/植物图标/008",
  316. "1x2": "images/植物图标/008-1",
  317. "2x1": "images/植物图标/008-1",
  318. "2x2": "images/植物图标/008-1"
  319. },
  320. "muzzleFlash": "动效输出/特效输出/tx0004",
  321. "fireSound": "audio/missile_launch"
  322. }
  323. }
  324. ],
  325. "rarityWeights": {
  326. "common": 60,
  327. "uncommon": 25,
  328. "rare": 12,
  329. "epic": 3
  330. },
  331. "blockSizes": ["1x1", "1x2", "2x1", "2x2"]
  332. }