Skip to content

Commit

Permalink
0.7.5版本更新说明
Browse files Browse the repository at this point in the history
新增灵宠锁定
新增个人评分
新增装备评分
新增灵宠评分
优化炼器问题
新增背包总容量
新增批量放生灵宠
优化整体UI体验观感
优化野怪与BOSS闪避问题
  • Loading branch information
setube committed Aug 7, 2024
1 parent 31ffc67 commit f88190d
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 25 deletions.
Binary file removed docs/css/app.8ef741fc.css.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/css/app.8ef741fc.css → docs/css/app.c93f9f7f.css

Large diffs are not rendered by default.

Binary file added docs/css/app.c93f9f7f.css.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh-cmn-Hans"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover"/><link rel="icon" href="favicon.ico"><title>我的文字修仙全靠刷</title><script defer="defer" src="js/chunk-vendors.d6796eb9.js"></script><script defer="defer" src="js/app.51591500.js"></script><link href="css/chunk-vendors.9e0de64e.css" rel="stylesheet"><link href="css/app.8ef741fc.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but 我的文字修仙全靠刷 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-cmn-Hans"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover"/><link rel="icon" href="favicon.ico"><title>我的文字修仙全靠刷</title><script defer="defer" src="js/chunk-vendors.c20ea5cc.js"></script><script defer="defer" src="js/app.2936b690.js"></script><link href="css/chunk-vendors.9e0de64e.css" rel="stylesheet"><link href="css/app.c93f9f7f.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but 我的文字修仙全靠刷 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
1 change: 1 addition & 0 deletions docs/js/app.2936b690.js

Large diffs are not rendered by default.

Binary file added docs/js/app.2936b690.js.gz
Binary file not shown.
1 change: 0 additions & 1 deletion docs/js/app.51591500.js

This file was deleted.

Binary file removed docs/js/app.51591500.js.gz
Binary file not shown.
20 changes: 20 additions & 0 deletions docs/js/chunk-vendors.c20ea5cc.js

Large diffs are not rendered by default.

Binary file added docs/js/chunk-vendors.c20ea5cc.js.gz
Binary file not shown.
20 changes: 0 additions & 20 deletions docs/js/chunk-vendors.d6796eb9.js

This file was deleted.

Binary file removed docs/js/chunk-vendors.d6796eb9.js.gz
Binary file not shown.
46 changes: 44 additions & 2 deletions src/views/indexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@
</el-button>
</div>
</el-dialog>
<el-dialog title="批量出售设置" :visible.sync="sellingEquipmentShow" width="600px">
<el-dialog title="批量处理" :visible.sync="sellingEquipmentShow" width="600px">
<el-divider>装备</el-divider>
<el-checkbox-group v-model="player.sellingEquipmentData" @change="sellingEquipmentDataChange">
<el-checkbox v-for="(item, index) in AllEquipmenType" :label="item" :key="index">
{{ $levels[item] }}
Expand All @@ -529,6 +530,12 @@
出售装备
</el-button>
</div>
<el-divider>灵宠</el-divider>
<div class="dialog-footer" style="margin-top: 20px;">
<el-button class="dialog-footer-button" @click="sellingPet">
放生灵宠
</el-button>
</div>
</el-dialog>
<el-dialog title="数据管理" :visible.sync="show" width="600px">
<div class="dialog-footer">
Expand Down Expand Up @@ -635,6 +642,8 @@
reincarnation: 0,
// 下个境界所需修为
maxCultivation: 100,
// 背包总容量
backpackCapacity: 50,
// 炼器石数量
strengtheningStone: 0,
// 批量出售装备设置
Expand Down Expand Up @@ -878,7 +887,7 @@
this.$router.push('/explore');
}
},
{ text: '出售装备', handler: this.sellingEquipmentBox },
{ text: '批量处理', handler: this.sellingEquipmentBox },
{ text: '图鉴与成就', handler: () => this.$router.push('/equipAll') },
{ text: '世界BOSS', handler: () => this.$router.push('/boss') }
];
Expand Down Expand Up @@ -913,6 +922,39 @@
this.exportData();
}).catch(() => { });
},
// 批量放生灵宠
sellingPet () {
// 获取玩家背包装备
const pets = this.player.pets;
// 检查背包是否存在灵宠
if (!pets.length) {
this.$notify({ title: '灵宠放生提示', message: '你没有可以放生的灵宠' });
return;
}
// 过滤出可以放生的灵宠
const selling = pets.filter(item => !item.lock);
// 检查是否有可以放生的灵宠
if (!selling.length) {
this.$notify({ title: '灵宠放生提示', message: '你没有可以放生的未锁定灵宠' });
return;
}
// 关闭弹窗
this.sellingEquipmentShow = false;
// 计算未锁定灵宠放生所得培养丹
const cultivateDanTotal = selling.reduce((total, i) => {
// 灵宠转生次数
const reincarnation = i.reincarnation ? i.reincarnation : 1;
let level = i.level * reincarnation;
level = Number(level) || 0;
return total + Math.floor(level);
}, 0);
// 增加培养丹数量
this.player.cultivateDan += cultivateDanTotal;
// 清空背包内所有未锁定灵宠
this.player.pets = pets.filter(item => item.lock);
this.$store.commit('setPlayer', this.player);
this.$notify({ title: '灵宠放生提示', message: `所有非锁定灵宠已成功放生, 他们临走前一起赠与了你${cultivateDanTotal}个培养丹` });
},
// 批量出售装备
sellingEquipment () {
// 获取玩家背包装备
Expand Down

0 comments on commit f88190d

Please sign in to comment.