mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-11 16:08:32 +01:00
Merge pull request #1241 from ArchieBeepBoop/grandiose
[s] Microwave Easter Egg
This commit is contained in:
@@ -46,6 +46,16 @@
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/datum/looping_sound/microwave_easteregg
|
||||
start_sound = 'sound/machines/microwave/microwave-start.ogg'
|
||||
start_length = 10
|
||||
mid_sounds = list('sound/machines/microwave/microwave-eastereggmid1.ogg'=10, 'sound/machines/microwave/microwave-eastereggmid2.ogg'=1)
|
||||
mid_length = 10
|
||||
end_sound = 'sound/machines/microwave/microwave-eastereggend.ogg'
|
||||
volume = 100
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/datum/looping_sound/grill
|
||||
mid_length = 2
|
||||
mid_sounds = list('sound/machines/fryer/deep_fryer_1.ogg' = 1, 'sound/machines/fryer/deep_fryer_2.ogg' = 1)
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
var/max_n_of_items = 10
|
||||
var/efficiency = 0
|
||||
var/datum/looping_sound/microwave/soundloop
|
||||
var/datum/looping_sound/microwave_easteregg/eastereggloop
|
||||
var/easteregg = FALSE
|
||||
var/list/ingredients = list() // may only contain /atom/movables
|
||||
|
||||
var/static/radial_examine = image(icon = 'icons/mob/radial.dmi', icon_state = "radial_examine")
|
||||
@@ -35,6 +37,7 @@
|
||||
wires = new /datum/wires/microwave(src)
|
||||
create_reagents(100)
|
||||
soundloop = new(list(src), FALSE)
|
||||
eastereggloop = new(list(src), FALSE)
|
||||
|
||||
/obj/machinery/microwave/Destroy()
|
||||
eject()
|
||||
@@ -257,7 +260,12 @@
|
||||
operating = TRUE
|
||||
|
||||
set_light(1.5)
|
||||
soundloop.start()
|
||||
switch(rand(1,500))
|
||||
if(1)
|
||||
eastereggloop.start()
|
||||
easteregg = TRUE
|
||||
if(2 to 500)
|
||||
soundloop.start()
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/microwave/proc/spark()
|
||||
@@ -348,9 +356,13 @@
|
||||
|
||||
/obj/machinery/microwave/proc/after_finish_loop()
|
||||
set_light(0)
|
||||
soundloop.stop()
|
||||
if(easteregg)
|
||||
eastereggloop.stop()
|
||||
easteregg = FALSE
|
||||
else
|
||||
soundloop.stop()
|
||||
update_icon()
|
||||
|
||||
#undef MICROWAVE_NORMAL
|
||||
#undef MICROWAVE_MUCK
|
||||
#undef MICROWAVE_PRE
|
||||
#undef MICROWAVE_PRE
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user