/tg/ Station 13 - Modules - TypesVar Details - Proc Details

mob_chain

Component allowing you to create a linked list of mobs. These mobs will follow each other and attack as one, as well as sharing damage taken.

Vars

backMob behind us in the chain
frontMob in front of us in the chain
pass_damage_backIf true then damage we take is passed backwards along the line
vary_icon_stateIf true then we will set our icon state based on line position

Procs

on_adjust_damageOn damage or heal, affect our furthest segment
on_adjust_staminaOn gain or lose stamina, adjust our tail too
on_attackTell our tail to attack too
on_contractedCalled when our tail gets pulled up to our body
on_deathIf we die so does the guy behind us, then stop following the leader
on_deletionIf we get deleted so does the guy behind us
on_gained_tailCalled when something sets us as ITS front
on_glide_size_changedMaintain glide size backwards
on_limb_damageSpecial handling for if damage is delegated to a mob's limbs instead of its overall damage
on_lost_tailCalled when our tail loses its chain component
on_movedPull our tail behind us when we move
on_pulledDo not allow someone to be pulled out of the chain
on_update_icon_stateUpdate our visuals based on if we have someone in front and behind
update_mob_appearanceUpdate how we look

Var Details

back

Mob behind us in the chain

front

Mob in front of us in the chain

pass_damage_back

If true then damage we take is passed backwards along the line

vary_icon_state

If true then we will set our icon state based on line position

Proc Details

on_adjust_damage

On damage or heal, affect our furthest segment

on_adjust_stamina

On gain or lose stamina, adjust our tail too

on_attack

Tell our tail to attack too

on_contracted

Called when our tail gets pulled up to our body

on_death

If we die so does the guy behind us, then stop following the leader

on_deletion

If we get deleted so does the guy behind us

on_gained_tail

Called when something sets us as ITS front

on_glide_size_changed

Maintain glide size backwards

on_limb_damage

Special handling for if damage is delegated to a mob's limbs instead of its overall damage

on_lost_tail

Called when our tail loses its chain component

on_moved

Pull our tail behind us when we move

on_pulled

Do not allow someone to be pulled out of the chain

on_update_icon_state

Update our visuals based on if we have someone in front and behind

update_mob_appearance

Update how we look