mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
aefec7cb2b
## About The Pull Request it's - conjunction of "it" and "is" its - possessive form of "it" grammar is hard, and there were a lot of places where "it's" was used where it shouldn't have been. i went and painstakingly searched the entire repository for these instances, spending a few hours on it. i completely ignored the changelog archive, and i may have missed some outliers. most player-facing ones should be corrected, though ## Why It's Good For The Game proper grammar is good ## Changelog 🆑 spellcheck: Numerous instances of "it's" have been properly replaced with "its" /🆑
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
/datum/action/cooldown/mob_cooldown/ground_slam
|
|
name = "Ground Slam"
|
|
button_icon = 'icons/mob/actions/actions_items.dmi'
|
|
button_icon_state = "sniper_zoom"
|
|
desc = "Slams the ground sending out a shockwave around you."
|
|
cooldown_time = 10 SECONDS
|
|
/// The range of the slam
|
|
var/range = 5
|
|
/// The delay before the shockwave expands its range
|
|
var/delay = 3
|
|
/// How far hit targets are thrown
|
|
var/throw_range = 8
|
|
/// Whether the target can move or not while the slam is occurring
|
|
var/can_move = FALSE
|
|
|
|
/datum/action/cooldown/mob_cooldown/ground_slam/Activate(atom/target_atom)
|
|
disable_cooldown_actions()
|
|
RegisterSignal(owner, COMSIG_MOVABLE_PRE_MOVE, PROC_REF(on_move), override = TRUE)
|
|
do_slam(target_atom)
|
|
UnregisterSignal(owner, COMSIG_MOVABLE_PRE_MOVE)
|
|
StartCooldown()
|
|
enable_cooldown_actions()
|
|
return TRUE
|
|
|
|
/// Slams the ground around the source throwing back enemies caught nearby, delay is for the radius increase
|
|
/datum/action/cooldown/mob_cooldown/ground_slam/proc/do_slam(atom/target)
|
|
wendigo_slam(owner, range, delay, throw_range)
|
|
|
|
/datum/action/cooldown/mob_cooldown/ground_slam/proc/on_move(atom/source, atom/new_loc)
|
|
SIGNAL_HANDLER
|
|
if(!can_move)
|
|
return COMPONENT_MOVABLE_BLOCK_PRE_MOVE
|