Powered Crossbow Fixes (#8573)

This commit is contained in:
Geeves
2020-04-02 00:59:24 +02:00
committed by GitHub
parent 9cbe0baa75
commit 98dd2fadbc
3 changed files with 11 additions and 7 deletions

View File

@@ -44,9 +44,7 @@
/obj/item/arrow/rod/removed(mob/user)
if(throwforce == 15) // The rod has been superheated - we don't want it to be useable when removed from the bow.
to_chat(user, "[src] shatters into a scattering of overstressed metal shards as it leaves the crossbow.")
var/obj/item/material/shard/shrapnel/S = new()
S.forceMove(get_turf(src))
to_chat(user, "[src] shatters into a scattering of unusable overstressed metal shards as it leaves the crossbow.")
qdel(src)
/obj/item/gun/launcher/crossbow
@@ -196,12 +194,11 @@
/obj/item/gun/launcher/crossbow/update_icon()
if(tension > 1)
icon_state = "crossbow-drawn"
icon_state = "[initial(icon_state)]-drawn"
else if(bolt)
icon_state = "crossbow-nocked"
icon_state = "[initial(icon_state)]-nocked"
else
icon_state = "crossbow"
icon_state = initial(icon_state)
// Crossbow construction.
/obj/item/crossbowframe