Add in throwable items (dagger) from pixel dungeon

This commit is contained in:
Peter Stockings
2026-01-06 20:58:53 +11:00
parent 3b29180a00
commit 9b1fc78409
18 changed files with 659 additions and 155 deletions

View File

@@ -5,14 +5,18 @@ export const ITEMS: Record<string, Item> = {
id: "health_potion",
name: "Health Potion",
type: "Consumable",
icon: "potion_red",
stats: {} // Special logic for usage
textureKey: "items",
spriteIndex: 57,
stats: {
hp: 5
}
},
"iron_sword": {
id: "iron_sword",
name: "Iron Sword",
type: "Weapon",
icon: "sword_iron",
textureKey: "items",
spriteIndex: 2,
stats: {
attack: 2
}
@@ -21,9 +25,21 @@ export const ITEMS: Record<string, Item> = {
id: "leather_armor",
name: "Leather Armor",
type: "BodyArmour",
icon: "armor_leather",
textureKey: "items",
spriteIndex: 25,
stats: {
defense: 2
}
},
"throwing_dagger": {
id: "throwing_dagger",
name: "Throwing Dagger",
type: "Consumable",
textureKey: "items",
spriteIndex: 15,
stats: {
attack: 4
},
throwable: true
}
};