mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user