mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
@@ -398,10 +398,9 @@
|
|||||||
announce.autosay("[occupant.real_name] [on_store_message]", "[on_store_name]")
|
announce.autosay("[occupant.real_name] [on_store_message]", "[on_store_name]")
|
||||||
visible_message("<span class='notice'>\The [src] hums and hisses as it moves [occupant.real_name] into storage.</span>", 3)
|
visible_message("<span class='notice'>\The [src] hums and hisses as it moves [occupant.real_name] into storage.</span>", 3)
|
||||||
|
|
||||||
|
set_occupant(null)
|
||||||
// Delete the mob.
|
// Delete the mob.
|
||||||
del(occupant)
|
del(occupant)
|
||||||
occupant = null
|
|
||||||
name = initial(name)
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/cryopod/attackby(var/obj/item/weapon/G as obj, var/mob/user as mob)
|
/obj/machinery/cryopod/attackby(var/obj/item/weapon/G as obj, var/mob/user as mob)
|
||||||
@@ -448,7 +447,7 @@
|
|||||||
|
|
||||||
M << "<span class='notice'>[on_enter_occupant_message]</span>"
|
M << "<span class='notice'>[on_enter_occupant_message]</span>"
|
||||||
M << "<span class='notice'><b>If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.</b></span>"
|
M << "<span class='notice'><b>If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.</b></span>"
|
||||||
occupant = M
|
set_occupant(M)
|
||||||
time_entered = world.time
|
time_entered = world.time
|
||||||
|
|
||||||
// Book keeping!
|
// Book keeping!
|
||||||
@@ -517,7 +516,7 @@
|
|||||||
usr.client.perspective = EYE_PERSPECTIVE
|
usr.client.perspective = EYE_PERSPECTIVE
|
||||||
usr.client.eye = src
|
usr.client.eye = src
|
||||||
usr.loc = src
|
usr.loc = src
|
||||||
src.occupant = usr
|
set_occupant(usr)
|
||||||
|
|
||||||
if(orient_right)
|
if(orient_right)
|
||||||
icon_state = "[occupied_icon_state]-r"
|
icon_state = "[occupied_icon_state]-r"
|
||||||
@@ -526,11 +525,10 @@
|
|||||||
|
|
||||||
usr << "<span class='notice'>[on_enter_occupant_message]</span>"
|
usr << "<span class='notice'>[on_enter_occupant_message]</span>"
|
||||||
usr << "<span class='notice'><b>If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.</b></span>"
|
usr << "<span class='notice'><b>If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.</b></span>"
|
||||||
occupant = usr
|
|
||||||
time_entered = world.time
|
time_entered = world.time
|
||||||
|
|
||||||
src.add_fingerprint(usr)
|
src.add_fingerprint(usr)
|
||||||
name = "[name] ([usr.name])"
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -544,7 +542,7 @@
|
|||||||
occupant.client.perspective = MOB_PERSPECTIVE
|
occupant.client.perspective = MOB_PERSPECTIVE
|
||||||
|
|
||||||
occupant.loc = get_turf(src)
|
occupant.loc = get_turf(src)
|
||||||
occupant = null
|
set_occupant(null)
|
||||||
|
|
||||||
if(orient_right)
|
if(orient_right)
|
||||||
icon_state = "[base_icon_state]-r"
|
icon_state = "[base_icon_state]-r"
|
||||||
@@ -553,6 +551,12 @@
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
/obj/machinery/cryopod/proc/set_occupant(var/occupant)
|
||||||
|
src.occupant = occupant
|
||||||
|
name = initial(name)
|
||||||
|
if(occupant)
|
||||||
|
name = "[name] ([occupant])]"
|
||||||
|
|
||||||
|
|
||||||
//Attacks/effects.
|
//Attacks/effects.
|
||||||
/obj/machinery/cryopod/blob_act()
|
/obj/machinery/cryopod/blob_act()
|
||||||
|
|||||||
@@ -861,6 +861,7 @@
|
|||||||
seed_name = "orange"
|
seed_name = "orange"
|
||||||
display_name = "orange trees"
|
display_name = "orange trees"
|
||||||
kitchen_tag = "orange"
|
kitchen_tag = "orange"
|
||||||
|
chems = list("nutriment" = list(1,20), "orangejuice" = list(1,20))
|
||||||
|
|
||||||
/datum/seed/citrus/orange/New()
|
/datum/seed/citrus/orange/New()
|
||||||
..()
|
..()
|
||||||
|
|||||||
Reference in New Issue
Block a user