From 9849495b30a68d8aeb221abb858abffed75e9cbc Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 16 Mar 2024 23:42:31 -0700 Subject: [PATCH] Item names --- js/game/shop/items.js | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/js/game/shop/items.js b/js/game/shop/items.js index 68a9fd8..f0a84b9 100644 --- a/js/game/shop/items.js +++ b/js/game/shop/items.js @@ -1,20 +1,50 @@ +// Enum - item categories +const Types = { + FOOD: "FOOD", + FURNITURE: "FURNITURE", + BACKGROUND: "BACKGROUND", +} + // shop items const APPLE = { id: '1', name: 'Apple', - price: 50, + price: 100, + type: Types.FOOD, + data: { + effects: { + hunger: 2 + } + }, description: 'This is an apple', } const ORANGE = { id: '2', name: 'Orange', - price: 50, + price: 175, + data: { + effects: { + hunger: 4 + } + }, description: 'This is an orange', } +const FILET_MIGNOM = { + id: '3', + name: 'Filet Mignom', + price: 400, + data: { + effects: { + hunger: 9 + } + }, + description: 'Eating luxurious', +} export const items = { - 1: APPLE, - 2: ORANGE, + '1': APPLE, + '2': ORANGE, + '3': FILET_MIGNOM, } export const getItemById = (id) => {