Skip to content

Commit

Permalink
Emags unlink borgs from the console + 0.5 delay in opening their cove…
Browse files Browse the repository at this point in the history
…rs (Bubberstation#1871)

Reopens this because my branch messed up with the master screw up.

## About The Pull Request

- Introduces a (needs testing) half a second delay in crowbaring a
borg's cover.
- A visible balloon alert to the borg will show if the cover is being
opened.
- Emags scramble codes. This unlinks them from the robotics console.

## Why It's Good For The Game

1. Stealth emagging is extremely difficult for people to pull off due to
the counters specified in Bubberstation#1844. EMPs are not stealthy. Flashing and
chasing a borg around is not stealthy. If a borg has its cover open, you
can instantly emag it.
2. This adds the delay back, but it's half a second with a balloon text
to opening the cover entirely. It should allow borgs a little more
breathing room in general. Not just emags.
3. Emagging a borg will scramble its codes so it's not immedietly locked
down and stuck for five minutes (or until deconstruction) getting
dragged around by its emagger. This will give them more of a fighting
chance.

## Proof Of Testing


![image](https://github.com/user-attachments/assets/72fea26b-73ae-45a4-8d18-dc93fc536899)

## Changelog

:cl:
balance: Emagging a borg will now scramble its codes plus opening the
cover has a delay
/:cl:

---------

Co-authored-by: Waterpig <[email protected]>
  • Loading branch information
StrangeWeirdKitten and Majkl-J authored Aug 8, 2024
1 parent 07d22c8 commit 433fbd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/modules/mob/living/silicon/robot/robot_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
if(locked)
to_chat(user, span_warning("The cover is locked and cannot be opened!"))
else
to_chat(user, span_notice("You open the cover."))
// BUBBER EDIT START
balloon_alert_to_viewers("Cover Opening...", "Opening Cover...", 1)
if(!do_after(user, 0.5 SECONDS))
return FALSE
// BUBBER EDIT START
opened = TRUE
update_icons()

Expand Down Expand Up @@ -356,6 +360,7 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
ResetModel()
return TRUE

scrambledcodes = TRUE // BUBBER EDIT START
SetEmagged(1)
SetStun(60) //Borgs were getting into trouble because they would attack the emagger before the new laws were shown
lawupdate = FALSE
Expand Down

0 comments on commit 433fbd6

Please sign in to comment.