Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@Altoids1
Copy link
Contributor

@Altoids1 Altoids1 commented Jan 29, 2020

Hopek & Readystorm also paid me to do these, too.

image

Overview

This is a continuation of #7657, adding some more achievements related to engineering and atmospherics that were on the spreadsheet of shit to add that I was given.

For those interested, here is the full list of achievements I've been tasked with adding:
https://docs.google.com/spreadsheets/d/1Q3XZE5a9B91kYmHl_-GCWASmXXwGjdy6Ld6bv8Ef5JE/edit?usp=sharing

Coder Warnings

This adds yet another achievement type, /datum/achievement/engineering. Later in this quest I will be making a PR to improve the achievement menu UI to group related achievements together using their parent types like this. If you ever add an achievement, try to imitate that design decision.

Adding I'm givin' it all she's got, Captain! required modifying how powernets are created; /datum/powernet/New() now takes in an arg that describes the z-level of the powerlevel, which is then used by SSachievements to determine whether it's on the station and so related to the CE getting the power achievement. I suppose this var could also be used in the future for some optimization of how powernets are created and reset, if that ever becomes relevant.

It also required making SSachievements a SS_BACKGROUND subsystem instead of a SS_NO_TICK one, in some effort to avoid wasting the time of SSmachine.

Changelog

🆑 Altoids
rscadd: Four new Engineering-related Achievements have been added!
bugfix: A potential NTSL exploit involving the Poly achievements has been fixed.
/:cl:

This is a surprise tool that will help us later!
A lot of shit had to happen in order to make this work.
I had to add a new specification to powernets to mark what Z-level they exist on, to ensure that I only scan powernets that're on the station Z-level.

Additionally, SSachievements now is SS_BACKGROUND instead of SS_NO_FIRE, since I didn't want to have this CE achievement bullshit happen in the middle of the very important SSmachine tick.
I needed *something* to put in for /datum/achievement/engineering, so...
@Altoids1 Altoids1 requested a review from AsV9 as a code owner January 29, 2020 03:10
@yogstation13-bot yogstation13-bot added the Feature This adds new content to the game label Jan 29, 2020
@boodaliboo
Copy link
Contributor

add assistant achievements

@Altoids1
Copy link
Contributor Author

add assistant achievements

Will do, probably in the fifth PR

Also ends up lowering the amount of requirements for the Poly_loud achievement. This code in general smells like ass and needs to be reworked to no longer make several NTSL calls to do its fuckin job.
desc = "Trigger a keycard authentication device event, by yourself."
id = 23

/datum/achievement/dab
Copy link
Contributor

Choose a reason for hiding this comment

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

No.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do not control the rate at which spacemen dab

Copy link
Contributor

Choose a reason for hiding this comment

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

Undocumented change, PR denied

Copy link
Member

Choose a reason for hiding this comment

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

Please no, im downvoting this shit until this gets yeeted out

var/light_dab_speed = rand(3,7)
H.DabAnimation(angle = light_dab_angle , speed = light_dab_speed)
H.adjustOrganLoss(ORGAN_SLOT_BRAIN, 5)
SSachievements.unlock_achievement(/datum/achievement/dab,H.client)
Copy link
Contributor

Choose a reason for hiding this comment

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

No

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do not control the rate at which spacemen dab

desc = "Trigger a keycard authentication device event, by yourself."
id = 23

/datum/achievement/dab
Copy link
Member

Choose a reason for hiding this comment

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

Please no, im downvoting this shit until this gets yeeted out

@Readystorm546
Copy link
Contributor

Imagine being annoyed by a dab in a hidden achievement

@FatCat1978
Copy link

uh oh, zoomer! hahaha dab funny make dab achievenem,tn hahahaha wow so original hahahah!!!

Imagine finding an outdated 2015 meme funny, or even relevant enough to make an achievement about. Apparently your sense of humor is as far in the past as your code used to be.

@Altoids1
Copy link
Contributor Author

Altoids1 commented Feb 1, 2020

uh oh, zoomer! hahaha dab funny make dab achievenem,tn hahahaha wow so original hahahah!!!

Imagine finding an outdated 2015 meme funny, or even relevant enough to make an achievement about. Apparently your sense of humor is as far in the past as your code used to be.

I see Ling shared this with their TG-coder friends.

Again, this PR was paid for. One of the achievements they wanted was for dabbing, and so it's in here. I personally do not control the rate at which spessmen dab.

Unfortunately, you do have to share this game with zoomers who like to dab a non-zero amount. Certainly a tragedy, but this achievement has no practical effect on the gameplay of anyone outside that group, so I doubt it deserves the 'jerk that it's currently getting.

@FatCat1978
Copy link

One: TG's gay.
Two: Someone paying for something doesn't mean it's a good idea, and just shifts the blame for this level of dumb shit over to the person paying for it.

The literal only reason it's in this PR is because it wouldn't pass on it's own merit. that's shit.

@optimumtact
Copy link
Contributor

^ this guy looks a garfield porn

@alexkar598
Copy link
Member

@Altoids1 bruh im not ling, i shared PR because ready posted this abortion in discord:
image

@ThatLing
Copy link
Contributor

ThatLing commented Feb 2, 2020

I see Altoids is back at it again with the baseless accusations.

Also, imagine paying someone to code something and then throwing a hissy fit because people don't want said thing in the game. Cry more

@boodaliboo
Copy link
Contributor

why is a fucking dab achievement causing drama you fucking losers

@ThatLing
Copy link
Contributor

ThatLing commented Feb 3, 2020

why is a fucking dab achievement causing drama you fucking losers

Because it's unfunny. Go make dabstation if you like being an unfunny little shit so bad

@boodaliboo
Copy link
Contributor

I don’t find dabbing funny but I find this ridiculous

@alexkar598 alexkar598 added the DO NOT MERGE Should not be merged without express approval from a Head Dev label Feb 4, 2020
Copy link
Member

@alexkar598 alexkar598 left a comment

Choose a reason for hiding this comment

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

Turns out acheivement SQL queries arent sanitzed for the name or description. Hold off before merging this PR

@alexkar598
Copy link
Member

#7751

@AsV9 AsV9 removed the DO NOT MERGE Should not be merged without express approval from a Head Dev label Feb 5, 2020
var/was_not_connected = !(connected_tracker && connected_panels.len)
search_for_connected()
if(last_user && was_not_connected && connected_tracker && connected_panels.len) // If this guy finished up the solars
if(last_user.stat != DEAD && (last_user.mind?.assigned_role in GLOB.engineering_positions)) // and he's an engineer who isn't long-dead or adminbussing
Copy link
Member

Choose a reason for hiding this comment

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

Verify his client exists here

@Hopekz Hopekz added the Bounty This PR is for a bounty, and cash reward label Feb 17, 2020
@AsV9
Copy link
Contributor

AsV9 commented Feb 19, 2020

@Altoids1 Please comply with alexkar's change request.

@ThatLing ThatLing added the Stale I'm closing this in like a week if you don't push a new commit label Feb 19, 2020
@Ktlwjec1 Ktlwjec1 removed the Stale I'm closing this in like a week if you don't push a new commit label Feb 22, 2020
@AsV9 AsV9 merged commit 1824681 into yogstation13:master Feb 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Bounty This PR is for a bounty, and cash reward Feature This adds new content to the game

Projects

None yet

Development

Successfully merging this pull request may close these issues.