yay indicator

This commit is contained in:
Seris02
2020-07-28 20:43:38 +08:00
parent 84e9f406c7
commit dcd2c11f4e
2 changed files with 25 additions and 0 deletions

View File

@@ -29,6 +29,28 @@
create_reagents(volume, INJECTABLE | DRAWABLE)
/obj/item/seeds/replicapod/pre_attack(obj/machinery/hydroponics/I)
if(istype(I, /obj/machinery/hydroponics))
if(!I.myseed)
START_PROCESSING(SSobj, src)
return ..()
/obj/item/seeds/replicapod/proc/check_mind_orbiting(atom/A)
for(var/mob/M in A.orbiters?.orbiters)
if(mind && M.mind && ckey(M.mind.key) == ckey(mind.key) && M.ckey && M.client && M.stat == DEAD && !M.suiciding && isobserver(M))
return TRUE
return FALSE
/obj/item/seeds/replicapod/process()
var/obj/machinery/hydroponics/parent = loc
if(parent.harvest != 1)
return
if (check_mind_orbiting(parent))
icon_harvest = "replicapod-orbit"
else
icon_harvest = "replicapod-harvest"
parent.update_icon_plant()
/obj/item/seeds/replicapod/on_reagent_change(changetype)
if(changetype == ADD_REAGENT)
var/datum/reagent/blood/B = reagents.has_reagent(/datum/reagent/blood)
@@ -59,8 +81,11 @@
/obj/item/seeds/replicapod/get_analyzer_text()
var/text = ..()
var/obj/machinery/hydroponics/parent = loc
if(contains_sample)
text += "\n It contains a blood sample!"
if (parent && istype(parent) && check_mind_orbiting(parent))
text += "\n The soul is ready to enter the body."
return text

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 75 KiB