Refactors occupant to use setter (#54373)

This is to make it easier to attach a signal to the setting of the occupant.
This commit is contained in:
nicbn
2020-10-18 12:46:14 -03:00
committed by GitHub
parent 83ee251dde
commit a653bc6350
13 changed files with 94 additions and 67 deletions
@@ -124,9 +124,9 @@
var/mob/living/carbon/carbon_occupant = occupant
var/implant_msg = carbon_occupant.implant_skillchip(inserted_skillchip, FALSE)
if(implant_msg)
to_chat(occupant,"<span class='notice'>Operation failed! [implant_msg]</span>")
to_chat(carbon_occupant,"<span class='notice'>Operation failed! [implant_msg]</span>")
else
to_chat(occupant,"<span class='notice'>Operation complete!</span>")
to_chat(carbon_occupant,"<span class='notice'>Operation complete!</span>")
inserted_skillchip = null
update_icon()