Code Readability - Machinery (#18153)

* machinery

* comment change as per suggestion

Co-authored-by: moxian <moxian@users.noreply.github.com>

* added always_gib var to recycler as per recomendation

Co-authored-by: moxian <moxian@users.noreply.github.com>
This commit is contained in:
KalevTait
2022-07-05 15:38:47 +02:00
committed by GitHub
co-authored by moxian
parent 52f3323760
commit bdf50ea894
43 changed files with 188 additions and 189 deletions
+8 -8
View File
@@ -10,20 +10,20 @@
damage_deflection = 10
var/id = null
var/range = 2 //this is roughly the size of brig cell
var/disable = 0
var/disable = FALSE
var/last_flash = 0 //Don't want it getting spammed like regular flashes
var/strength = 10 SECONDS //How weakened targets are when flashed.
var/base_state = "mflash"
anchored = 1
anchored = TRUE
/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored
name = "portable flasher"
desc = "A portable flashing device. Wrench to activate and deactivate. Cannot detect slow movements."
icon_state = "pflash1"
strength = 4
anchored = 0
anchored = FALSE
base_state = "pflash"
density = 1
density = TRUE
/obj/machinery/flasher/portable/ComponentInitialize()
. = ..()
@@ -114,8 +114,8 @@
icon = 'icons/obj/objects.dmi'
icon_state = "launcherbtt"
var/id = null
var/active = 0
anchored = 1.0
var/active = FALSE
anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 4
@@ -135,7 +135,7 @@
use_power(5)
active = 1
active = TRUE
icon_state = "launcheract"
for(var/obj/machinery/flasher/M in GLOB.machines)
@@ -146,4 +146,4 @@
sleep(50)
icon_state = "launcherbtt"
active = 0
active = FALSE