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

Fixes #7619, APCs with no power will now not shock you #12884

Merged
merged 2 commits into from Dec 18, 2016
Merged

Fixes #7619, APCs with no power will now not shock you #12884

merged 2 commits into from Dec 18, 2016

Conversation

ghost
Copy link

@ghost ghost commented Dec 18, 2016

No description provided.

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

No code shitposting.

Copy link
Member

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I disagree.

Copy link
Contributor

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

Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link
Contributor

@9600bauds 9600bauds Dec 18, 2016

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

I disagree

@PJB3005 PJB3005 merged commit e334200 into vgstation-coders:Bleeding-Edge Dec 18, 2016
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.

None yet

3 participants