Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds listening post access to sleeper agents #15222

Closed
wants to merge 15 commits into from

Conversation

cheekybrdy
Copy link
Contributor

@cheekybrdy cheekybrdy commented Aug 3, 2023

[BALANCE] [FEATURE]

About the PR

This PR is a remake of #14992. It adds handscanners which a sleeper can use to enter listening post to every map.

Why's this needed?

It gives sleepers more options to work with without the full power of a uplink. This makes them more then a late hard mode traitor

Changelog

(u)Cheekybrdy
(*)Sleeper agents can now use a handscanner at the listening post to get into it.

@keywordlabeler keywordlabeler bot added C-Balance Balance changes, buffs and nerfs C-Feature A new feature or enhancements to existing features labels Aug 3, 2023
@boring-cyborg boring-cyborg bot added the A-Mapping A mapping change label Aug 3, 2023
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 3, 2023
@cheekybrdy
Copy link
Contributor Author

Discussion thread from the original PR: https://forum.ss13.co/showthread.php?tid=21546

@deathrobotpunch
Copy link
Contributor

AAAAAAAAAAAA RUNTIMEEEEESSSSSSS

return
if (user.mind?.get_antagonist(ROLE_SLEEPER_AGENT))
user.visible_message("<span class='notice'>The [src] accepts the biometrics of the user and beeps, granting you access.</span>")
for (var/obj/machinery/door/airlock/pyro/reinforced/syndicate/M in by_type[/obj/machinery/door])
Copy link
Contributor

Choose a reason for hiding this comment

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

The type /obj/machinery/door/airlock/pyro/reinforced/syndicate is used in several prefabs and in Z2; listening post doors will require to be their own subtype if this is to work without opening all doors of the same type in the aforementioned z-levels and prefabs.
I would personally recommend refactoring sleeper hand scanners into a subtype of /obj/machinery/door_control, and utilising id to open the listening post doors.

code/obj/machinery/sleeperscanner.dm Outdated Show resolved Hide resolved
/obj/machinery/sleeperscanner/attackby(obj/item/W, mob/user as mob)
if(istype(W, /obj/item/device/detective_scanner))
return
if (user.mind?.get_antagonist(ROLE_SLEEPER_AGENT))
Copy link
Contributor

Choose a reason for hiding this comment

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

No ishuman(user) check, unlike attack_hand()?

Co-authored-by: Mister-Moriarty <88833499+Mister-Moriarty@users.noreply.github.com>
@github-actions github-actions bot added the S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict label Aug 4, 2023
@cheekybrdy cheekybrdy closed this Aug 4, 2023
@github-actions github-actions bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 4, 2023
@cheekybrdy cheekybrdy reopened this Aug 4, 2023
@github-actions github-actions bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 4, 2023
@github-actions github-actions bot removed the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 4, 2023
@cheekybrdy
Copy link
Contributor Author

!merge_upstream

@cheekybrdy cheekybrdy closed this Aug 4, 2023
@TheTyrant25
Copy link
Contributor

might want to start over on a fresh branch at this point

@cheekybrdy cheekybrdy deleted the sleeper_buff_remake branch March 18, 2024 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Mapping A mapping change C-Balance Balance changes, buffs and nerfs C-Feature A new feature or enhancements to existing features S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants