Skip to content

Commit

Permalink
probably fix some lints
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCastmer committed Jul 25, 2024
1 parent e9ded7c commit b87cf60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modular_dripstation/code/datums/component/tackle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@

///See if we can tackle or not. If we can, leap!
/datum/component/tackler/proc/checkTackle(mob/living/carbon/user, atom/clicked_atom, list/modifiers)

Check failure on line 71 in modular_dripstation/code/datums/component/tackle.dm

View workflow job for this annotation

GitHub Actions / Lints

/datum/component/tackler/proc/checkTackle sets SpacemanDMM_should_not_sleep but calls blocking proc /proc/stoplag
set waitfor = FALSE
SIGNAL_HANDLER

if(modifiers["middle"] && modifiers["alt"] && modifiers["shift"] && modifiers["ctrl"])
Expand Down Expand Up @@ -117,12 +116,15 @@
var/tackle_angle = get_angle(user, clicked_atom)
clicked_atom = get_turf_in_angle(tackle_angle, get_turf(user), min_distance)

user.Knockdown(base_knockdown, ignore_canstun = TRUE)
user.adjustStaminaLoss(stamina_cost)
userEffect(user, stamina_cost)
user.throw_at(clicked_atom, range, speed, user, FALSE)
addtimer(CALLBACK(src, PROC_REF(resetTackle)), base_knockdown, TIMER_STOPPABLE)
return(COMSIG_MOB_CANCEL_CLICKON)

/datum/component/tackler/proc/userEffect(mob/living/carbon/user, stamina_cost)
user.Knockdown(base_knockdown, ignore_canstun = TRUE)
user.adjustStaminaLoss(stamina_cost)

/**
* sack() is called when you actually smack into something, assuming we're mid-tackle. First it deals with smacking into non-carbons, in two cases:
* * If it's a non-carbon mob, we don't care, get out of here and do normal thrown-into-mob stuff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
return ..(user, TRUE)
.=..()

/* I swear to god, I hate you for this.
/mob/living/carbon/human/grabbedby(mob/living/carbon/user, supress_message = 0)
if(user == src && pulling && !pulling.anchored && grab_state >= GRAB_AGGRESSIVE && (HAS_TRAIT(src, TRAIT_FAT)) && ismonkey(pulling))
devour_mob(pulling)
else
.=..()
*/

0 comments on commit b87cf60

Please sign in to comment.