mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user