[MIRROR] Bow Loading Fix (#12357)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-02-03 19:43:44 +01:00
committed by GitHub
co-authored by Will
parent 0bfb8f2612
commit 333e2a58ba
2 changed files with 6 additions and 4 deletions
@@ -131,6 +131,7 @@
icon_state = "bow_hardlight"
item_state = "bow_hardlight"
desc = "An energy bow, capable of producing arrows from an internal power supply."
hardlight = TRUE
/obj/item/gun/launcher/crossbow/bow/hardlight/unload(mob/user)
QDEL_NULL(bolt)
@@ -144,12 +145,13 @@
user.visible_message(span_infoplain(span_bold("[user]") + " relaxes the tension on [src]'s string."),span_infoplain("You relax the tension on [src]'s string."))
drawn = FALSE
update_icon()
else if(!bolt)
return
// Automatically knock the arrow as it forms
if(!bolt)
user.visible_message(span_infoplain(span_bold("[user]") + " fabricates a new hardlight projectile with [src]."),span_infoplain("You fabricate a new hardlight projectile with [src]."))
bolt = new /obj/item/arrow/energy(src)
update_icon()
else
draw(user)
draw(user)
/obj/item/gun/launcher/crossbow/bow/glamour
name = "glamour bow"
@@ -92,7 +92,7 @@
if(.)
return TRUE
if(is_bow)
return TRUE
return FALSE
if(tension)
if(bolt)
user.visible_message("[user] relaxes the tension on [src]'s string and removes [bolt].","You relax the tension on [src]'s string and remove [bolt].")