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

skybulge

The action button the spear gives, usable once a minute.

Vars

gave_pass_flagsboolean we set every time we jump, to know if we should take away the passflags we give, so we don't give/take when they have it from other sources (since we don't have traits, we have no way to tell which pass flags they get from what source.)
jump_cooldown_timeCooldown time between jumps.
jump_timerRef to the addtimer we have between jumping up and falling down, used to cancel early if you're incapacitated mid-jump.

Procs

jump_upSends the owner up in the air and calls them back down, calling land() for aftereffects.
land
on_attack_during_jumpCalled when the person holding us is trying to attack something mid-jump. You're technically in mid-air, so block any attempts at getting extra hits in.

Var Details

gave_pass_flags

boolean we set every time we jump, to know if we should take away the passflags we give, so we don't give/take when they have it from other sources (since we don't have traits, we have no way to tell which pass flags they get from what source.)

jump_cooldown_time

Cooldown time between jumps.

jump_timer

Ref to the addtimer we have between jumping up and falling down, used to cancel early if you're incapacitated mid-jump.

Proc Details

jump_up

Sends the owner up in the air and calls them back down, calling land() for aftereffects.

land

land()

Called by jump_up, this is the post-jump effects, damaging objects and mobs it lands on. Args: do_effects - Whether we'll do the attacking effects of the land (damaging mobs & sound), we set this to false if we were forced out of the jump, they lost their ability to do the hit. mob_doing_effects - This is who we use for aftereffects, passing the mob using the ability, with owner as fallback. ourselves.

on_attack_during_jump

Called when the person holding us is trying to attack something mid-jump. You're technically in mid-air, so block any attempts at getting extra hits in.