mindflayer
Vars | |
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 |
Procs | |
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 . |
get_spells_of_type | Gets a list of mind flayer spell typepaths based on the passed in spell_type . (Thanks for the code SteelSlayer) |
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 |
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:
- to_add - The spell datum you want to add to the flayer
- set_owner - The antagonist datum of the mindflayer you want to add the spell to
add_passive
Adds a passive to a mindflayer if they don't already have it, upgrades it if they do. Arguments:
- to_add - The spell datum you want to add to the flayer
- upgrade_type - optional argument if you need to communicate a define to the passive in question
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:
- passive_type - should be a define related to /datum/spell/flayer/passive_type.
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:
- spell_type - should be a define related to /datum/spell/flayer/power_type.
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
- Arguments: to_get - Some datum/mindflayer_passive to check if a mindflayer has
- Returns: The datum/mindflayer_passive if the mindflayer has the passive already, null otherwise
has_spell
Checks if a mindflayer has a given spell already
- Arguments: to_get - Some datum/spell/flayer to check if a mindflayer has
- Returns: The datum/spell/mindflayer if the mindflayer has the power already, null otherwise