Merge pull request #11370 from VOREStation/Arokha/shipnom

Allows you to eat spaceships
This commit is contained in:
Aronai Sieyes
2021-08-08 23:28:29 -04:00
committed by Chompstation Bot
parent e333e564dd
commit 185dc898f4
2 changed files with 40 additions and 3 deletions

View File

@@ -122,9 +122,15 @@ SUBSYSTEM_DEF(skybox)
if(istype(O))
var/image/self_image = O.generate_skybox(z)
new_overlays += self_image
for(var/obj/effect/overmap/visitable/other in O.loc)
if(other != O)
new_overlays += other.get_skybox_representation(z)
//VOREStation Add
if(isbelly(O.loc)) // Teehee
base.icon = 'icons/skybox/skybox_vr.dmi'
base.icon_state = "flesh"
//VOREStation Add End
else
for(var/obj/effect/overmap/visitable/other in O.loc)
if(other != O)
new_overlays += other.get_skybox_representation(z)
// Allow events to apply custom overlays to skybox! (Awesome!)
for(var/datum/event/E in SSevents.active_events)

View File

@@ -0,0 +1,31 @@
/obj/effect/overmap/visitable/ship/Initialize()
. = ..()
listening_objects += src
/obj/effect/overmap/visitable/ship/Destroy()
listening_objects -= src
return ..()
/obj/effect/overmap/visitable/ship/MouseDrop(atom/over)
if(!isliving(over) || !Adjacent(over) || !Adjacent(usr))
return
var/mob/living/L = over
var/confirm = tgui_alert(L, "You COULD eat this spaceship...", "Eat spaceship?", list("Eat it!", "No, thanks."))
if(confirm == "Eat it!")
var/obj/belly/bellychoice = tgui_input_list(usr, "Which belly?","Select A Belly", L.vore_organs)
if(bellychoice)
L.visible_message("<span class='warning'>[L] is trying to stuff \the [src] into [L.gender == MALE ? "his" : L.gender == FEMALE ? "her" : "their"] [bellychoice]!</span>","<span class='notice'>You begin putting \the [src] into your [bellychoice]!</span>")
if(do_after(L, 5 SECONDS, src, exclusive = TASK_ALL_EXCLUSIVE))
forceMove(bellychoice)
L.visible_message("<span class='warning'>[L] eats a spaceship! This is totally normal.</span>","You eat the the spaceship! Yum, metal.")
/obj/effect/overmap/visitable/ship/hear_talk(mob/talker, list/message_pieces, verb)
. = ..()
var/list/listeners = list()
for(var/mapz in map_z)
var/list/thatz = GLOB.players_by_zlevel[mapz]
listeners += thatz
for(var/mob/M as anything in listeners)
M.hear_say(message_pieces, verb, talker)