rogged/src/items.h
NotAShelf 22ab6fc6eb
combat: rewrite in Zig; add basic damage types and weapon archetypes
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic8055a1cf6bdad1aca13673ea171b4b46a6a6964
2026-04-05 20:29:12 +03:00

26 lines
629 B
C

#ifndef ITEMS_H
#define ITEMS_H
#include "common.h"
// Item functions - types already defined in common.h
// Spawn items for a floor
void item_spawn(Item items[], int *count, Map *map, int floor);
// Use an item (apply effect, only potions are consumed)
void item_use(Player *p, Item *i);
// Get item name for display
const char *item_get_name(const Item *i);
// Get item description
const char *item_get_description(const Item *i);
// Get item power value
int item_get_power(const Item *i);
// Get short label for a damage class (SLA/IMP/PRC/FIR/PSN)
const char *dmg_class_get_short(DamageClass dc);
#endif // ITEMS_H