UNPKG

koishi-plugin-ggcevo-game

Version:

星际争霸2咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。

65 lines (64 loc) 2.94 kB
import { Context } from 'koishi'; import { Config } from './index'; export declare function gachaWithPity(ctx: Context, handle: string): Promise<boolean>; export declare function checkSensitiveWord(ctx: Context, content: string): Promise<boolean>; export declare function getRandomInt(min: number, max: number): number; export declare function PetCapsuleToy(): "t3级宠物扭蛋" | "t2级宠物扭蛋" | "t1级宠物扭蛋" | "t0级宠物扭蛋"; export declare function isSameDate(a: Date, b: Date): boolean; export declare function convertUTCtoChinaTime(input: Date | string | number): Date; export declare function formatDate(d: Date): string; export declare function createHpBar(current: number, max: number): string; export declare function activateNextBossGroup(ctx: Context, currentGroupId?: number | null): Promise<{ group: { groupId: number; name: string; bosses: number[]; }; bosses: any[]; }>; export declare function calculateTotalPower(ctx: Context, config: Config, handle: string): Promise<number>; export declare function applyItemEffect(ctx: Context, session: any, handle: string, itemConfig: any, target?: string): Promise<{ success: boolean; message: string; }>; export declare function handleTechUpgrade(ctx: Context, handle: string, target: string): Promise<string>; export declare function handleWeaponUpgrade(ctx: Context, handle: string, target: string): Promise<string>; export declare function generateUpgradePriceList(ctx: Context, handle: string): Promise<string>; export declare function getRankInfo(ctx: Context, config: Config, handle: string): Promise<string>; export declare function isWithinProtection(protections: any[]): boolean; export declare function formatTime(date: Date): string; export declare const legendaryDiscounts: { 'MK-4\u6FC0\u5149\u6B65\u67AA': string[]; M4AE脉冲步枪: string[]; 'DSR-55\u53CD\u5668\u6750\u6B65\u67AA': string[]; 龙息霰弹枪: string[]; 'DG-3\u7535\u5F27\u6B65\u67AA': string[]; 光剑: string[]; 外星电浆: string[]; 核聚变重炮: string[]; }; export declare const GUESSING_ITEMS: { id: number; description: string; odds: number; minBet: number; maxBet: number; status: string; }[]; export declare function fixedCurfewCheck(session: any, config: Config): true | false; /** * 私聊宵禁检查函数 * 在非固定宵禁时段(18:00-24:00之外)禁止私聊 * @param session 会话对象 * @param config 配置对象 * @returns 是否允许私聊 */ export declare function privateChatCurfewCheck(session: any, config: Config): boolean; export declare function getHalfDayIdentifier(date: any): string; export declare function initWeights(ctx: any): Promise<void>; export declare function updateWeights(ctx: Context, selectedId: number): Promise<void>; export declare const buffConfig: { id: number; name: string; effects: string; }[];