Code:
obj
var
limit
amount //do these variables get assigned to every object now in the game whether or not they are ever used?
proc
remove_amount(n as num)
src.amount-=n
//remove code
weapons //for example I don't want weapons to have amount
parent_type = /obj/
sword
equipped
potions //but I do want amounts with potions?
parent_type = /obj/
health_potion
limit = 5
amount
food //or even food?
parent_type = /obj/
chicken
limit = 5
amount
Or however it may be categorized.