jousting
##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_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. |
Procs | |
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 |
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.