Daedalus Dock - Modules - TypesDefine Details

code/__HELPERS/game.dm

CULT_POLL_WAITTime before being allowed to select a new cult leader again
GET_ERROR_ROOMReturns either the error landmark or the location of the room. Needless to say, if this is used, it means things have gone awry.
/proc/get_area_name Returns the name of the area the atom is in
/proc/cheap_hypotenuse Calculate the hypotenuse cheaply (this should be in maths.dm)
/proc/recursive_organ_check
/proc/try_move_adjacent Tries to move an atom to an adjacent turf, return TRUE if successful
/proc/get_mob_by_key Return the mob type that is being controlled by a ckey
/proc/considered_alive Returns true if the mob that a player is controlling is alive
/proc/considered_exiled Exiled check
/proc/considered_afk Checks if a player is considered AFK
/proc/screen_text Return an object with a new maptext (not currently in use)
/proc/remove_image_from_client Removes an image from a client's .images. Useful as a callback.
/proc/remove_images_from_clients Like remove_image_from_client, but will remove the image from a list of clients
/proc/flick_overlay Add an image to a list of clients and calls a proc to remove it after a duration
/proc/flick_overlay_view wrapper for flick_overlay(), flicks to everyone who can see the target atom
/proc/get_active_player_count Get active players who are playing in the round
/proc/show_candidate_poll_window Show the poll window to the candidate mobs
/proc/poll_ghost_candidates Wrapper to send all ghosts the poll to ask them if they want to be considered for a mob.
/proc/poll_candidates Calls the show_candidate_poll_window() to all eligible ghosts
/proc/poll_candidates_for_mob Returns a list of ghosts that are eligible to take over and wish to be considered for a mob.
/proc/poll_candidates_for_mobs Returns a list of ghosts that are eligible to take over and wish to be considered for a mob.
/proc/make_body Uses stripped down and bastardized code from respawn character
/proc/send_to_playing_players sends a whatever to all playing players; use instead of to_chat(world, where needed)
/proc/window_flash Flash the window of a player
/proc/recursive_loc_check Recursively checks if an item is inside a given type, even through layers of storage. Returns the atom if it finds it.
/proc/announce_arrival Send a message in common radio when a player arrives
/proc/find_obstruction_free_location Find an obstruction free turf that's within the range of the center. Can also condition on if it is of a certain area type.
/proc/power_fail Disable power in the station APCs
/proc/send_tip_of_the_round Sends a round tip to a target. If selected_tip is null, a random tip will be sent instead (5% chance of it being silly). Tips that starts with the @ character won't be html encoded. That's necessary for any tip containing markup tags, just make sure they don't also have html characters like <, > and ' which will be garbled.

Define Details

CULT_POLL_WAIT

Time before being allowed to select a new cult leader again

GET_ERROR_ROOM

Returns either the error landmark or the location of the room. Needless to say, if this is used, it means things have gone awry.