mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-04 14:33:10 +00:00
Manifested ghosts can now toggle visibility proprely. (#8035)
This commit is contained in:
@@ -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...")
|
||||
|
||||
6
html/changelogs/ghost_toggle_visibility_fix.yml
Normal file
6
html/changelogs/ghost_toggle_visibility_fix.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
author: mikomyazaki
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "The 'toggle visibility' verb will now work properly for manifested ghosts."
|
||||
Reference in New Issue
Block a user