koishi-plugin-rusty-lake-lizard 0.0.5 → 1.0.0
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/data.d.ts +138 -0
- package/lib/gamestate.d.ts +37 -0
- package/lib/index.d.ts +7 -26
- package/lib/index.js +1254 -1228
- package/lib/rooms/bedroom.d.ts +2 -0
- package/lib/rooms/corridor.d.ts +2 -0
- package/lib/rooms/electrical.d.ts +2 -0
- package/lib/rooms/experimentNote.d.ts +2 -0
- package/lib/rooms/floppyDisk.d.ts +2 -0
- package/lib/rooms/hide.d.ts +2 -0
- package/lib/rooms/index.d.ts +2 -0
- package/lib/rooms/kitchen.d.ts +2 -0
- package/lib/rooms/laboratory.d.ts +2 -0
- package/lib/rooms/lockedBox.d.ts +2 -0
- package/lib/rooms/office.d.ts +2 -0
- package/package.json +3 -4
- package/readme.md +21 -34
package/lib/data.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export declare const images: {
|
|
2
|
+
bedroom: string;
|
|
3
|
+
notea: string;
|
|
4
|
+
noteb: string;
|
|
5
|
+
code: string;
|
|
6
|
+
corridor: string;
|
|
7
|
+
kitchen: string;
|
|
8
|
+
laboratory: string;
|
|
9
|
+
description: string;
|
|
10
|
+
electrical: string;
|
|
11
|
+
fuse: string;
|
|
12
|
+
office: string;
|
|
13
|
+
document: string;
|
|
14
|
+
diagram: string;
|
|
15
|
+
hide: string;
|
|
16
|
+
};
|
|
17
|
+
interface Room {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
image?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const rooms: Room[];
|
|
24
|
+
export declare const itemsDetails: {
|
|
25
|
+
半张纸条a: {
|
|
26
|
+
image: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
半张纸条b: {
|
|
30
|
+
image: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
手电筒: {
|
|
34
|
+
image: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
上锁的盒子: {
|
|
38
|
+
image: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
钥匙: {
|
|
42
|
+
image: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
隐藏密码线索: {
|
|
46
|
+
image: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
身份证: {
|
|
50
|
+
image: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
滤纸: {
|
|
54
|
+
image: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
咖啡杯: {
|
|
58
|
+
image: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
咖啡: {
|
|
62
|
+
image: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
咖啡壶: {
|
|
66
|
+
image: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
肉: {
|
|
70
|
+
image: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
实验说明: {
|
|
74
|
+
image: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
烧杯: {
|
|
78
|
+
image: string;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
火柴盒: {
|
|
82
|
+
image: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
回形针: {
|
|
86
|
+
image: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
手: {
|
|
90
|
+
image: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
黑色混合物: {
|
|
94
|
+
image: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
保险丝盒: {
|
|
98
|
+
image: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
扳手: {
|
|
102
|
+
image: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
保险丝: {
|
|
106
|
+
image: string;
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
白色文件夹: {
|
|
110
|
+
image: string;
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
文本文档: {
|
|
114
|
+
image: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
螺丝刀: {
|
|
118
|
+
image: string;
|
|
119
|
+
description: string;
|
|
120
|
+
};
|
|
121
|
+
指示图: {
|
|
122
|
+
image: string;
|
|
123
|
+
description: string;
|
|
124
|
+
};
|
|
125
|
+
金属小钥匙: {
|
|
126
|
+
image: string;
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
金属盒子: {
|
|
130
|
+
image: string;
|
|
131
|
+
description: string;
|
|
132
|
+
};
|
|
133
|
+
软盘: {
|
|
134
|
+
image: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Context, Session } from 'koishi';
|
|
2
|
+
interface GameState {
|
|
3
|
+
id: string;
|
|
4
|
+
gameId: string;
|
|
5
|
+
gameName: string;
|
|
6
|
+
currentRoom: string;
|
|
7
|
+
inventory: string[];
|
|
8
|
+
visitedRooms: string[];
|
|
9
|
+
doneTasks: string[];
|
|
10
|
+
}
|
|
11
|
+
interface PlayerState {
|
|
12
|
+
id: string;
|
|
13
|
+
gameId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
}
|
|
16
|
+
declare module 'koishi' {
|
|
17
|
+
interface Tables {
|
|
18
|
+
rusty_lake_games: GameState;
|
|
19
|
+
rusty_lake_players: PlayerState;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare function getState(ctx: Context, session: Session): Promise<{
|
|
23
|
+
visitedRooms: string[];
|
|
24
|
+
id: string;
|
|
25
|
+
gameId: string;
|
|
26
|
+
gameName: string;
|
|
27
|
+
currentRoom: string;
|
|
28
|
+
inventory: string[];
|
|
29
|
+
doneTasks: string[];
|
|
30
|
+
}>;
|
|
31
|
+
export declare function visitedRooms(ctx: Context, session: Session, Config: any): Promise<"选择超时。" | "选择无效。" | "无法找到该房间的详细信息。">;
|
|
32
|
+
export declare function move(ctx: Context, session: Session, Config: any): Promise<string>;
|
|
33
|
+
export declare function ownedItems(ctx: Context, session: Session, Config: any): Promise<string>;
|
|
34
|
+
export declare function addItemToInventory(ctx: Context, session: Session, item: string): Promise<void>;
|
|
35
|
+
export declare function removeItemFromInventory(ctx: Context, session: Session, item: string): Promise<void>;
|
|
36
|
+
export declare function addTaskToDoneTasks(ctx: Context, session: Session, task: string): Promise<void>;
|
|
37
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
import { Context, Schema } from 'koishi';
|
|
2
2
|
export declare const inject: string[];
|
|
3
3
|
export declare const name = "rusty-lake-lizard";
|
|
4
|
-
export declare const usage = "\n# \uD83E\
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
gameName: string;
|
|
12
|
-
currentRoom: string;
|
|
13
|
-
inventory: string[];
|
|
14
|
-
visitedRooms: string[];
|
|
15
|
-
doneTasks: string[];
|
|
16
|
-
}
|
|
17
|
-
interface PlayerState {
|
|
18
|
-
id: string;
|
|
19
|
-
gameId: string;
|
|
20
|
-
userId: string;
|
|
21
|
-
}
|
|
22
|
-
declare module 'koishi' {
|
|
23
|
-
interface Tables {
|
|
24
|
-
rusty_lake_games: GameState;
|
|
25
|
-
rusty_lake_players: PlayerState;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export declare function apply(ctx: Context): void;
|
|
29
|
-
export {};
|
|
4
|
+
export declare const usage = "\n# \uD83E\uDD8E rusty-lake-lizard\n### \u8FD9\u662F\u4E00\u4E2A\u4EA4\u4E92\u5F0F\u89E3\u8C1C\u6E38\u620F\u63D2\u4EF6\u3002\u5728\u6E38\u620F\u4E2D\uFF0C\u73A9\u5BB6\u5C06\u7F6E\u8EAB\u4E8E\u4E00\u4E2A\u795E\u79D8\u7684\u623F\u95F4\u4E2D\uFF0C\u901A\u8FC7\u63A2\u7D22\u3001\u6536\u96C6\u7269\u54C1\u3001\u89E3\u9501\u8C1C\u9898\u548C\u673A\u5173\uFF0C\u9010\u6B65\u63ED\u5F00\u771F\u76F8\u3002\n\n---\n\n## \u2728 \u6E38\u620F\u7B80\u4ECB\n### \u73A9\u5BB6\u4EE5\u7B2C\u4E00\u4EBA\u79F0\u89C6\u89D2\u63A2\u7D22\u4E00\u4E2A\u590D\u6742\u800C\u795E\u79D8\u7684\u623F\u95F4\u7CFB\u7EDF\u3002\n- ### \u6BCF\u4E2A\u623F\u95F4\u90FD\u6709\u72EC\u7279\u7684\u63CF\u8FF0\u3001\u7269\u54C1\u548C\u8C1C\u9898\u3002\n- ### \u9700\u8981\u901A\u8FC7\u903B\u8F91\u63A8\u7406\u548C\u7269\u54C1\u4EA4\u4E92\u89E3\u9501\u901A\u5F80\u5176\u4ED6\u623F\u95F4\u7684\u901A\u8DEF\u3002\n- ### \u6E38\u620F\u8BB0\u5F55\u4F1A\u81EA\u52A8\u4FDD\u5B58\uFF0C\u65B9\u4FBF\u968F\u65F6\u4E2D\u65AD\u548C\u7EE7\u7EED\u6E38\u620F\u3002\n\n---\n\n<details>\n<summary><strong><span>\u4F7F\u7528\u65B9\u6CD5</span></strong></summary>\n\n### \uD83D\uDCDC \u6E38\u620F\u6570\u636E\u8BB0\u5F55\n<pre>\u9508\u6E56 \u65B0\u5EFA // \u65B0\u5EFA\u6E38\u620F\u623F\u95F4</pre>\n<pre>\u9508\u6E56 \u52A0\u5165 // \u52A0\u5165\u73B0\u6709\u6E38\u620F\u623F\u95F4</pre>\n<pre>\u9508\u6E56 \u5220\u9664 // \u6E05\u9664\u6E38\u620F\u623F\u95F4</pre>\n\n### \uD83D\uDCCD \u4F4D\u7F6E\u67E5\u770B\u3001\u79FB\u52A8\n<pre>\u9508\u6E56 \u623F\u95F4 // \u67E5\u770B\u5DF2\u8BBF\u95EE\u7684\u623F\u95F4\u73AF\u5883</pre>\n<pre>\u9508\u6E56 \u79FB\u52A8 // \u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u573A\u666F</pre>\n\n### \uD83D\uDD0D \u63A2\u7D22\u573A\u666F\u6216\u7269\u54C1\n<pre>\u9508\u6E56 \u67E5\u770B <point> // \u63A2\u7D22\u5F53\u524D\u573A\u666F\u6216\u62E5\u6709\u7684\u7269\u54C1</pre>\n<pre>\u9508\u6E56 \u7269\u54C1 // \u67E5\u770B\u4F60\u62E5\u6709\u7684\u7269\u54C1</pre>\n</details>\n\n<details>\n<summary><strong><span>\u5982\u679C\u8981\u53CD\u9988\u5EFA\u8BAE\u6216\u62A5\u544A\u95EE\u9898</span></strong></summary>\n\n<strong>\u53EF\u4EE5[\u70B9\u8FD9\u91CC](https://github.com/lizard0126/asmr-lizard/issues)\u521B\u5EFA\u8BAE\u9898~</strong>\n</details>\n\n<details>\n<summary><strong><span>\u5982\u679C\u559C\u6B22\u6211\u7684\u63D2\u4EF6</span></strong></summary>\n\n<strong>\u53EF\u4EE5[\u8BF7\u6211\u559D\u53EF\u4E50](https://ifdian.net/a/lizard0126)\uFF0C\u6CA1\u51C6\u5C31\u6709\u52A8\u529B\u66F4\u65B0\u65B0\u529F\u80FD\u4E86~</strong>\n</details>\n";
|
|
5
|
+
export declare const Config: Schema<Schemastery.ObjectS<{
|
|
6
|
+
timeout: Schema<number, number>;
|
|
7
|
+
}>, Schemastery.ObjectT<{
|
|
8
|
+
timeout: Schema<number, number>;
|
|
9
|
+
}>>;
|
|
10
|
+
export declare function apply(ctx: Context, Config: any): void;
|