mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
Merge branch 'master' into prepare_stuff_for_second_week
This commit is contained in:
@@ -13,11 +13,9 @@
|
||||
var/open = FALSE
|
||||
var/power_output = 1
|
||||
has_special_power_checks = TRUE
|
||||
var/datum/looping_sound/generator/soundloop
|
||||
|
||||
/obj/machinery/power/port_gen/Initialize()
|
||||
. = ..()
|
||||
soundloop = new(list(src), active)
|
||||
|
||||
/obj/machinery/power/port_gen/proc/IsBroken()
|
||||
return (stat & (BROKEN|EMPED))
|
||||
@@ -51,11 +49,9 @@
|
||||
/obj/machinery/power/port_gen/attack_hand(mob/user)
|
||||
if(..())
|
||||
update_icon()
|
||||
soundloop.stop()
|
||||
return
|
||||
if(!anchored)
|
||||
update_icon()
|
||||
soundloop.start()
|
||||
return
|
||||
|
||||
/obj/machinery/power/port_gen/update_icon()
|
||||
|
||||
Reference in New Issue
Block a user