mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
Fixes a runtime on eye removal (#87475)
## About The Pull Request Fixes https://github.com/tgstation/tgstation/issues/87474 ## Why It's Good For The Game Being unable to remove eyes if there is scarring is bad. ## Changelog 🆑 fix: Fixes a runtime when trying to remove someones scarred eyes. Now you can remove them! /🆑
This commit is contained in:
committed by
Waterpig
parent
e75964a608
commit
2cea49ace2
@@ -310,9 +310,9 @@
|
|||||||
/obj/item/organ/internal/eyes/on_mob_remove(mob/living/carbon/eye_owner)
|
/obj/item/organ/internal/eyes/on_mob_remove(mob/living/carbon/eye_owner)
|
||||||
. = ..()
|
. = ..()
|
||||||
if (scarring)
|
if (scarring)
|
||||||
owner.cure_nearsighted(TRAIT_RIGHT_EYE_SCAR)
|
eye_owner.cure_nearsighted(TRAIT_RIGHT_EYE_SCAR)
|
||||||
owner.cure_nearsighted(TRAIT_LEFT_EYE_SCAR)
|
eye_owner.cure_nearsighted(TRAIT_LEFT_EYE_SCAR)
|
||||||
owner.cure_blind(EYE_SCARRING_TRAIT)
|
eye_owner.cure_blind(EYE_SCARRING_TRAIT)
|
||||||
|
|
||||||
#undef OFFSET_X
|
#undef OFFSET_X
|
||||||
#undef OFFSET_Y
|
#undef OFFSET_Y
|
||||||
|
|||||||
Reference in New Issue
Block a user