fix: 修改文件名大小写
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,10 +1,75 @@ | |||||||
| const fs = require("fs"); | const fs = require("fs"); | ||||||
| const path = require("path"); | const ringType = 6; | ||||||
| const scope = ["UpstarConfig"].filter(Boolean); | const tpls = { | ||||||
|  |   SpecialRing: { | ||||||
|  |     key: "SpecialRing", | ||||||
|  |     desc: "戒指种类,登记,伤害加倍,元宝花费", | ||||||
|  |     values: [ringType, 51, 10, 10], | ||||||
|  |     interval: [0, 1, 10, 10], | ||||||
|  |     num: 150, | ||||||
|  |     template: { | ||||||
|  |       4: `"S2": { | ||||||
|  |           "attr": [ | ||||||
|  |             { "value": S3, "type": 75 }, | ||||||
|  |             { "value": 428, "type": 76 }, | ||||||
|  |             { "value": 536, "type": 77 }, | ||||||
|  |             { "value": 55, "type": 21 }, | ||||||
|  |             { "value": 55, "type": 23 }, | ||||||
|  |             { "value": 55, "type": 25 }, | ||||||
|  |             { "value": 55, "type": 27 }, | ||||||
|  |             { "value": 5000, "type": 83 } | ||||||
|  |           ], | ||||||
|  |           "lv": S2, | ||||||
|  |           "cost": [ | ||||||
|  |             { "id": 4, "type": 4, "count": S4 }, | ||||||
|  |             { "id": 1018, "type": 0, "count": 1000 } | ||||||
|  |           ], | ||||||
|  |           "pos": S1 | ||||||
|  |         }`, | ||||||
|  |       5: `"S2": { | ||||||
|  |           "attr": [ | ||||||
|  |             { "value": S3, "type": 75 }, | ||||||
|  |             { "value": 585, "type": 76 }, | ||||||
|  |             { "value": 1115, "type": 77 }, | ||||||
|  |             { "value": 70, "type": 21 }, | ||||||
|  |             { "value": 70, "type": 23 }, | ||||||
|  |             { "value": 70, "type": 25 }, | ||||||
|  |             { "value": 70, "type": 27 }, | ||||||
|  |             { "value": 3400, "type": 79 } | ||||||
|  |           ], | ||||||
|  |           "lv": S2, | ||||||
|  |           "cost": [ | ||||||
|  |               { "id": 1022, "type": 0, "count": 1600 }, | ||||||
|  |               { "id": 4, "type": 4, "count": S4 } | ||||||
|  |           ], | ||||||
|  |           "pos": S1 | ||||||
|  |         }`, | ||||||
|  |       6: `"S2": { | ||||||
|  |           "attr": [ | ||||||
|  |             { "value": 1000, "type": 5 }, | ||||||
|  |             { "value": 100, "type": 76 }, | ||||||
|  |             { "value": 100, "type": 77 }, | ||||||
|  |             { "value": 2500, "type": 64 }, | ||||||
|  |             { "value": S3, "type": 75 } | ||||||
|  |           ], | ||||||
|  |           "lv": S2, | ||||||
|  |           "cost": [ | ||||||
|  |             { "id": 1037, "type": 0, "count": 180 }, | ||||||
|  |             { "id": 4, "type": 4, "count": S4 } | ||||||
|  |           ], | ||||||
|  |           "pos": S1 | ||||||
|  |         }`, | ||||||
|  |     }[ringType], | ||||||
|  |   }, | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | const scope = [ | ||||||
|  |   // "UpstarConfig", | ||||||
|  |   "SpecialRing", | ||||||
|  | ].filter(Boolean); | ||||||
| const start = () => { | const start = () => { | ||||||
|   const configs = scope.map((key) => { |   const configs = scope.map((key) => { | ||||||
|     const file = require(`./batchTemples/${key}.js`); |     return tpls[key]; | ||||||
|     return file; |  | ||||||
|   }); |   }); | ||||||
|   configs.forEach((file) => { |   configs.forEach((file) => { | ||||||
|     const { key, values, interval, num, template } = file; |     const { key, values, interval, num, template } = file; | ||||||
|   | |||||||
| @@ -7,6 +7,7 @@ const scope = [ | |||||||
|   "Monster", |   "Monster", | ||||||
|   "ItemMergeConfig", |   "ItemMergeConfig", | ||||||
|   "MergeConfig", |   "MergeConfig", | ||||||
|  |   "SpecialRingConfig", | ||||||
|   // "NpcTransConf" |   // "NpcTransConf" | ||||||
|   //  "MergeTotal", "RecyclingSettingConfig", "UpstarConfig", |   //  "MergeTotal", "RecyclingSettingConfig", "UpstarConfig", | ||||||
| ].filter(Boolean); | ].filter(Boolean); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user