vampire 
Vars | |
| cloak_alpha | The alpha value currently imposed by the vampire cloak, if any. |
|---|---|
| drained_humans | List of victims' REF IDs we have drained and how much blood from each |
| draining | Who the vampire is draining of blood |
| has_lair | Did the vampire build a lair? |
| iscloaking | Handles the vampire cloak toggle |
| nullified | Null rods and holy water make abilities cost more |
| powers | List of available active spell actions and passives |
| spent_upgrade_tiers | Upgrade tiers that have been consumed and should not be granted again. |
| subclass | What vampire subclass the vampire is. |
| thrall_refs | Weak references to the thralls bound to this vampire. |
| upgrade_tiers | Powers that all vampires unlock and at what blood total level they unlock them |
Procs | |
| adjust_blood | Adds blood, respecting the per-victim limit, and returns the amount actually gained. |
| bloodsuck_tick | Performs one bite's drain and rewards. Returns the amount physically drained, including from corpses. |
| can_bloodsuck | Shared requirements for starting a bite, maintaining it during do_after, and draining a tick. Dead victims are valid: only the usable-blood reward requires a living victim. |
| can_gain_usable_blood_from | Eligibility for usable blood, independent of whether we can physically bite the victim. |
| handle_vampire | Handles effects which need to be checked every life tick. |
| on_fire_stacks_updated | Fire consumes blood while it can still harm the vampire, matching the fire handler's protection threshold. |
| on_life | Runs the vampire's persistent effects alongside tg's normal living-mob life processing. |
Var Details
cloak_alpha 
The alpha value currently imposed by the vampire cloak, if any.
drained_humans 
List of victims' REF IDs we have drained and how much blood from each
draining 
Who the vampire is draining of blood
has_lair 
Did the vampire build a lair?
iscloaking 
Handles the vampire cloak toggle
nullified 
Null rods and holy water make abilities cost more
powers 
List of available active spell actions and passives
spent_upgrade_tiers 
Upgrade tiers that have been consumed and should not be granted again.
subclass 
What vampire subclass the vampire is.
thrall_refs 
Weak references to the thralls bound to this vampire.
upgrade_tiers 
Powers that all vampires unlock and at what blood total level they unlock them
Proc Details
adjust_blood
Adds blood, respecting the per-victim limit, and returns the amount actually gained.
bloodsuck_tick
Performs one bite's drain and rewards. Returns the amount physically drained, including from corpses.
can_bloodsuck
Shared requirements for starting a bite, maintaining it during do_after, and draining a tick. Dead victims are valid: only the usable-blood reward requires a living victim.
can_gain_usable_blood_from
Eligibility for usable blood, independent of whether we can physically bite the victim.
handle_vampire
Handles effects which need to be checked every life tick.
on_fire_stacks_updated
Fire consumes blood while it can still harm the vampire, matching the fire handler's protection threshold.
on_life
Runs the vampire's persistent effects alongside tg's normal living-mob life processing.