Removes pointless processing status effects from mining mobs. (#51481)

* Removes pointless processing status effects from mining mobs.

* Status effects are bad mkay.
This commit is contained in:
AnturK
2020-06-08 22:16:58 +08:00
committed by GitHub
parent 31502772be
commit 70cc742966
6 changed files with 11 additions and 7 deletions
@@ -81,6 +81,8 @@
user.drop_all_held_items()
return
var/datum/status_effect/crusher_damage/C = target.has_status_effect(STATUS_EFFECT_CRUSHERDAMAGETRACKING)
if(!C)
C = target.apply_status_effect(STATUS_EFFECT_CRUSHERDAMAGETRACKING)
var/target_health = target.health
..()
for(var/t in trophies)
@@ -117,6 +119,8 @@
if(!CM || CM.hammer_synced != src || !L.remove_status_effect(STATUS_EFFECT_CRUSHERMARK))
return
var/datum/status_effect/crusher_damage/C = L.has_status_effect(STATUS_EFFECT_CRUSHERDAMAGETRACKING)
if(!C)
C = L.apply_status_effect(STATUS_EFFECT_CRUSHERDAMAGETRACKING)
var/target_health = L.health
for(var/t in trophies)
var/obj/item/crusher_trophy/T = t