diff --git a/item.inc b/item.inc index 1340e8a..bff4e79 100644 --- a/item.inc +++ b/item.inc @@ -510,6 +510,18 @@ forward bool:IsItemTypeLongPickup(ItemType:itemtype); Returns true if the item requires holding the pick-up key in order to pick up. */ +forward GetItemTypeMaxHitPoints(ItemType:itemtype); +/* +# Description +Returns the max hit points of an item type. +*/ + +forward GetItemTypePrice(ItemType:itemtype); +/* +# Description +Returns the price of an item type. +*/ + forward bool:IsItemDestroying(Item:id); /* # Description @@ -1798,6 +1810,15 @@ stock GetItemTypeMaxHitPoints(ItemType:itemtype) { return itm_TypeData[itemtype][itm_maxHitPoints]; } +// itm_price +stock GetItemTypePrice(ItemType:itemtype) { + if(!IsValidItemType(itemtype)) { + return 0; + } + + return itm_TypeData[itemtype][itm_price]; +} + // itm_Destroying stock bool:IsItemDestroying(Item:id) { if(!Iter_Contains(itm_Index, _:id)) {