Twohanded weapons are now more generalized. You can make any weapon twohanded just by setting twohanded = 1. Also fixed the throwing of twohanded weapons as well as dropping. The offhand thing should no longer cause problems. Report any bugs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1615 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-05-24 15:07:51 +00:00
parent fd0133d920
commit 9b46819b80
6 changed files with 53 additions and 45 deletions
+2 -2
View File
@@ -1134,7 +1134,7 @@ proc/isobserver(A)
/mob/proc/drop_item()
var/obj/item/W = equipped()
if(istype(W,/obj/item/weapon/fireaxe))
if(W.twohanded)
if(W.wielded)
if(hand)
var/obj/item/weapon/offhand/O = r_hand
@@ -1143,7 +1143,7 @@ proc/isobserver(A)
var/obj/item/weapon/offhand/O = l_hand
del O
W.wielded = 0 //Kinda crude, but gets the job done with minimal pain -Agouri
W.name = "Fire axe" //name reset so people don't see world fireaxes with (unwielded) or (wielded) tags
W.name = "[initial(W.name)]" //name reset so people don't see world fireaxes with (unwielded) or (wielded) tags
W.update_icon()
if (W)