Deletes the "Jump to mob" verb from ghosts (#20559)

* Deletes the "Jump to mob" verb from ghosts

* All smoothed out
This commit is contained in:
GDN
2023-03-10 18:21:16 -06:00
committed by GitHub
parent e1aff33450
commit 2bc9f02dd6
3 changed files with 6 additions and 29 deletions
+6 -7
View File
@@ -158,13 +158,12 @@
#define ui_bot_pull "EAST-2:26,SOUTH:7"
//Ghosts
#define ui_ghost_jumptomob "SOUTH:6,CENTER-2"
#define ui_ghost_orbit "SOUTH:6,CENTER-1"
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER"
#define ui_ghost_teleport "SOUTH:6,CENTER+1"
#define ui_ghost_respawn_list "SOUTH:6,CENTER+2"
#define ui_ghost_respawn_mob "SOUTH:6+1,CENTER+2"
#define ui_ghost_respawn_pai "SOUTH:6+2,CENTER+2"
#define ui_ghost_orbit "SOUTH:6,CENTER-1.5"
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER-.5"
#define ui_ghost_teleport "SOUTH:6,CENTER+.5"
#define ui_ghost_respawn_list "SOUTH:6,CENTER+1.5"
#define ui_ghost_respawn_mob "SOUTH:6+1,CENTER+1.5"
#define ui_ghost_respawn_pai "SOUTH:6+2,CENTER+1.5"
//HUD styles. Please ensure HUD_VERSIONS is the same as the maximum index. Index order defines how they are cycled in F12.
#define HUD_STYLE_STANDARD 1
-12
View File
@@ -10,14 +10,6 @@
. = ..()
flick(icon_state + "_anim", src)
/obj/screen/ghost/jumptomob
name = "Jump to mob"
icon_state = "jumptomob"
/obj/screen/ghost/jumptomob/Click()
var/mob/dead/observer/G = usr
G.jumptomob()
/obj/screen/ghost/orbit
name = "Orbit"
icon_state = "orbit"
@@ -95,10 +87,6 @@
..()
var/obj/screen/using
using = new /obj/screen/ghost/jumptomob()
using.screen_loc = ui_ghost_jumptomob
static_inventory += using
using = new /obj/screen/ghost/orbit()
using.screen_loc = ui_ghost_orbit
static_inventory += using
@@ -498,16 +498,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
setDir(2)//reset dir so the right directional sprites show up
return ..()
/mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak
set category = "Ghost"
set name = "Jump to Mob"
set desc = "Teleport to a mob"
if(isobserver(usr)) //Make sure they're an observer!
var/list/dest = getpois(mobs_only=TRUE) //Fill list, prompt user with list
var/datum/async_input/A = input_autocomplete_async(usr, "Enter a mob name: ", dest)
A.on_close(CALLBACK(src, PROC_REF(jump_to_mob)))
/mob/dead/observer/proc/jump_to_mob(mob/M)
if(!M || !isobserver(usr))
return