Porting putnams ventcrawling PR and Fix (#13571)
* Porting putnams rage * And the bugfix
This commit is contained in:
@@ -100,6 +100,14 @@
|
||||
return held_items.Find(I)
|
||||
|
||||
|
||||
///Find number of held items, multihand compatible
|
||||
/mob/proc/get_num_held_items()
|
||||
. = 0
|
||||
for(var/i in 1 to held_items.len)
|
||||
if(held_items[i])
|
||||
.++
|
||||
|
||||
|
||||
//Sad that this will cause some overhead, but the alias seems necessary
|
||||
//*I* may be happy with a million and one references to "indexes" but others won't be
|
||||
/mob/proc/is_holding(obj/item/I)
|
||||
|
||||
Reference in New Issue
Block a user