Vision bugfixes (#16771)

* Fixes see_invisible getting overridden

- Fixes see_invisible from being overwritten if your see_invisible_default is > SEE_INVISIBLE_LEVEL_ONE.

* Fixes ghost manifest() proc runtiming

- Fixes a runtime of when manifest() was called on a ghost with no user. Allows admins to call manifest() without it runtiming.

* Fixes the ghost 'Toggle Visibility' verb

- Due to it being a variable on the proc itself, it wouldn't properly call and store the time..

* Fixes feysight

- Feysight was trying to give vision into the 'see_invisible 60' layer but had forgotten to also give you the plane_holder for that layer.

* fix span

* More fixes

- Allows ghosts to ACTUALLY USE the ghost whisper and become visible proc if their is_manifest is enabled via admins.

- Allows admins to give any /mob verbs and procs instead of just  /mob/living via admin add_verb topic

* False
This commit is contained in:
Cameron Lennox
2024-12-28 05:33:47 -05:00
committed by GitHub
parent c98fe91da3
commit 2528be8bce
4 changed files with 39 additions and 15 deletions
+8 -4
View File
@@ -411,14 +411,18 @@
else if(href_list["addverb"])
if(!check_rights(R_DEBUG)) return
var/mob/living/H = locate(href_list["addverb"])
var/mob/H = locate(href_list["addverb"])
if(!istype(H))
to_chat(usr, "This can only be done to instances of type /mob/living")
if(!ismob(H))
to_chat(usr, "This can only be done to instances of type /mob")
return
var/list/possibleverbs = list()
possibleverbs += "Cancel" // One for the top...
possibleverbs += typesof(/mob/proc,/mob/verb,/mob/living/proc,/mob/living/verb)
possibleverbs += typesof(/mob/proc, /mob/verb)
if(istype(H,/mob/observer/dead))
possibleverbs += typesof(/mob/observer/dead/proc,/mob/observer/dead/verb)
if(istype(H,/mob/living))
possibleverbs += typesof(/mob/living/proc,/mob/living/verb)
if(istype(H,/mob/living/carbon/human))
possibleverbs += typesof(/mob/living/carbon/proc,/mob/living/carbon/verb,/mob/living/carbon/human/verb,/mob/living/carbon/human/proc)
if(istype(H,/mob/living/silicon/robot))