Skip to content

Refactors Scrying Code (2.0)#7359

Draft
realforest2001 wants to merge 40 commits into
Monkestation:mainfrom
realforest2001:forest/scrying
Draft

Refactors Scrying Code (2.0)#7359
realforest2001 wants to merge 40 commits into
Monkestation:mainfrom
realforest2001:forest/scrying

Conversation

@realforest2001

@realforest2001 realforest2001 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

About The Pull Request

Reworks scrying so it isn't a bunch of copy pasted code all over the place and no longer uses ghosts.
Disables the Vampire Lord's free moving spying eye due to code constraints, to be further worked upon.
Adds a lock to using scrying orb, requiring Arcyne Magic skill.

Why It's Good For The Game

Makes things a bit easier down the line, and provides QOL for people doing the scrying.

Changelog

🆑
refactor: Refactors how scrying is attached to objects.
add: You can now still hear your personal surroundings and speak to people around you whilst scrying.
del: Black Mirror no longer asks if you want to locate the person who's blood it contains.
add: Scrying Orb can now only be used by people with Arcyne magic skill.
del: Temporarily disables the free-form spying eye the Vampire Lord gets.
/:cl:

Pre-Merge Checklist

  • You tested this on a local server.
  • This code did not runtime during testing.
  • You documented all of your changes.

@realforest2001
realforest2001 marked this pull request as draft July 23, 2026 08:12
@github-actions github-actions Bot added Feature adds a new thing Code Maintenance Fixing this mess one line at a time Removal What used to be there is no longer there. How sad. labels Jul 23, 2026
@realforest2001 realforest2001 added Feature adds a new thing Code Maintenance Fixing this mess one line at a time Removal What used to be there is no longer there. How sad. labels Jul 23, 2026
@realforest2001
realforest2001 marked this pull request as ready for review July 23, 2026 09:41
Comment thread code/__DEFINES/is_helpers.dm Outdated
var/mob/scry_eye/scrying_eye
var/mob/living/carbon/held_user

var/interact_method = "attack_self"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a numeric define

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe you don't even need it and just change it depending on structure / item

Comment thread code/datums/components/scrying.dm Outdated
Comment thread code/datums/components/scrying.dm Outdated
. = ..()

/datum/component/scrying/proc/activate(datum/source, mob/user)
if(!pass_extra_checks(user))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a callback

Comment thread code/datums/components/scrying.dm Outdated
Comment thread code/datums/components/scrying.dm Outdated
break

held_user = user
if(HAS_TRAIT(found_target, TRAIT_ANTISCRYING))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this above the input

return FALSE

//check is applied twice to prevent someone from bypassing the cooldown
if(!COOLDOWN_FINISHED(src, scry_cooldown))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this above the above check

return FALSE
return TRUE

/datum/component/scrying/mirror

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one can remain a subtype for now

@realforest2001
realforest2001 marked this pull request as draft July 24, 2026 00:11
realforest2001 and others added 2 commits July 24, 2026 13:52
Co-authored-by: CheffieGithub <113442598+CheffieGithub@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Maintenance Fixing this mess one line at a time Feature adds a new thing Removal What used to be there is no longer there. How sad.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants