landslide

Vars | |
ability_active | Whether this ability is currently active or not. |
---|---|
current_charges | The amount of charges we currently have. |
maximum_charges | The maximum amount of charges we can have. |
Procs | |
change_maximum_charges | Changes the maximum amount of charges the ability can have. This will also adjust the current amount of charges to account for the new difference, be it positive or negative. |
do_charge | Moves the user in the specified direction. This simulates movement by using step() and repeatedly calling itself. Will repeatedly check a 3x1 rectangle in front of the user, applying its effects to valid targets and stopping early if the path is blocked. |
end_charge | Ends the charge. |
enhanced_do_charge | Moves the user in the specified direction. This simulates movement by using step() and repeatedly calling itself. Will repeatedly check a 3x1 rectangle in front of the user, applying its effects to valid targets and stopping early if the path is blocked. |
get_affected_turfs | Gets a list of the turfs affected by this ability, based on direction and range. |
hit_living | Applies several effects to a living target. |
hit_object | Attempts to deconstruct the object in question if possible. |
Var Details
ability_active

Whether this ability is currently active or not.
current_charges

The amount of charges we currently have.
maximum_charges

The maximum amount of charges we can have.
Proc Details
change_maximum_charges
Changes the maximum amount of charges the ability can have. This will also adjust the current amount of charges to account for the new difference, be it positive or negative.
- amount: The new amount of maximum charges.
do_charge
Moves the user in the specified direction. This simulates movement by using step() and repeatedly calling itself. Will repeatedly check a 3x1 rectangle in front of the user, applying its effects to valid targets and stopping early if the path is blocked.
- owner_turf: The turf where the owner is.
- direction: The direction to move in.
- damage: The damage we will deal to valid targets.
- which_step: Used to determine the initial positioning of visual effects.
end_charge
Ends the charge.
- reason: If specified, determines the reason why the charge ended, and does the respective balloon alert. Leave empty for no reason.
enhanced_do_charge
Moves the user in the specified direction. This simulates movement by using step() and repeatedly calling itself. Will repeatedly check a 3x1 rectangle in front of the user, applying its effects to valid targets and stopping early if the path is blocked.
- direction: The direction to move in.
- damage: The damage we will deal to valid targets.
- speed: The speed at which we move. This is reduced when we're nearing our destination, to simulate a slow-down effect.
- steps_to_take: The amount of steps needed to reach our destination. This is used to determine when to end the charge,
get_affected_turfs
Gets a list of the turfs affected by this ability, based on direction and range.
- origin_turf: The origin turf from which to start checking.
- direction: The direction to check in.
- range: The range in tiles to limit our checks to.
hit_living
Applies several effects to a living target.
- living_target: The targeted living mob.
- damage: The damage inflicted by related effects.
hit_object
Attempts to deconstruct the object in question if possible.
- object_target: The targeted object.