From 07796bea15a2d5f43766f062379b63fc9e9e1b5d Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 1 Nov 2024 22:47:42 +0100 Subject: WIP consumables --- backend/ObjectFactory.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'backend/ObjectFactory.h') diff --git a/backend/ObjectFactory.h b/backend/ObjectFactory.h index 440d4bd..735ac1f 100644 --- a/backend/ObjectFactory.h +++ b/backend/ObjectFactory.h @@ -1,21 +1,14 @@ #pragma once #include "Object.h" - -enum ObjectType { - ARMOR, - CONSUMABLE, - GOLD, - WEAPON, -}; +#include "Range.h" // database object table row struct UniversalObject { String name; String description; - ObjectType type; - int min_value; - int max_value; + String type; + Range value; int protection; }; -- cgit v1.2.3