Space Station 13 - Modules - TypesVar Details - Proc Details

mindflayer

Vars

ability_listA list of all powers and passives mindflayers can buy
can_pick_capstoneIf the mindflayer can still pick a stage 4 ability
category_stageA list of the categories and their associated stages of the power
drain_amountThe base brain damage dealt per tick of the drain
drain_multiplierHow fast the flayer's touch drains
drained_humansList for keeping track of who has already been drained
harvestingThe current person being drained
has_notifiedHave we notified that our victim does not give swarms from draining
powersThe list of all purchased spell and passive objects
total_swarms_gatheredThe total points of brain damage the flayer has harvested, only used for logging purposes.
usable_swarmsThe current amount of swarms the mind flayer has access to purchase with

Procs

add_abilityAdds an ability to a mindflayer if they don't already have it, upgrades it if they do. Arguments:
add_passiveAdds a passive to a mindflayer if they don't already have it, upgrades it if they do. Arguments:
check_special_stage_abilityChecks if we are eligible to get a special ability for reaching the third stage in a given subclass
check_valid_harvestChecks for any reason that you should not be able to drain someone for. Returns either true or false, if the harvest will work or not.
get_passives_of_typeGets a list of mind flayer passive typepaths based on the passed in passive_type.
get_spells_of_typeGets a list of mind flayer spell typepaths based on the passed in spell_type. (Thanks for the code SteelSlayer)
handle_harvestBegins draining the brain of H, gains swarms equal to the amount of brain damage dealt per tick. Upgrades can increase the amount of damage per tick.
handle_mindflayerThis is the proc that gets called every tick of life(), use this for updating something that should update every few seconds
has_passiveChecks if a mindflayer has a given passive already
has_spellChecks if a mindflayer has a given spell already

Var Details

ability_list

A list of all powers and passives mindflayers can buy

can_pick_capstone

If the mindflayer can still pick a stage 4 ability

category_stage

A list of the categories and their associated stages of the power

drain_amount

The base brain damage dealt per tick of the drain

drain_multiplier

How fast the flayer's touch drains

drained_humans

List for keeping track of who has already been drained

harvesting

The current person being drained

has_notified

Have we notified that our victim does not give swarms from draining

powers

The list of all purchased spell and passive objects

total_swarms_gathered

The total points of brain damage the flayer has harvested, only used for logging purposes.

usable_swarms

The current amount of swarms the mind flayer has access to purchase with

Proc Details

add_ability

Adds an ability to a mindflayer if they don't already have it, upgrades it if they do. Arguments:

add_passive

Adds a passive to a mindflayer if they don't already have it, upgrades it if they do. Arguments:

check_special_stage_ability

Checks if we are eligible to get a special ability for reaching the third stage in a given subclass

check_valid_harvest

Checks for any reason that you should not be able to drain someone for. Returns either true or false, if the harvest will work or not.

get_passives_of_type

Gets a list of mind flayer passive typepaths based on the passed in passive_type.

Arguments:

get_spells_of_type

Gets a list of mind flayer spell typepaths based on the passed in spell_type. (Thanks for the code SteelSlayer)

Arguments:

handle_harvest

Begins draining the brain of H, gains swarms equal to the amount of brain damage dealt per tick. Upgrades can increase the amount of damage per tick.

handle_mindflayer

This is the proc that gets called every tick of life(), use this for updating something that should update every few seconds

has_passive

Checks if a mindflayer has a given passive already

has_spell

Checks if a mindflayer has a given spell already