Fixes compile

This commit is contained in:
skull132
2020-06-07 12:01:47 +03:00
parent ca0632f583
commit 7e7da57149

View File

@@ -456,10 +456,10 @@
is_wieldable = TRUE is_wieldable = TRUE
firemodes = list( firemodes = list(
list(mode_name="2 second burst", burst=10, burst_delay = 1, fire_delay = 20), list(mode_name="2 second burst", can_autofire = FALSE, burst=10, burst_delay = 1, fire_delay = 20, burst_accuracy = null, dispersion = null),
list(mode_name="4 second burst", burst=20, burst_delay = 1, fire_delay = 40), list(mode_name="4 second burst", can_autofire = FALSE, burst=20, burst_delay = 1, fire_delay = 40, burst_accuracy = null, dispersion = null),
list(mode_name="6 second burst", burst=30, burst_delay = 1, fire_delay = 60), list(mode_name="6 second burst", can_autofire = FALSE, burst=30, burst_delay = 1, fire_delay = 60, burst_accuracy = null, dispersion = null),
list(mode_name="point-burst auto", can_autofire = TRUE, burst = 1, fire_delay = 1, burst_accuracy = list(0,-1,-1,-2,-2,-2,-3,-3), dispersion = list(1.0, 1.0, 1.0, 1.0, 1.2)) list(mode_name="point-burst auto", can_autofire = TRUE, burst = 1, burst_delay = null, fire_delay = 1, burst_accuracy = list(0,-1,-1,-2,-2,-2,-3,-3), dispersion = list(1.0, 1.0, 1.0, 1.0, 1.2))
) )
action_button_name = "Wield thermal drill" action_button_name = "Wield thermal drill"
@@ -467,8 +467,7 @@
needspin = FALSE needspin = FALSE
/obj/item/gun/energy/vaurca/thermaldrill/special_check(var/mob/user) /obj/item/gun/energy/vaurca/thermaldrill/special_check(var/mob/user)
var/datum/firemode/current_mode = firemodes[sel_mode] if(can_autofire)
if(current_mode.can_autofire)
return ..() return ..()
if(is_charging) if(is_charging)
to_chat(user, "<span class='danger'>\The [src] is already charging!</span>") to_chat(user, "<span class='danger'>\The [src] is already charging!</span>")
@@ -592,4 +591,4 @@
sel_mode = 1 sel_mode = 1
fire_delay = 20 fire_delay = 20
accuracy = 40 accuracy = 40
muzzle_flash = 10 muzzle_flash = 10