Skip to content

Commit

Permalink
Fix SHOULD_NOT_SLEEP hit in borg adjustable tracer bolts (tgstation#7…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed May 19, 2023
1 parent 1c1f15f commit 033e1b4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/modules/projectiles/guns/energy/kinetic_accelerator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -586,5 +586,13 @@
name = "adjustable tracer bolts"
desc = "Causes kinetic accelerator bolts to have an adjustable-colored tracer trail and explosion. Use in-hand to change color."

/obj/item/borg/upgrade/modkit/tracer/adjustable/attack_self(mob/user)
bolt_color = input(user,"","Choose Color",bolt_color) as color|null
/obj/item/borg/upgrade/modkit/tracer/adjustable/interact(mob/user)
..()
choose_bolt_color(user)

/obj/item/borg/upgrade/modkit/tracer/adjustable/proc/choose_bolt_color(mob/user)
set waitfor = FALSE

var/new_color = input(user,"","Choose Color",bolt_color) as color|null
bolt_color = new_color || bolt_color

0 comments on commit 033e1b4

Please sign in to comment.