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
Fixes #7619, APCs with no power will now not shock you #12884
Conversation
@@ -603,7 +603,7 @@ | |||
opened = 2 | |||
user.visible_message("<span class='warning'>The APC cover was knocked down with the [W.name] by [user.name]!</span>", \ | |||
"<span class='warning'>You knock down the APC cover with your [W.name]!</span>", \ | |||
"You hear bang") | |||
"You hear a loud bang.") //"you hear bang" is so bad I have to leave a comment to immortalize it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No code shitposting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a special case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get off my back woman
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine.
//We kinda do things our own way and don't really use NOPOWER or such, so we need different sanity | ||
/obj/machinery/power/apc/shock(mob/user, prb, var/siemenspassed = -1) | ||
if(shorted) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should return FALSE
explicitly.
@@ -1337,4 +1337,12 @@ obj/machinery/power/apc/proc/autoset(var/val, var/on) | |||
return 1 | |||
return 0 | |||
|
|||
//We kinda do things our own way and don't really use NOPOWER or such, so we need different sanity | |||
/obj/machinery/power/apc/shock(mob/user, prb, var/siemenspassed = -1) | |||
if(shorted) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a single ìf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
Why?
if(shorted || (!cell && !charging))
is immediately less readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree
No description provided.