mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Fixes surgical moth wing reconstruction trying to repair not moth wings. (#68774)
Fixes moth wing repair surgery runtime
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
if(!istype(target))
|
||||
return FALSE
|
||||
var/obj/item/organ/external/wings/moth/wings = target.getorganslot(ORGAN_SLOT_EXTERNAL_WINGS)
|
||||
if(!istype(wings, /obj/item/organ/external/wings/moth))
|
||||
return FALSE
|
||||
return ..() && wings?.burnt
|
||||
|
||||
/datum/surgery_step/wing_reconstruction
|
||||
@@ -39,7 +41,8 @@
|
||||
span_notice("[user] completes the surgery on [target]'s wings."))
|
||||
display_pain(target, "You can feel your wings again!")
|
||||
var/obj/item/organ/external/wings/moth/wings = target.getorganslot(ORGAN_SLOT_EXTERNAL_WINGS)
|
||||
wings?.heal_wings()
|
||||
if(istype(wings, /obj/item/organ/external/wings/moth)) //make sure we only heal moth wings.
|
||||
wings.heal_wings()
|
||||
|
||||
var/obj/item/organ/external/antennae/antennae = target.getorganslot(ORGAN_SLOT_EXTERNAL_ANTENNAE) //i mean we might aswell heal their antennae too
|
||||
antennae?.heal_antennae()
|
||||
|
||||
Reference in New Issue
Block a user