78 lines
1.5 KiB
TypeScript
78 lines
1.5 KiB
TypeScript
import type { Item } from "../types";
|
|
|
|
export const ITEMS: Record<string, Item> = {
|
|
"health_potion": {
|
|
id: "health_potion",
|
|
name: "Health Potion",
|
|
type: "Consumable",
|
|
textureKey: "items",
|
|
spriteIndex: 57,
|
|
stats: {
|
|
hp: 5
|
|
},
|
|
stackable: true,
|
|
quantity: 1
|
|
},
|
|
"iron_sword": {
|
|
id: "iron_sword",
|
|
name: "Iron Sword",
|
|
type: "Weapon",
|
|
weaponType: "melee",
|
|
textureKey: "items",
|
|
spriteIndex: 2,
|
|
stats: {
|
|
attack: 2
|
|
}
|
|
},
|
|
"leather_armor": {
|
|
id: "leather_armor",
|
|
name: "Leather Armor",
|
|
type: "BodyArmour",
|
|
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,
|
|
stackable: true,
|
|
quantity: 1
|
|
},
|
|
"pistol": {
|
|
id: "pistol",
|
|
name: "Pistol",
|
|
type: "Weapon",
|
|
weaponType: "ranged",
|
|
textureKey: "weapons",
|
|
spriteIndex: 1,
|
|
stats: {
|
|
attack: 10,
|
|
range: 8,
|
|
magazineSize: 6,
|
|
currentAmmo: 6,
|
|
ammoType: "9mm",
|
|
projectileSpeed: 15,
|
|
fireSound: "shoot"
|
|
}
|
|
},
|
|
"ammo_9mm": {
|
|
id: "ammo_9mm",
|
|
name: "9mm Ammo",
|
|
type: "Ammo",
|
|
ammoType: "9mm",
|
|
textureKey: "weapons",
|
|
spriteIndex: 23,
|
|
stackable: true,
|
|
quantity: 10 // Finds a pack of 10
|
|
}
|
|
};
|