Linux fix for base image paths
Rename comsumable to consumable
This commit is contained in:
59
src/data/content/consumable.ts
Normal file
59
src/data/content/consumable.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user