Heathin fixes:

 * add inventory/weight checks when giving out items
 * fix OR conditions that were mistakenly using the bitwise OR operator