From ea51704f032f7cb9d758511c2844b2876462ed39 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Tue, 11 Oct 2016 18:28:52 +0100 Subject: [PATCH] ```put_in_hands()``` now prioritises the active hand --- code/modules/mob/inventory.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index 89f1a5a7529..2348aaa112f 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -197,12 +197,14 @@ return put_in_hand(I, get_inactive_hand_index()) -//Puts the item our active hand if possible. Failing that it tries our inactive hand. Returns TRUE on success. +//Puts the item our active hand if possible. Failing that it tries other hands. Returns TRUE on success. //If both fail it drops it on the floor and returns FALSE. //This is probably the main one you need to know :) /mob/proc/put_in_hands(obj/item/I, del_on_fail = FALSE) if(!I) return FALSE + if(put_in_active_hand(I)) + return TRUE var/hand = get_empty_held_index_for_side("l") if(!hand) hand = get_empty_held_index_for_side("r")