Skip to content

Commit

Permalink
Better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreML committed Feb 19, 2024
1 parent 5e9ece2 commit bd1e3ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,10 @@
/**
* Called by [/mob/dead/observer/proc/do_observe] when a carbon mob is observed by a ghost with [/datum/preferences/var/auto_observe] enabled.
*
* Override with any extra behaviour on subtypes.
* Any HUD changes past this point are handled by [/mob/dead/observer/proc/observe_target_screen_add]
* and [/mob/dead/observer/proc/observe_target_screen_remove].
*
* Override on subtype mobs if they have any extra HUD elements/behaviour.
*/
/mob/living/carbon/proc/auto_observed(mob/dead/observer/observer)
SHOULD_CALL_PARENT(TRUE)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@
<BR>"}
show_browser(user, dat, name, "mob[name]")

/**
* Handles any storage containers that `src` is looking inside when auto-observed.
*/
/mob/living/carbon/human/auto_observed(mob/dead/observer/observer)
. = ..()

Expand Down

0 comments on commit bd1e3ed

Please sign in to comment.