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

EMPing a holosign creator will make it delete all its holosigns. #2561

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Uristthedorf
Copy link

@Uristthedorf Uristthedorf commented Jul 7, 2024

About The Pull Request

When you EMP a holosign creator. (Like sec holobarrier.) It will destroy all the holosigns it currently has. The holosign creator will be fine after that and can remake them.

Why It's Good For The Game

Holosign creators are high tech stuff that presumably rely on lots of electrical components. It makes sense that an EMP would disrupt it.

Changelog

🆑
add: EMPing a holosign creator, will destroy all of the holosigns.
/:cl:

It's like if you EMPed a laser, it doesn't destroy it.
@KittyNoodle
Copy link

emp flash random atmos tech
entire station burns down

@Uristthedorf
Copy link
Author

I could make it a chance to have any particular holosign get destroyed, which depends on EMP severity.

@SirNightKnight
Copy link

emp flash random atmos tech
entire station burns down

tbf, the holofirelocks break pretty easily. maybe this will incentivize safe work practices in atmos (jk)

@@ -82,6 +82,12 @@
qdel(H)
balloon_alert(user, "holograms cleared")

/obj/item/holosign_creator/emp_act(severity) // Monke, emping a holosign creator makes it destroy its signs.
. = ..()
if(LAZYLEN(signs))
Copy link
Collaborator

Choose a reason for hiding this comment

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

early return

Copy link
Author

Choose a reason for hiding this comment

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

early return? What do you mean? (I just copied the sign deletion from the attack_self proc.)

@@ -82,6 +82,12 @@
qdel(H)
balloon_alert(user, "holograms cleared")

/obj/item/holosign_creator/emp_act(severity) // Monke, emping a holosign creator makes it destroy its signs.
Copy link
Collaborator

Choose a reason for hiding this comment

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

modularize this properly

/obj/item/holosign_creator/emp_act(severity) // Monke, emping a holosign creator makes it destroy its signs.
. = ..()
if(LAZYLEN(signs))
for(var/H in signs)
Copy link
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 iterator with as anything, also one letter vars bad

@F-e-r-n
Copy link

F-e-r-n commented Jul 8, 2024

ADMIN REVIEW: Accepted, this is hilarious

@@ -0,0 +1,6 @@
/obj/item/holosign_creator/emp_act(severity)
. = ..()
if(LAZYLEN(signs))
Copy link
Collaborator

Choose a reason for hiding this comment

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

when i say early return, I mean inverting this check and returning if so

if(LAZYLEN(signs))
for(var/sign as anything in signs)
qdel(sign)
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

pointless

/obj/item/holosign_creator/emp_act(severity)
. = ..()
if(LAZYLEN(signs))
for(var/sign as anything in signs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

sign should be typed

@Zonespace27 Zonespace27 marked this pull request as draft July 8, 2024 21:10
@USMP-lancer
Copy link

finallly, atmos will ahve ot do their job the right way, and not the high tech ghetto way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants