mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
完善
This commit is contained in:
parent
70e7aae005
commit
4f9bf6181a
@ -1362,6 +1362,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "constants",
|
"cls": "constants",
|
||||||
"name": "成就",
|
"name": "成就",
|
||||||
"canUseItemEffect": "true",
|
"canUseItemEffect": "true",
|
||||||
"useItemEffect": "core.plugin.achievementOpened.value = true;"
|
"useItemEffect": "core.plugin.achievementOpened.value = true;",
|
||||||
|
"text": "可以查看成就"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -75,15 +75,6 @@
|
|||||||
"hide": "该探索成就需要你自己探索如何达成",
|
"hide": "该探索成就需要你自己探索如何达成",
|
||||||
"progress": "",
|
"progress": "",
|
||||||
"point": 50
|
"point": 50
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "没货了!",
|
|
||||||
"text": [
|
|
||||||
"尝试连续购买已卖空的物品三次"
|
|
||||||
],
|
|
||||||
"hide": "该探索成就需要你自己探索如何达成",
|
|
||||||
"progress": "",
|
|
||||||
"point": 20
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -38,7 +38,7 @@ export const totalPoint = Object.values(list)
|
|||||||
* @param index 成就索引
|
* @param index 成就索引
|
||||||
*/
|
*/
|
||||||
export function completeAchievement(type: AchievementType, index: number) {
|
export function completeAchievement(type: AchievementType, index: number) {
|
||||||
if (flags.debug) return;
|
if (flags.debug || hasCompletedAchievement(type, index)) return;
|
||||||
changeLocalStorage<AchievementData>(
|
changeLocalStorage<AchievementData>(
|
||||||
'achievement',
|
'achievement',
|
||||||
data => {
|
data => {
|
||||||
|
@ -73,6 +73,7 @@ onMounted(async () => {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: #000d;
|
background-color: #000d;
|
||||||
animation: ani 5s ease 0s 1 forwards running;
|
animation: ani 5s ease 0s 1 forwards running;
|
||||||
|
z-index: 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#complete {
|
#complete {
|
||||||
|
@ -78,7 +78,14 @@
|
|||||||
></a-divider>
|
></a-divider>
|
||||||
<div
|
<div
|
||||||
class="item-sell-info"
|
class="item-sell-info"
|
||||||
:style="{ color: mode === 'buy' ? 'lightgreen' : 'white' }"
|
:style="{
|
||||||
|
color:
|
||||||
|
mode === 'buy'
|
||||||
|
? nowMoney >= parseInt(item.money)
|
||||||
|
? 'lightgreen'
|
||||||
|
: 'lightcoral'
|
||||||
|
: 'white'
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<span>买价</span>
|
<span>买价</span>
|
||||||
<span>{{ item.money }}</span>
|
<span>{{ item.money }}</span>
|
||||||
@ -168,6 +175,10 @@ import { isMobile } from '../plugin/use';
|
|||||||
import BoxAnimate from '../components/boxAnimate.vue';
|
import BoxAnimate from '../components/boxAnimate.vue';
|
||||||
import { KeyCode } from '../plugin/keyCodes';
|
import { KeyCode } from '../plugin/keyCodes';
|
||||||
import { sleep } from 'mutate-animate';
|
import { sleep } from 'mutate-animate';
|
||||||
|
import {
|
||||||
|
completeAchievement,
|
||||||
|
hasCompletedAchievement
|
||||||
|
} from '../plugin/ui/achievement';
|
||||||
|
|
||||||
const id = core.plugin.openedShopId;
|
const id = core.plugin.openedShopId;
|
||||||
const shop = core.status.shops[core.plugin.openedShopId] as ItemShopEvent;
|
const shop = core.status.shops[core.plugin.openedShopId] as ItemShopEvent;
|
||||||
@ -190,6 +201,8 @@ const count = ref(0);
|
|||||||
const nowMoney = ref(core.status.hero.money);
|
const nowMoney = ref(core.status.hero.money);
|
||||||
const update = ref(false);
|
const update = ref(false);
|
||||||
|
|
||||||
|
let achiN = 0;
|
||||||
|
|
||||||
let bought = false;
|
let bought = false;
|
||||||
|
|
||||||
watch(count, n => {
|
watch(count, n => {
|
||||||
@ -232,7 +245,10 @@ watch(remain, n => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function confirm() {
|
function confirm() {
|
||||||
if (count.value === 0) return;
|
if (count.value === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
achiN = 0;
|
||||||
const money = core.status.hero.money;
|
const money = core.status.hero.money;
|
||||||
bought = true;
|
bought = true;
|
||||||
core.status.route.push(`openShop:${id}`);
|
core.status.route.push(`openShop:${id}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user