Phoron Bore Adjustment Take 2 (#9015)

* Phoron Bore Fire Delay
Phoron bores have a windup of one second.

* Phoron bore default range dropped to 3.
This commit is contained in:
Mechoid
2023-03-08 19:37:31 -08:00
committed by GitHub
parent ff1c2045d7
commit 2b4deb2282
2 changed files with 12 additions and 1 deletions
@@ -176,6 +176,8 @@
action_button_name = "Toggle internal generator"
var/winding = FALSE // Are we winding up to fire?
var/generator_state = GEN_OFF
var/datum/looping_sound/small_motor/soundloop
var/time_started //to keep the soundloop from being "stopped" too soon and playing indefinitely
@@ -268,6 +270,15 @@
audible_message(SPAN_NOTICE("\The [src] goes quiet."),SPAN_NOTICE("A motor noise cuts out."), runemessage = "goes quiet")
generator_state = GEN_OFF
/obj/item/gun/magnetic/matfed/phoronbore/special_check(mob/user)
if(!winding)
winding = TRUE
if(do_after(user, 1 SECOND, src) && ..()) // Super after do_after, due to clumsy check force-firing.
winding = FALSE
return TRUE
winding = FALSE
return FALSE
/obj/item/gun/magnetic/matfed/phoronbore/loaded
cell = /obj/item/cell/apc
capacitor = /obj/item/stock_parts/capacitor
@@ -171,7 +171,7 @@
penetrating = 0
check_armour = "melee"
irradiate = 20
range = 6
range = 3
hud_state = "plasma_rifle_blast"
/obj/item/projectile/bullet/magnetic/bore/Initialize(loc, range_mod) // i'm gonna be real honest i dunno how this works but it does