Manifested ghosts can now toggle visibility proprely. (#8035)

This commit is contained in:
mikomyazaki
2020-01-17 10:49:29 +00:00
committed by Werner
parent 989b8d2fbf
commit 1d45184743
2 changed files with 11 additions and 2 deletions

View File

@@ -692,7 +692,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
is_manifest = 0
if(!is_manifest)
is_manifest = 1
verbs += /mob/abstract/observer/proc/toggle_visibility
verbs += /mob/abstract/observer/proc/toggle_visibility_verb
verbs += /mob/abstract/observer/proc/ghost_whisper
verbs += /mob/abstract/observer/proc/move_item
@@ -724,11 +724,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/image/J = image('icons/mob/mob.dmi', loc = src, icon_state = icon)
client.images += J
/mob/abstract/observer/proc/toggle_visibility(var/forced = 0)
/mob/abstract/observer/proc/toggle_visibility_verb()
set category = "Ghost"
set name = "Toggle Visibility"
set desc = "Allows you to turn (in)visible (almost) at will."
toggle_visibility()
/mob/abstract/observer/proc/toggle_visibility(var/forced = 0)
var/toggled_invisible
if(!forced && invisibility && world.time < toggled_invisible + 600)
to_chat(src, "You must gather strength before you can turn visible again...")

View File

@@ -0,0 +1,6 @@
author: mikomyazaki
delete-after: True
changes:
- bugfix: "The 'toggle visibility' verb will now work properly for manifested ghosts."