完成度成就

This commit is contained in:
AncTe committed 2023-02-23 23:10:57 +08:00
1 parent 5dbe7654a4
commit 2ea95671a5
22 files changed
+279 -66

No files matched your search

+28 -1
View File
@@ -20,7 +20,8 @@ interface PluginDeclaration
PluginUse,
SkillTree,
MiniMap,
HeroRealStatus {
HeroRealStatus,
PluginAchievement {
/**
* 添加函数 例:添加弹出文字,像这个就可以使用core.addPop或core.plugin.addPop调用
* @param px 弹出的横坐标
@@ -389,6 +390,32 @@ interface HeroRealStatus {
): HeroStatus[K];
}
interface PluginAchievement {
/**
* 完成一个成就
* @param type 成就类型
* @param index 成就索引
*/
completeAchievement(type: AchievementType, index: number): void;
/**
* 是否完成了某个成就
* @param type 成就类型
* @param index 成就索引
*/
hasCompletedAchievement(type: AchievementType, index: number): boolean;
/**
* 获取当前成就点数
*/
getNowPoint(): number;
/**
* 检查所有到达过的楼层,用于成就的计算
*/
checkVisitedFloor(): void;
}
type Chapter = 'chapter1' | 'chapter2';
interface Skill {