Linux fix for base image paths

Rename comsumable to consumable
This commit is contained in:
2025-03-24 19:21:02 -04:00
parent 49c481aa0e
commit 2b59daa21f
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,59 @@
export enum Consumable {
ASSORTED_DONUTS,
SUPREME_PIZZA,
ROOT_BEER,
CHOCOLATE_FROSTED_DONUTS,
CHEESE_PIZZA,
PEPPERONI_PIZZA,
GLAZED_DONUTS,
}
const ids = [
"ZuvkidodzkuOfGLDnTOFyg",
"wUCIKdJSvEmiQHYMyx4X4w",
"JfnVXFmilU6ysv-VbTAe3A",
"mMCGPgK3tki5S_15q2Z81A",
"5hIAZ9wg5EyG1cILf4FS2A",
"mq23W-RSP0G8iGNLdrcpUw",
"7OZ5AE3uuUyqa0P-2W1ptg",
] as const;
export class ConsumableSelection {
type: Consumable;
guid: string;
constructor(type: Consumable) {
this.type = type;
this.guid = ids[type];
}
}
export class ConsumableBuilder {
Id: number;
ConsumableItemDesc: string;
CreatedAt: string;
Count: number;
UnlockedLevel: number;
IsActive: boolean;
constructor(
selection: ConsumableSelection,
id: number,
createdAt: Date,
count: number,
active: boolean,
) {
this.Id = id;
this.ConsumableItemDesc = selection.guid;
this.CreatedAt = createdAt.toUTCString();
this.Count = count;
this.UnlockedLevel = 0; // All players have access to every consumable - avatars and equipment are different
this.IsActive = active;
}
}