koishi-plugin-ggcevo-game 1.4.1 → 1.4.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.
@@ -1,6 +1,6 @@
1
1
  import { Context } from 'koishi';
2
2
  import { Config } from '../index';
3
- export declare function handlePrimaryAttack(ctx: Context, session: any, config: Config, equippedWeapon: any, targetBoss: any, activeBosses: any[], bossGroup: any, weaponName: string, weaponData: any, maxHP: number): Promise<{
3
+ export declare function handlePrimaryAttack(ctx: Context, session: any, config: Config, handle: string, equippedWeapon: any, targetBoss: any, activeBosses: any[], bossGroup: any, weaponName: string, weaponData: any, maxHP: number): Promise<{
4
4
  initialDamage: any;
5
5
  currentHP: any;
6
6
  isDefeated: boolean;
@@ -12,7 +12,7 @@ export declare function handlePrimaryAttack(ctx: Context, session: any, config:
12
12
  freezing: boolean;
13
13
  bileStacks: any;
14
14
  }>;
15
- export declare function handleScatterAttack(ctx: Context, session: any, config: Config, equippedWeapon: any, targetBoss: any, weaponName: string, weaponData: any, activeBosses: any[], bossGroup: any): Promise<{
15
+ export declare function handleScatterAttack(ctx: Context, session: any, config: Config, handle: string, equippedWeapon: any, targetBoss: any, weaponName: string, weaponData: any, activeBosses: any[], bossGroup: any): Promise<{
16
16
  scatterEffectMessages: string[];
17
17
  extraDamages: {
18
18
  name: string;
@@ -120,21 +120,14 @@ export declare const bossPool: readonly [{
120
120
  tags: ("护盾" | "灵能" | "异形" | "重型")[];
121
121
  passive: ("超导体" | "能源虹吸" | "电能立场" | "电能冲击波" | "脉冲" | "能量黑洞")[];
122
122
  };
123
- minions: ({
123
+ minions: {
124
124
  name: string;
125
125
  type: "子代";
126
126
  maxHP: number;
127
127
  energy: number;
128
128
  tags: ("护盾" | "灵能" | "异形")[];
129
129
  passive: ("弱化形态" | "超导体" | "能量虹吸" | "能量黑洞")[];
130
- } | {
131
- name: string;
132
- type: "子代";
133
- maxHP: number;
134
- energy: number;
135
- tags: ("护盾" | "灵能" | "异形")[];
136
- passive: ("弱化形态" | "电能导体" | "能量虹吸" | "能量黑洞")[];
137
- })[];
130
+ }[];
138
131
  }, {
139
132
  main: {
140
133
  id: number;
@@ -153,4 +146,22 @@ export declare const bossPool: readonly [{
153
146
  tags: ("重甲" | "生物" | "惧寒" | "异形")[];
154
147
  passive: ("弱化形态" | "火焰异形" | "灼烧粘液" | "腐蚀胆汁" | "燃烧潜地")[];
155
148
  }[];
149
+ }, {
150
+ main: {
151
+ id: number;
152
+ name: string;
153
+ type: "主宰";
154
+ maxHP: number;
155
+ energy: number;
156
+ tags: ("生物" | "异形")[];
157
+ passive: ("猎手异形" | "狂暴" | "伪装" | "致命一击")[];
158
+ };
159
+ minions: {
160
+ name: string;
161
+ type: "子代";
162
+ maxHP: number;
163
+ energy: number;
164
+ tags: ("生物" | "异形")[];
165
+ passive: ("弱化形态" | "猎手异形" | "狂暴" | "伪装")[];
166
+ }[];
156
167
  }];
@@ -125,7 +125,7 @@ export declare const passiveConfig: {
125
125
  };
126
126
  readonly 灼烧粘液: {
127
127
  readonly effect: 0;
128
- readonly description: "受到伤害后,会获得一层“胆汁”; 若存在“胆汁”层数时受到火焰攻击,将立刻清空层数并回复X点生命值(X为“胆汁”层数 x 10)";
128
+ readonly description: "受到伤害时,会获得一层“胆汁”; 若存在“胆汁”层数时受到火焰攻击,将立刻清空层数并回复X点生命值(X为“胆汁”层数 x 10)";
129
129
  };
130
130
  readonly 腐蚀胆汁: {
131
131
  readonly effect: 0;
@@ -147,4 +147,20 @@ export declare const passiveConfig: {
147
147
  readonly effect: 0;
148
148
  readonly description: "每拥有一层“胆汁”,受到的伤害-5%; 若有存活的子代,则每层“胆汁”使受到的伤害额外-5%";
149
149
  };
150
+ readonly 猎手异形: {
151
+ readonly effect: 0;
152
+ readonly description: "若有存活的其他异形,则受到的伤害-20%; 若没有存活的其他异形,则受到的伤害+20%; 免疫火焰伤害; 免疫寒冷伤害";
153
+ };
154
+ readonly 狂暴: {
155
+ readonly effect: 0;
156
+ readonly description: "血量低于50%时,进入狂暴状态,受到的伤害-50%";
157
+ };
158
+ readonly 伪装: {
159
+ readonly effect: 0;
160
+ readonly description: "受到伤害时,记录伤害来源的武器名称(最多一种,新记录会替换旧记录),下次受到相同武器伤害时伤害减少80%";
161
+ };
162
+ readonly 致命一击: {
163
+ readonly effect: 0;
164
+ readonly description: "受到伤害时,有5%的概率免疫此次伤害";
165
+ };
150
166
  };
@@ -38,7 +38,7 @@ export declare const PassiveHandler: {
38
38
  messages: string[];
39
39
  skillUpdates: {
40
40
  name: any;
41
- remove: ("弱化形态" | "异形甲壳" | "孤立无援" | "冰霜回复" | "冰霜进化" | "冰霜环绕" | "寒霜地狱" | "应激甲壳I" | "应激甲壳II" | "求生本能I" | "求生本能II" | "冷适应" | "感染空间站" | "病毒云" | "霉菌滋生" | "岗哨机枪" | "结构装甲" | "吸血唾液" | "进食" | "嗜血狂暴" | "吐血" | "电能导体" | "超导体" | "能量虹吸" | "能源虹吸" | "电能立场" | "电能冲击波" | "脉冲" | "能量黑洞" | "火焰异形" | "庞兽狂暴" | "灼烧粘液" | "腐蚀胆汁" | "火焰吐息" | "太阳耀斑" | "燃烧潜地" | "炼狱爆弹")[];
41
+ remove: ("冰霜环绕" | "寒霜地狱" | "冰霜回复" | "弱化形态" | "异形甲壳" | "孤立无援" | "冰霜进化" | "应激甲壳I" | "应激甲壳II" | "求生本能I" | "求生本能II" | "冷适应" | "感染空间站" | "病毒云" | "霉菌滋生" | "岗哨机枪" | "结构装甲" | "吸血唾液" | "进食" | "嗜血狂暴" | "吐血" | "电能导体" | "超导体" | "能量虹吸" | "能源虹吸" | "电能立场" | "电能冲击波" | "脉冲" | "能量黑洞" | "火焰异形" | "庞兽狂暴" | "灼烧粘液" | "腐蚀胆汁" | "火焰吐息" | "太阳耀斑" | "燃烧潜地" | "炼狱爆弹" | "猎手异形" | "狂暴" | "伪装" | "致命一击")[];
42
42
  }[];
43
43
  };
44
44
  handleInfectedStation: (ctx: Context, targetBoss: any) => Promise<{
@@ -105,10 +105,6 @@ export declare const PassiveHandler: {
105
105
  handleArcWelderEffect: (ctx: Context, targetBoss: any, weaponName: string) => Promise<{
106
106
  messages: string[];
107
107
  }>;
108
- handleParticlePhaseEffect: (targetBoss: any, weaponName: string, totalMultiplier: number) => {
109
- damageMultiplier: number;
110
- messages: string[];
111
- };
112
108
  handleGiantRage: (targetBoss: any, currentHP: number, maxHP: number) => {
113
109
  damageMultiplier: number;
114
110
  messages: string[];
@@ -152,7 +148,34 @@ export declare const PassiveHandler: {
152
148
  damageMultiplier: number;
153
149
  messages: string[];
154
150
  };
155
- handlePassives: (ctx: Context, targetBoss: any, initialDamage: number, currentHP: number, maxHP: number, weaponName: string, weaponData: any, activeBosses: any[], bossGroup: any) => Promise<{
151
+ handleHunterAlien: (ctx: Context, targetBoss: any, weaponName: string, activeBosses: any[]) => Promise<{
152
+ immune: boolean;
153
+ messages: string[];
154
+ damageMultiplier?: undefined;
155
+ } | {
156
+ damageMultiplier: number;
157
+ messages: string[];
158
+ immune?: undefined;
159
+ }>;
160
+ handleRage: (targetBoss: any, currentHP: number, maxHP: number) => {
161
+ damageMultiplier: number;
162
+ messages: string[];
163
+ };
164
+ handleDisguise: (ctx: Context, targetBoss: any, weaponName: string, initialDamage: number) => Promise<{
165
+ damageMultiplier: number;
166
+ messages: string[];
167
+ }>;
168
+ handleCriticalHit: (targetBoss: any, initialDamage: number) => {
169
+ immune: boolean;
170
+ messages: string[];
171
+ };
172
+ handleCorrosionModule: (installedMods: string[]) => number;
173
+ handleParticlePhaseEffect: (targetBoss: any, weaponName: string) => number;
174
+ handleIgnoreReductionEffects: (ctx: Context, userId: string, weaponName: string, targetBoss: any, totalMultiplier: number) => Promise<{
175
+ damageMultiplier: number;
176
+ messages: any[];
177
+ }>;
178
+ handlePassives: (ctx: Context, handle: string, targetBoss: any, initialDamage: number, currentHP: number, maxHP: number, weaponName: string, weaponData: any, activeBosses: any[], bossGroup: any) => Promise<{
156
179
  currentHP: any;
157
180
  messages: any;
158
181
  skillUpdates: any[];
package/lib/database.d.ts CHANGED
@@ -21,6 +21,7 @@ declare module 'koishi' {
21
21
  ggcevo_tech: tech;
22
22
  ggcevo_Mining: Mining;
23
23
  ggcevo_task: task;
24
+ ggcevo_purchasepermissions: purchasepermissions;
24
25
  }
25
26
  }
26
27
  export interface backpack {
@@ -130,6 +131,7 @@ export interface Boss {
130
131
  Vulnerability: number;
131
132
  freezing: number;
132
133
  energy: number;
134
+ lastWeaponName: string;
133
135
  groupId: number;
134
136
  isActive: boolean;
135
137
  respawnTime: Date;
@@ -178,3 +180,9 @@ export interface task {
178
180
  progress: number;
179
181
  Completions: number;
180
182
  }
183
+ export interface purchasepermissions {
184
+ handle: string;
185
+ legendarypermissions: number;
186
+ explosiondoorauthority: number;
187
+ syndicatelegendspermissions: number;
188
+ }