mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 23:29:10 +01:00
[MIRROR] Bow Loading Fix (#12357)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
co-authored by
Will
parent
0bfb8f2612
commit
333e2a58ba
@@ -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].")
|
||||
|
||||
Reference in New Issue
Block a user