Daedalus Dock - Modules - TypesVar Details - Proc Details

flock

Vars

active_pingsA k:V list of client : image, see ping().
bandwidthThe total amount of computational power available, before whats being used.
bitsThe bits
current_egg_costThe current substrate cost to lay an egg.
dronesThe drones
enemiesA k:v list of mob : details, contains enemy mobs.
flock_game_statusFlock status, won, lost, etc
ignoresA k:V list of mob : TRUE, where mob is mobs that ai will ignore.
marked_for_conversionA k:V list of atoms the Overmind has marked for conversion, where the value is TRUE
marked_for_deconstructionA k:v list of atoms the Overmind has marked for deconstruction, where the value is TRUE
max_tracesThe maximum amount of traces allowed.
notice_imagesCache of images used by notices.
overmindThe master of the flock
structuresEvery structure we've built.
tracesThe traces
turf_reservationsA k:V list of reserved_turf = TRUE.
turf_reservations_by_flockA k:V list of flock mobs to their reserved turf.
ui_tabCurrent UI tab, saves on data sending.
used_bandwidthThe computational power being used.

Procs

add_bandwidth_influenceWrapper for handling bandwidth alongside used_bandwidth for new mobs
add_ignoreAdds a mob to the ignored list.
add_noticePlaces a flock notice on an atom. See flock_defines.dm
add_ping_imageHelper for adding a ping image to a client's screen and handling clean up.
add_structureAdd a structure to the flock.
add_unitAdds a unit to the flock and sets up all of the tracking.
available_bandwidthReturns the amount of available bandwidth. Can return negative if over budget.
can_affordReturns TRUE if the flock has the required bandwidth
claim_turfClaim it for the flock, optionally converting it. Converting should only be avoided if the turf is already a flockturf.
claimed_turf_changeCalled when a turf owned by the flock changes.
cleanup_ping_imagesCalled by add_ping_image via timer callback.
consider_game_overEnds the flock if it is unable to continue spreading.
create_hud_imagesInstantiates all of the flock notice image singletons.
create_structureWrapper for spawning a tealprint, used by Create Structure
deconstruct_mark_deletedCalled when an atom marked for deconstruction is qdeleted.
free_structureRemove a structure from the flock.
free_turfFree a turf from reservation, allowing AI to target it again. override_turf can be given to lookup the user if there isnt a user in this context.
free_unitRemoves a unit from the flock.
game_overKills off the flock. Pass completely_destroy = FALSE to allow the overmind to live on.
get_egg_elligibility_costReturns the substract requirement to be able to spend substrate on an egg. See above proc.
get_priority_turfsReturns a list of turfs marked for conversion, minus turfs that drones have already reserved.
get_total_health_percentageReturns the total percentage of the sum of every mob's health and max health.
get_total_substrateReturns the total amount of substrate by all flock mobs.
is_mob_enemyReturns TRUE if the given mob is an enemy.
is_mob_ignoredReturns TRUE if the given mob is ignored by the flock.
is_on_safe_zChecks to see if the given atom is allowed to be there. Has lots of behavior like making drones dormant and snapping traces back to the station.
is_turf_freeReturns TRUE if the given turf is not reserved.
on_client_goneCalled when a client holding a ping image disconnects.
on_enemy_goneCalled when an enemy atom is deleted.
on_ignore_goneCalled when an ignored mob is deleted.
on_unit_deathCalled when a unit under the flock's control dies.
pingPings a location, alerting all flocktraces.
refresh_unlockablesRefreshes the status of every unlockable.
register_overmindSets the flock's overmind
remove_bandwidth_influenceWrapper for handling bandwidth alongside used_bandwidth for mobs leaving the flock
remove_enemyRemoves an atom from the enemies list.
remove_ignoreRemoves a mob from the ignore list.
remove_noticeRemoves a flock notice from an atom.
reserve_turfReserves a turf, making AI ignore it for the purposes of targetting.
reserved_turf_changeCalled when a turf reserved by a flock mob changes.
set_flock_game_statusSetter for flock_game_status.
startCalled after everything is setup, and clients are in control of their mobs.
stop_tracking_turfStop tracking a turf that is in our claimed walls or claimed floors lists.
toggle_deconstruction_mark(un)Mark a flock atom for deconstruction. Returns FALSE if it cannot be deconstructed.
total_bandwidthReturns the total amount of bandwidth, including bandwidth being used.
update_egg_costUpdates the substrate cost of an egg given the current status of the flock.
update_enemyUpdates a mob's enemy status. If they are already an enemy, their entry will be updated with new information.
update_relay_hudsUpdate the relay status huds for all flock traces and the overmind.

