koishi-plugin-maple-warriors 0.0.1 → 0.0.2

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/index.js CHANGED
@@ -492,6 +492,15 @@ ${changes.join(" ")}`;
492
492
  chargeTime: parseFloat((1 + 280 / (character.agility + 70)).toFixed(2)),
493
493
  nextAttackTime: 0
494
494
  };
495
+ await executeBattle(
496
+ session,
497
+ player,
498
+ prey,
499
+ config.battleMessageInterval,
500
+ false,
501
+ // 不是训练模式
502
+ abortController
503
+ );
495
504
  const today2 = getTodayDateString();
496
505
  const updates = {
497
506
  lastHuntDate: today2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-maple-warriors",
3
3
  "description": "-",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/lib/index.d.ts DELETED
@@ -1,47 +0,0 @@
1
- import { Context, Schema } from 'koishi';
2
- export declare const using: readonly ["database"];
3
- declare module 'koishi' {
4
- interface Tables {
5
- maple_warriors: MapleWarrior;
6
- maple_warriors_items: MapleItem;
7
- }
8
- }
9
- export interface MapleWarrior {
10
- id: number;
11
- userId: string;
12
- name: string;
13
- level: number;
14
- constitution: number;
15
- attack: number;
16
- toughness: number;
17
- crit: number;
18
- agility: number;
19
- currentHp: number;
20
- maxHp: number;
21
- status: string;
22
- previousStatus: string;
23
- statusEndTime: Date | null;
24
- items: string;
25
- lastTrainDate: string;
26
- lastHuntDate: string;
27
- updatedAt: Date;
28
- }
29
- export interface MapleItem {
30
- id: number;
31
- name: string;
32
- hpBonus: number;
33
- constitutionBonus: number;
34
- attackBonus: number;
35
- toughnessBonus: number;
36
- critBonus: number;
37
- agilityBonus: number;
38
- description: string;
39
- createdAt: Date;
40
- }
41
- export declare const name = "maple-warriors";
42
- export interface Config {
43
- preyData: string[];
44
- battleMessageInterval: number;
45
- }
46
- export declare const Config: Schema<Config>;
47
- export declare function apply(ctx: Context, config: Config): void;