make cooldown optional

This commit is contained in:
tresabhi committed 2026-11-14 11:10:41 -06:00
1 parent 26f3245257
commit 035e034995
2 files changed
+2 -2

No files matched your search

@@ -15,7 +15,7 @@ export abstract class ServerBlitzKitAPI6 extends ServerBlitzKitAPI5 {
const entry: Consumable = {
id: consumable.id,
game_mode_exclusive: "gameModeFilter" in consumable,
cooldown: consumable.script.cooldown,
cooldown: consumable.script.cooldown ?? 0,
duration: consumable.script.duration,
name: this.getString(consumable.userString),
exclude: [],
+1 -1
View File
@@ -15,7 +15,7 @@ export interface ConsumablesCommon {
script: {
"#text": string;
automatic?: boolean;
cooldown: number;
cooldown?: number;
duration?: number;
shotEffect?: string;
bonusValues?: { [key: string]: number };