Var Details

active_pings

A k:V list of client : image, see ping().

bandwidth

The total amount of computational power available, before whats being used.

bits

The bits

current_egg_cost

The current substrate cost to lay an egg.

drones

The drones

enemies

A k:v list of mob : details, contains enemy mobs.

flock_game_status

Flock status, won, lost, etc

ignores

A k:V list of mob : TRUE, where mob is mobs that ai will ignore.

marked_for_conversion

A k:V list of atoms the Overmind has marked for conversion, where the value is TRUE

marked_for_deconstruction

A k:v list of atoms the Overmind has marked for deconstruction, where the value is TRUE

max_traces

The maximum amount of traces allowed.

notice_images

Cache of images used by notices.

overmind

The master of the flock

structures

Every structure we've built.

traces

The traces

turf_reservations

A k:V list of reserved_turf = TRUE.

turf_reservations_by_flock

A k:V list of flock mobs to their reserved turf.

ui_tab

Current UI tab, saves on data sending.

used_bandwidth

The computational power being used.

Proc Details

add_bandwidth_influence

Wrapper for handling bandwidth alongside used_bandwidth for new mobs

add_ignore

Adds a mob to the ignored list.

add_notice

Places a flock notice on an atom. See flock_defines.dm

add_ping_image

Helper for adding a ping image to a client's screen and handling clean up.

add_structure

Add a structure to the flock.

add_unit

Adds a unit to the flock and sets up all of the tracking.

available_bandwidth

Returns the amount of available bandwidth. Can return negative if over budget.

can_afford

Returns TRUE if the flock has the required bandwidth

claim_turf

Claim it for the flock, optionally converting it. Converting should only be avoided if the turf is already a flockturf.

claimed_turf_change

Called when a turf owned by the flock changes.

cleanup_ping_images

Called by add_ping_image via timer callback.

consider_game_over

Ends the flock if it is unable to continue spreading.

create_hud_images

Instantiates all of the flock notice image singletons.

create_structure

Wrapper for spawning a tealprint, used by Create Structure

deconstruct_mark_deleted

Called when an atom marked for deconstruction is qdeleted.

free_structure

Remove a structure from the flock.

free_turf

Free a turf from reservation, allowing AI to target it again. override_turf can be given to lookup the user if there isnt a user in this context.

free_unit

Removes a unit from the flock.

game_over

Kills off the flock. Pass completely_destroy = FALSE to allow the overmind to live on.

get_egg_elligibility_cost

Returns the substract requirement to be able to spend substrate on an egg. See above proc.

get_priority_turfs

Returns a list of turfs marked for conversion, minus turfs that drones have already reserved.

get_total_health_percentage

Returns the total percentage of the sum of every mob's health and max health.

get_total_substrate

Returns the total amount of substrate by all flock mobs.

is_mob_enemy

Returns TRUE if the given mob is an enemy.

is_mob_ignored

Returns TRUE if the given mob is ignored by the flock.

is_on_safe_z

Checks to see if the given atom is allowed to be there. Has lots of behavior like making drones dormant and snapping traces back to the station.

is_turf_free

Returns TRUE if the given turf is not reserved.

on_client_gone

Called when a client holding a ping image disconnects.

on_enemy_gone

Called when an enemy atom is deleted.

on_ignore_gone

Called when an ignored mob is deleted.

on_unit_death

Called when a unit under the flock's control dies.

ping

Pings a location, alerting all flocktraces.

refresh_unlockables

Refreshes the status of every unlockable.

register_overmind

Sets the flock's overmind

remove_bandwidth_influence

Wrapper for handling bandwidth alongside used_bandwidth for mobs leaving the flock

remove_enemy

Removes an atom from the enemies list.

remove_ignore

Removes a mob from the ignore list.

remove_notice

Removes a flock notice from an atom.

reserve_turf

Reserves a turf, making AI ignore it for the purposes of targetting.

reserved_turf_change

Called when a turf reserved by a flock mob changes.

set_flock_game_status

Setter for flock_game_status.

start

Called after everything is setup, and clients are in control of their mobs.

stop_tracking_turf

Stop tracking a turf that is in our claimed walls or claimed floors lists.

toggle_deconstruction_mark

(un)Mark a flock atom for deconstruction. Returns FALSE if it cannot be deconstructed.

total_bandwidth

Returns the total amount of bandwidth, including bandwidth being used.

update_egg_cost

Updates the substrate cost of an egg given the current status of the flock.

update_enemy

Updates a mob's enemy status. If they are already an enemy, their entry will be updated with new information.

update_relay_huds

Update the relay status huds for all flock traces and the overmind.