成就列表

This commit is contained in:
AncTe committed 2023-02-21 23:22:03 +08:00
1 parent 82c8434f9b
commit 9e51b03a4d
4 files changed
+102 -2

No files matched your search

+74
View File
@@ -0,0 +1,74 @@
{
"challenge": [
{
"name": "虚惊一场",
"text": [
"打完山洞门口的兽人后只剩一滴血"
],
"point": 30
},
{
"name": "逃出生天",
"text": [
"通过山路追逐战的困难难度"
],
"point": 20
},
{
"name": "真能刷",
"text": [
"勇气之路的刷血怪刷到 <span style=\"color: gold\">15w<span> 以上的血"
],
"point": 30
},
{
"name": "冰与火之舞",
"text": [
"完成第二章音游特殊战的困难难度"
],
"point": 50
}
],
"explore": [
{
"name": "勇气巅峰",
"text": [
"第一章完成度达到100%"
],
"progress": "",
"point": 50
},
{
"name": "你是怎么办到的?!",
"text": [
"与山路上的若干个神秘木牌对话"
],
"hide": "该探索成就需要你自己探索如何达成",
"point": 25
},
{
"name": "智慧之心",
"text": [
"第二章完成度达到100%"
],
"progress": "",
"point": 50
},
{
"name": "学坏了",
"text": [
"学习电摇嘲讽技能"
],
"point": 20
},
{
"name": "满腹经纶",
"text": [
"把第二章中所有能学习的技能都学一遍"
],
"hide": "该探索成就需要你自己探索如何达成",
"progress": "",
"point": 50
}
]
}
+13 -1
View File
@@ -2,7 +2,7 @@
import { message } from 'ant-design-vue';
import { MessageApi } from 'ant-design-vue/lib/message';
import { isNil } from 'lodash';
import { Animation, TimingFn } from 'mutate-animate';
import { Animation, sleep, TimingFn } from 'mutate-animate';
import { ComputedRef, ref } from 'vue';
import { EVENT_KEY_CODE_MAP } from './keyCodes';
@@ -191,3 +191,15 @@ export function download(content: string, name: string) {
a.click();
document.body.removeChild(a);
}
/**
* 间隔一段时间调用一个函数
* @param funcs 函数列表
* @param interval 调用间隔
*/
export async function doByInterval(funcs: (() => void)[], interval: number) {
for await (const fn of funcs) {
await sleep(interval);
fn();
}
}
+14
View File
@@ -0,0 +1,14 @@
<template>
<div id="achievement"></div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
</script>
<style lang="less" scoped>
#achievement {
width: 100%;
height: 100%;
}
</style>