1 | function scr_itemcheck_inventory_and_pocket |
2 | { |
3 | var _haveeither = 0; |
4 | var itemcounttotal = 0; |
5 | scr_itemcheck |
6 | if (haveit == 1) |
7 | _haveeither = 1; |
8 | itemcounttotal += itemcount; |
9 | scr_itemcheck_pocket |
10 | if (haveit == 1) |
11 | _haveeither = 1; |
12 | itemcounttotal += itemcount; |
13 | haveit = _haveeither; |
14 | itemcount = itemcounttotal; |
15 | return haveit; |
16 | } |