mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
make cooldown optional
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
|
|||||||
const entry: Consumable = {
|
const entry: Consumable = {
|
||||||
id: consumable.id,
|
id: consumable.id,
|
||||||
game_mode_exclusive: "gameModeFilter" in consumable,
|
game_mode_exclusive: "gameModeFilter" in consumable,
|
||||||
cooldown: consumable.script.cooldown,
|
cooldown: consumable.script.cooldown ?? 0,
|
||||||
duration: consumable.script.duration,
|
duration: consumable.script.duration,
|
||||||
name: this.getString(consumable.userString),
|
name: this.getString(consumable.userString),
|
||||||
exclude: [],
|
exclude: [],
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export interface ConsumablesCommon {
|
|||||||
script: {
|
script: {
|
||||||
"#text": string;
|
"#text": string;
|
||||||
automatic?: boolean;
|
automatic?: boolean;
|
||||||
cooldown: number;
|
cooldown?: number;
|
||||||
duration?: number;
|
duration?: number;
|
||||||
shotEffect?: string;
|
shotEffect?: string;
|
||||||
bonusValues?: { [key: string]: number };
|
bonusValues?: { [key: string]: number };
|
||||||
|
|||||||
Reference in new issue
Block a user