Skip to content

Commit

Permalink
fix: rename 斑节虾
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 14, 2024
1 parent 3d84b56 commit e370a2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions scripts/export-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { ProductInfo } from '~/utils/types';
const content = (await fs.readFile(`./scripts/全商品统计.csv`, 'utf-8'))
.replace(/阿妮塔战备工厂\(lv40\)/g, '阿妮塔战备工厂')
.replace(/七号自由港/g, '7号自由港')
.replace(/班节虾/g, '斑节虾')
.split('\n');

const header = content[0].split(',');
Expand Down Expand Up @@ -91,7 +92,7 @@ const valuable = new Set([
'7号自由港:桦石发财树',
'7号自由港:石墨烯',
'7号自由港:人工晶花',
'7号自由港:班节虾',
'7号自由港:斑节虾',
'7号自由港:年货大礼包',
'澄明数据中心:游戏机',
'澄明数据中心:银矿石',
Expand Down Expand Up @@ -139,7 +140,6 @@ for (const row of data) {
cost: row.cost === '时价' ? null : row.cost !== '' ? +row.cost : 0,
transactions: []
};
console.log(row);

for (const city of cities) {
if (!row[`${city}_mileage`] || row[`${city}_basePrice`] === '') continue;
Expand Down
18 changes: 9 additions & 9 deletions utils/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@
]
},
{
"name": "班节虾",
"name": "斑节虾",
"city": "7号自由港",
"type": "specialty",
"valuable": true,
Expand All @@ -1367,56 +1367,56 @@
"cost": null,
"transactions": [
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "修格里城",
"mileage": 259,
"basePrice": 782
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "铁盟哨站",
"mileage": 324,
"basePrice": 869
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "澄明数据中心",
"mileage": 202,
"basePrice": 782
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "阿妮塔战备工厂",
"mileage": 116,
"basePrice": 694
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "阿妮塔能源研究所",
"mileage": 162,
"basePrice": 694
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "荒原站",
"mileage": 399,
"basePrice": 958
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "曼德矿场",
"mileage": 417,
"basePrice": 958
},
{
"name": "班节虾",
"name": "斑节虾",
"sourceCity": "7号自由港",
"targetCity": "淘金乐园",
"mileage": 514,
Expand Down

0 comments on commit e370a2c

Please sign in to comment.