Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/flock

manages and holds information for a flock

Vars

achievementslist of strings that lets flock record achievements for structure unlocks
active_namesassociative list of used names (for traces, drones, and bits) to true values
annotation_imgsStatic cache of annotation images
annotationsAssociative list of objects to an associative list of their annotation names to images
current_egg_costThe current cost of laying a flockdrone egg, automatically updated when drones are added and removed
deadAre we the memory of a dead flockmind?
flockmind_mindStore the mind of the current flockmind
free_tracesnumber of zero compute flocktraces the flock has
last_relayThe last relay placed, in case admin intervention or respawns somehow.
max_trace_countmax number of flocktraces the flock can support
quietDo we broadcast system announcements?
relay_allowedCan this flock realize the relay?
relay_finishedRelay has exploded. Game over!
relay_in_progressRelay is in the process of being made real, gibs and all
relay_stageIf we can, how far are we to transmitting the Signal?
time_leftHow long until the last placed relay transmits the Signal
trace_mindsStore a list of all minds who have been flocktraces of this flock at some point, indexed by name
unitsStores associative lists of type => list(units) - do not edit directly, use removeDrone() and registerUnit()

Procs

achieveUnlock an achievement (string) if it isn't already unlocked
addAnnotationAdd a named annotation
build_annotation_imgsInit annotation images to copy
getAnnotationsproc to get the indexed list of annotations on a particular mob
hasAchievedUnlock an achievement (string) if it isn't already unlocked
notifyRelockStructureThis function only notifies the flock of the relock, actual unlock logic is handled in the datum
notifyUnlockStructureThis function only notifies the flock of the unlock, actual unlock logic is handled in the datum
perishif real is FALSE then perish will not deallocate needed lists (used for pity respawn)
relay_processProcess to check what to do with the relay based off compute/tiles, specifically for before placement
removeAnnotationRemove a named annotation
toggleAnnotationToggle a named annotation
update_computesUpdate the compute values for all flocktraces and the flockmind
update_stageGet the new stage of the relay. Return if the state has changed.
update_tilesUpdate the tile count values for all flocktraces and the flockmind

Var Details

achievements

list of strings that lets flock record achievements for structure unlocks

active_names

associative list of used names (for traces, drones, and bits) to true values

annotation_imgs

Static cache of annotation images

annotations

Associative list of objects to an associative list of their annotation names to images

current_egg_cost

The current cost of laying a flockdrone egg, automatically updated when drones are added and removed

dead

Are we the memory of a dead flockmind?

flockmind_mind

Store the mind of the current flockmind

free_traces

number of zero compute flocktraces the flock has

last_relay

The last relay placed, in case admin intervention or respawns somehow.

max_trace_count

max number of flocktraces the flock can support

quiet

Do we broadcast system announcements?

relay_allowed

Can this flock realize the relay?

relay_finished

Relay has exploded. Game over!

relay_in_progress

Relay is in the process of being made real, gibs and all

relay_stage

If we can, how far are we to transmitting the Signal?

time_left

How long until the last placed relay transmits the Signal

trace_minds

Store a list of all minds who have been flocktraces of this flock at some point, indexed by name

units

Stores associative lists of type => list(units) - do not edit directly, use removeDrone() and registerUnit()

Proc Details

achieve

Unlock an achievement (string) if it isn't already unlocked

addAnnotation

Add a named annotation

build_annotation_imgs

Init annotation images to copy

getAnnotations

proc to get the indexed list of annotations on a particular mob

hasAchieved

Unlock an achievement (string) if it isn't already unlocked

notifyRelockStructure

This function only notifies the flock of the relock, actual unlock logic is handled in the datum

notifyUnlockStructure

This function only notifies the flock of the unlock, actual unlock logic is handled in the datum

perish

if real is FALSE then perish will not deallocate needed lists (used for pity respawn)

relay_process

Process to check what to do with the relay based off compute/tiles, specifically for before placement

removeAnnotation

Remove a named annotation

toggleAnnotation

Toggle a named annotation

update_computes

Update the compute values for all flocktraces and the flockmind

update_stage

Get the new stage of the relay. Return if the state has changed.

update_tiles

Update the tile count values for all flocktraces and the flockmind