Skip to content

Commit

Permalink
feat: 加入了新的地表类型"幽影树碎片🌳"
Browse files Browse the repository at this point in the history
  • Loading branch information
elpwc committed Jun 20, 2024
1 parent 4b65688 commit 9632506
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/MapView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@
MapPointType.Warn,
MapPointType.Taoke,
MapPointType.Question,
MapPointType.ErdtreeFragment,
];
// 判断是否重复
let existflag = false;
Expand Down
1 change: 1 addition & 0 deletions src/locale/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ const lang = {
metarial: '材料',
ring: '戒指护符',
tear: '泪滴幼体',
erdtreefragment: '幽影树碎片',
},
},
apoTypes: {
Expand Down
1 change: 1 addition & 0 deletions src/locale/lang/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ const lang = {
metarial: '材料',
ring: '戒指护符',
tear: '泪滴幼体',
erdtreefragment: '幽影树碎片',
},
},
apoTypes: {
Expand Down
1 change: 1 addition & 0 deletions src/locale/lang/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ const lang: langType = {
metarial: '材料',
ring: '戒指護符',
tear: '淚滴幼體',
erdtreefragment: '幽影樹碎片',
},
},
apoTypes: {
Expand Down
8 changes: 7 additions & 1 deletion src/utils/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
export enum MapPointType {
Empty = '',

// 地点
Cifu = 'cifu',
Jiejing = 'pass',
Portal = 'portal',
Expand All @@ -25,12 +25,14 @@ export enum MapPointType {
Temple = 'temple',
Arena = 'arena',

// 敌人
BigBoss = 'bigboss',
Boss = 'boss',
LittleBoss = 'littboss',
RedSoul = 'redsoul',
Jingyingguai = 'jingying',

// 道具
Item = 'item',
ImportantItem = 'impoitem',
Stone = 'stone',
Expand All @@ -43,10 +45,13 @@ export enum MapPointType {
Orchid = 'orchid',
Material = 'material',
Tear = 'tear',
ErdtreeFragment = 'erdtreefragment',

// 收集
Paint = 'paint',
Gesture = 'gesture',

// 武器
Magic = 'magic',
Weapon = 'weapon',
Daogao = 'daogao',
Expand All @@ -55,6 +60,7 @@ export enum MapPointType {
Guhui = 'guhui',
Ring = 'ring',

// 留言
Text = 'text',
Warn = 'warn',
Question = 'question',
Expand Down
1 change: 1 addition & 0 deletions src/utils/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const getSiteTypeFilters = $t => [
{ name: $t('siteTypes.filters.metarial'), value: MapPointType.Material, icon: MapIcon.white(true, 6) },
{ name: $t('siteTypes.filters.importantitem'), value: MapPointType.ImportantItem, icon: MapIcon.purple(true) },
{ name: $t('siteTypes.filters.item'), value: MapPointType.Item, icon: MapIcon.blue(true) },
{ name: $t('siteTypes.filters.erdtreefragment'), value: MapPointType.ErdtreeFragment, icon: MapIcon.blue(), emoji: '🌳' },

{ name: $t('siteTypes.filterGroupNames.collection'), hr: true },
{ name: $t('siteTypes.filters.gesture'), value: MapPointType.Gesture, icon: MapIcon.blue(), emoji: '🕺' },
Expand Down

0 comments on commit 9632506

Please sign in to comment.