* added inventory_t::countItems
* made Item::amount private
* added Item::ammoDef()
* coding guidelines