mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
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>
19 lines
581 B
Plaintext
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)
|