Skip to content

Commit

Permalink
Fixes photos only being viewable from adjacent tiles as an observer (#…
Browse files Browse the repository at this point in the history
…5343)

# About the pull request

Fixes #3855 , observer mobs can now view photos from any distance.

# Explain why it's good for the game

bug bad

# Changelog

:cl:
fix: Fixes photos not being viewable from any distance as an observer
/:cl:
  • Loading branch information
Cthulhu80 authored Dec 31, 2023
1 parent e6593fc commit 158f87f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/paperwork/paper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

/obj/item/paper/get_examine_text(mob/user)
. = ..()
if(in_range(user, src) || istype(user, /mob/dead/observer))
if(in_range(user, src) || isobserver(user))
if(!(istype(user, /mob/dead/observer) || istype(user, /mob/living/carbon/human) || isRemoteControlling(user)))
// Show scrambled paper if they aren't a ghost, human, or silicone.
if(photo_list)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/paperwork/photography.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
..()

/obj/item/photo/get_examine_text(mob/user)
if(in_range(user, src))
if(in_range(user, src) || isobserver(user))
show(user)
return list(desc)
else
Expand Down

0 comments on commit 158f87f

Please sign in to comment.