mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
fixes attacking stuff on your tile being instant lmao (#13070)
* fixes attacking stuff on your tile being instant lmao * whoops
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
/mob/living/attackby(obj/item/I, mob/living/user, params)
|
||||
if(..())
|
||||
return TRUE
|
||||
user.changeNext_move(CLICK_CD_MELEE * I.weapon_stats[SWING_SPEED] * get_dist(src,user)) //range increases attack cooldown by swing speed
|
||||
user.changeNext_move(CLICK_CD_MELEE * I.weapon_stats[SWING_SPEED] * max(get_dist(src,user), 1)) //range increases attack cooldown by swing speed
|
||||
user.weapon_slow(I)
|
||||
if(user.a_intent == INTENT_HARM && stat == DEAD && (butcher_results || guaranteed_butcher_results)) //can we butcher it?
|
||||
var/datum/component/butchering/butchering = I.GetComponent(/datum/component/butchering)
|
||||
|
||||
Reference in New Issue
Block a user