Fixes one handed dswords (#15289)

* One handed deswords

* Reverts unintended changes

Got a bit confused, I need more coffee
This commit is contained in:
SabreML
2021-01-20 09:54:26 +00:00
committed by GitHub
parent c946d5ee2b
commit 5aeede675b
2 changed files with 10 additions and 0 deletions
@@ -68,6 +68,9 @@
if(user.get_inactive_hand())
to_chat(user, "<span class='warning'>You need your other hand to be empty!</span>")
return FALSE
if(!user.has_both_hands())
to_chat(user, "<span class='warning'>You need both hands to wield this!</span>")
return FALSE
wielded = TRUE
force = force_wielded
if(sharp_when_wielded)
+7
View File
@@ -66,6 +66,13 @@
return TRUE
return FALSE
/mob/proc/has_both_hands()
return TRUE
/mob/living/carbon/human/has_both_hands()
if(has_left_hand() && has_right_hand())
return TRUE
return FALSE
//Limb numbers
/mob/proc/get_num_arms()