koishi-plugin-smmcat-gensokyo 0.0.14 → 0.0.16

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.
@@ -41,6 +41,19 @@ export type MonsterBaseAttribute = {
41
41
  giveExp: number;
42
42
  /** 获得货币 */
43
43
  giveMonetary: number;
44
+ /** 概率获得道具 */
45
+ giveProps?: {
46
+ /** 道具名 */
47
+ name: string;
48
+ /** 获得概率 */
49
+ radomVal: number;
50
+ /** 最大获取数据 */
51
+ val?: number;
52
+ /** 掉落数量固定? */
53
+ const?: boolean;
54
+ /** 怪物等级要求? */
55
+ lv?: number;
56
+ }[];
44
57
  };
45
58
  export type MonsterTempData = {
46
59
  [keys: string]: MonsterBaseAttribute;
@@ -1,4 +1,4 @@
1
- import { DatabaseUserAttribute } from "../users";
1
+ import { Session } from "koishi";
2
2
  export declare enum PropType {
3
3
  消耗类 = "\u6D88\u8017\u7C7B",
4
4
  礼包类 = "\u793C\u5305\u7C7B",
@@ -10,6 +10,7 @@ export type propsTemplateData = {
10
10
  type: PropType;
11
11
  info: string;
12
12
  price: number;
13
- fn: (user: DatabaseUserAttribute) => void;
13
+ fn: (session: Session) => void;
14
14
  };
15
15
  };
16
+ export declare const propsData: propsTemplateData;