Files
27704cc8d2 The Great Unstationing (#20269)
Replaces many references of station with SSatlas variables using
station_name().

Touches alot of things in the process (mostly moving some aspects to
New() to allow for calling of proc/variable.)

---------

Signed-off-by: Ben <91219575+Ben10083@users.noreply.github.com>
Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
2024-12-24 12:42:53 +00:00

19 lines
581 B
Plaintext

/proc/Easter_Game_Start()
Random_Egg()
//Random egg
/proc/Random_Egg()
to_world("<h3>There is a golden egg hidden somewhere on the [station_name(TRUE)]...</h3>")
var/list/Floorlist = list()
for(var/turf/T in world)
var/turf/simulated/floor/F = T
if(istype(F) && F.contents)
Floorlist += T
var/turf/simulated/floor/F = Floorlist[rand(1,Floorlist.len)]
Floorlist = null
var/obj/structure/closet/C = locate(/obj/structure/closet) in F
if (C)
new /obj/item/reagent_containers/food/snacks/goldenegg(C)
else
new /obj/item/reagent_containers/food/snacks/goldenegg(F)