Add quick slot and consumables (health and mana potions)

This commit is contained in:
Peter Stockings
2026-01-06 18:23:34 +11:00
parent 57fb85f62e
commit 3b29180a00
8 changed files with 281 additions and 4 deletions

29
src/core/config/Items.ts Normal file
View File

@@ -0,0 +1,29 @@
import type { Item } from "../types";
export const ITEMS: Record<string, Item> = {
"health_potion": {
id: "health_potion",
name: "Health Potion",
type: "Consumable",
icon: "potion_red",
stats: {} // Special logic for usage
},
"iron_sword": {
id: "iron_sword",
name: "Iron Sword",
type: "Weapon",
icon: "sword_iron",
stats: {
attack: 2
}
},
"leather_armor": {
id: "leather_armor",
name: "Leather Armor",
type: "BodyArmour",
icon: "armor_leather",
stats: {
defense: 2
}
}
};