From 26f6e92e7041bc72e9898a02b594f0cae95d3b45 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sun, 15 May 2022 13:52:33 -0700 Subject: [PATCH 1/3] Update inventory.dm --- code/modules/mob/inventory.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index 849bbb9e38..e874ee2f10 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -461,7 +461,7 @@ //any cost it has isn't a worry /mob/proc/change_number_of_hands(amt) if(amt < held_items.len) - for(var/i in held_items.len to amt step -1) + for(var/i in held_items.len to (amt + 1) step -1) dropItemToGround(held_items[i]) held_items.len = amt From ffe0a0a9e7955ef352ff5be9f313ad08444123b1 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sun, 15 May 2022 13:53:07 -0700 Subject: [PATCH 2/3] Update inventory.dm --- code/modules/mob/inventory.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index e874ee2f10..5bae845df5 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -472,14 +472,14 @@ /mob/living/carbon/human/change_number_of_hands(amt) var/old_limbs = held_items.len if(amt < old_limbs) - for(var/i in hand_bodyparts.len to amt step -1) + for(var/i in hand_bodyparts.len to (amt + 1)t step -1) var/obj/item/bodypart/BP = hand_bodyparts[i] BP.dismember() hand_bodyparts[i] = null hand_bodyparts.len = amt else if(amt > old_limbs) hand_bodyparts.len = amt - for(var/i in old_limbs+1 to amt) + for(var/i in (old_limbs + 1) to amt) var/path = /obj/item/bodypart/l_arm if(!(i % 2)) path = /obj/item/bodypart/r_arm From dc88c32c77eb630d5a4398b0747abdbdc9221129 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sun, 15 May 2022 13:53:25 -0700 Subject: [PATCH 3/3] Update inventory.dm --- code/modules/mob/inventory.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index 5bae845df5..203c578c2c 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -472,7 +472,7 @@ /mob/living/carbon/human/change_number_of_hands(amt) var/old_limbs = held_items.len if(amt < old_limbs) - for(var/i in hand_bodyparts.len to (amt + 1)t step -1) + for(var/i in hand_bodyparts.len to (amt + 1) step -1) var/obj/item/bodypart/BP = hand_bodyparts[i] BP.dismember() hand_bodyparts[i] = null