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

jousting

damage or heal overlord ##jousting

Given to items, it allows you to charge into people with additional damage and potential knockdown by being buckled onto something. If the other person is also jousting, can knock eachother down.

Vars

current_directionThe current direction of the jousting.
current_holderThe current person holding parent.
current_tile_chargeHow many tiles we've charged up thus far
damage_boost_per_tileHow much of an increase in damage is achieved every tile moved during jousting.
knockdown_chance_per_tileThe boosted chances of a knockdown occuring while jousting.
knockdown_timeHow much of an increase in knockdown is achieved every tile moved during jousting, if it knocks down.
max_tile_chargeThe max amount of tiles before you can joust someone.
min_tile_chargeThe min amount of tiles before you can joust someone.

Procs

mob_moveCalled when a mob moves. Handles checking their direction, changing it if they turned, and increments how many tiles they've been charging for. Lastly, refreshes their charge reset timer, giving them a new one instead.
on_equipCalled when a mob equips the spear, registers them as the holder and checks their signals for moving.
on_successful_attackPerforms the actual attack, handling damage/knockdown depending on how far you've jousted. We deduct the minimum tile charge from the current tile charge to get what will actually be buffed So your charge will only get benefits from each extra tile after the minimum (and before the maximum).
reset_chargereset charge

Var Details

current_direction

The current direction of the jousting.

current_holder

The current person holding parent.

current_tile_charge

How many tiles we've charged up thus far

damage_boost_per_tile

How much of an increase in damage is achieved every tile moved during jousting.

knockdown_chance_per_tile

The boosted chances of a knockdown occuring while jousting.

knockdown_time

How much of an increase in knockdown is achieved every tile moved during jousting, if it knocks down.

max_tile_charge

The max amount of tiles before you can joust someone.

min_tile_charge

The min amount of tiles before you can joust someone.

Proc Details

mob_move

Called when a mob moves. Handles checking their direction, changing it if they turned, and increments how many tiles they've been charging for. Lastly, refreshes their charge reset timer, giving them a new one instead.

on_equip

Called when a mob equips the spear, registers them as the holder and checks their signals for moving.

on_successful_attack

Performs the actual attack, handling damage/knockdown depending on how far you've jousted. We deduct the minimum tile charge from the current tile charge to get what will actually be buffed So your charge will only get benefits from each extra tile after the minimum (and before the maximum).

reset_charge

reset charge

Resets their direction and tile charge back to their initial values. This is used when someone is no longer jousting and it should cleanup.