koishi-plugin-ggcevo-game 1.4.45 → 1.4.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/utils.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Context } from 'koishi';
2
2
  import { Config } from './index';
3
+ import { PKProtection } from './database';
3
4
  export declare function gachaWithPity(ctx: Context, handle: string): Promise<boolean>;
4
5
  export declare function gachaWithHiddenAward(ctx: Context, handle: string): Promise<boolean>;
5
6
  export declare function checkSensitiveWord(ctx: Context, content: string): Promise<boolean>;
@@ -20,3 +21,5 @@ export declare function handleTechUpgrade(ctx: Context, handle: string, target:
20
21
  export declare function handleWeaponUpgrade(ctx: Context, handle: string, target: string): Promise<string>;
21
22
  export declare function generateUpgradePriceList(ctx: Context, handle: string): Promise<string>;
22
23
  export declare function getRankInfo(ctx: Context, config: Config, handle: string): Promise<string>;
24
+ export declare function isWithinProtection(protections: PKProtection[]): boolean;
25
+ export declare function formatTime(date: Date): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.4.45",
4
+ "version": "1.4.47",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [