[MIRROR] Adds more bitrunning antagonists + fixes (READY) [MDB IGNORE] (#25054)

* Adds more bitrunning antagonists + fixes (READY)

* Update role_preferences.dm

* Update poll_ignore.dm

* Update poll_ignore.dm

* Update cyber_police.dm

---------

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-11-17 00:50:32 +01:00
committed by GitHub
parent 6c11290c8e
commit 3238023f73
76 changed files with 2806 additions and 8479 deletions
+36 -24
View File
@@ -5,7 +5,7 @@
desc = "A machine used by the quantum server. Quantum code converges here, materializing decrypted assets from the virtual abyss."
icon = 'icons/obj/machines/bitrunning.dmi'
icon_state = "byteforge"
obj_flags = BLOCKS_CONSTRUCTION
obj_flags = BLOCKS_CONSTRUCTION | CAN_BE_HIT
/// Idle particles
var/mutable_appearance/byteforge_particles
@@ -17,7 +17,6 @@
/obj/machinery/byteforge/LateInitialize()
. = ..()
byteforge_particles = mutable_appearance(initial(icon), "on_particles", ABOVE_MOB_LAYER)
setup_particles()
/obj/machinery/byteforge/update_appearance(updates)
@@ -25,31 +24,44 @@
setup_particles()
/// Adds the particle overlays to the byteforge
/obj/machinery/byteforge/proc/setup_particles()
cut_overlays()
if(is_operational)
add_overlay(byteforge_particles)
/// Begins spawning the crate - lights, overlays, etc
/obj/machinery/byteforge/proc/start_to_spawn(obj/structure/closet/crate/secure/bitrunning/encrypted/cache)
addtimer(CALLBACK(src, PROC_REF(spawn_crate), cache), 1 SECONDS, TIMER_UNIQUE|TIMER_OVERRIDE|TIMER_STOPPABLE)
var/mutable_appearance/lighting = mutable_appearance(initial(icon), "on_overlay")
flick_overlay_view(lighting, 1 SECONDS)
set_light(l_range = 2, l_power = 1.5, l_color = LIGHT_COLOR_BABY_BLUE, l_on = TRUE)
/// Sparks, moves the crate to the location
/obj/machinery/byteforge/proc/spawn_crate(obj/structure/closet/crate/secure/bitrunning/encrypted/cache)
if(QDELETED(cache))
return
/// Does some sparks after it's done
/obj/machinery/byteforge/proc/flash(atom/movable/thing)
playsound(src, 'sound/magic/blink.ogg', 50, TRUE)
var/datum/effect_system/spark_spread/quantum/sparks = new()
sparks.set_up(5, 1, loc)
sparks.start()
cache.forceMove(loc)
set_light(l_on = FALSE)
/// Forge begins to process
/obj/machinery/byteforge/proc/flicker(angry = FALSE)
var/mutable_appearance/lighting = mutable_appearance(initial(icon), "on_overlay[angry ? "_angry" : ""]")
flick_overlay_view(lighting, 1 SECONDS)
set_light(l_range = 2, l_power = 1.5, l_color = angry ? LIGHT_COLOR_BUBBLEGUM : LIGHT_COLOR_BABY_BLUE, l_on = TRUE)
/// Adds the particle overlays to the byteforge
/obj/machinery/byteforge/proc/setup_particles(angry = FALSE)
cut_overlay(byteforge_particles)
byteforge_particles = mutable_appearance(initial(icon), "on_particles[angry ? "_angry" : ""]", ABOVE_MOB_LAYER)
if(is_operational)
add_overlay(byteforge_particles)
/// Forge is done processing
/obj/machinery/byteforge/proc/spawn_cache(obj/cache)
if(QDELETED(cache))
return
flash()
cache.forceMove(loc)
/// Timed flash
/obj/machinery/byteforge/proc/start_to_spawn(obj/cache)
flicker()
addtimer(CALLBACK(src, PROC_REF(spawn_cache), cache), 1 SECONDS, TIMER_UNIQUE|TIMER_OVERRIDE|TIMER_STOPPABLE)