-
-
Notifications
You must be signed in to change notification settings - Fork 456
Achievement Get Part 2 - Engineering Achievements #7729
Changes from all commits
3ed5bf4
011f7f9
0e73a99
01e949c
f5eaa8d
87b7d11
3bed9f8
e2cdc88
38dcced
629e6d7
2e40601
3c83194
4d6f504
8fae206
c0da9f6
c491c26
6580000
1812d1a
ce39c00
3e95783
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| //TO BE HONEST THIS OFFSET DOESN'T EVEN NEED TO BE POWER OF TWO, THOUGH. | ||
| #define GREENTEXT 256 // An offset for new greentext-related achievements, to keep the incremental pattern. | ||
| #define REDTEXT 512 // Offset for redtexts. | ||
| #define ENGIEDEPT 768 // Offset for engineering-related achievements. | ||
|
|
||
| /datum/achievement | ||
| var/name = "achievement" | ||
|
|
@@ -25,7 +26,7 @@ | |
| desc = "Successfully defibrillate someone" | ||
| id = 3 | ||
|
|
||
| /datum/achievement/pa_emag | ||
| /datum/achievement/engineering/pa_emag | ||
| name = "Catastrophe" | ||
| desc = "Emag a particle accelerator" | ||
| id = 4 | ||
|
|
@@ -100,13 +101,13 @@ | |
| id = 17 | ||
| hidden = TRUE | ||
|
|
||
| /datum/achievement/Poly_silent | ||
| /datum/achievement/engineering/Poly_silent | ||
| name = "Silence Bird!" | ||
| desc = "As a signal technician, create a script that mutes poly" | ||
| id = 18 | ||
| hidden = TRUE | ||
|
|
||
| /datum/achievement/Poly_loud | ||
| /datum/achievement/engineering/Poly_loud | ||
| name = "Embrace the Bird!" | ||
| desc = "As a signal technician, create a script that makes poly LOUD" | ||
| id = 19 | ||
|
|
@@ -143,6 +144,12 @@ | |
| desc = "Trigger a keycard authentication device event, by yourself." | ||
| id = 23 | ||
|
|
||
| /datum/achievement/dab | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not control the rate at which spacemen dab
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Undocumented change, PR denied
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please no, im downvoting this shit until this gets yeeted out |
||
| name = "Brain Damage" | ||
| desc = "Dab." | ||
| id = 24 | ||
| hidden = TRUE | ||
|
|
||
| // The achievements that are basically just "greentext as this sort of antag" | ||
|
|
||
| /datum/achievement/greentext | ||
|
|
@@ -245,5 +252,25 @@ | |
| hidden = TRUE | ||
| //end-redtext | ||
|
|
||
| //start-engineering | ||
| /datum/achievement/engineering | ||
| name = "Isaac Clarke" | ||
| desc = "Survive a full round as part of the Engineering team." | ||
| id = ENGIEDEPT + 1 | ||
| /datum/achievement/engineering/solar | ||
| name = "Honest Work" | ||
| desc = "Set up one of the solar arrays as part of the Engineering team." | ||
| id = ENGIEDEPT + 2 | ||
| /datum/achievement/engineering/scotty | ||
| name = "\"I'm givin' it all she's got, Captain!\"" | ||
| desc = "As Chief Engineer, produce more than three megawatts of power." | ||
| id = ENGIEDEPT + 3 | ||
| /datum/achievement/engineering/toasty | ||
| name = "Nice and Toasty" | ||
| desc = "Get set on fire in a fire-resistant suit." | ||
| id = ENGIEDEPT + 4 | ||
| //end-engineering | ||
|
|
||
| #undef GREENTEXT | ||
| #undef REDTEXT | ||
| #undef REDTEXT | ||
| #undef ENGIEDEPT | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -273,6 +273,7 @@ | |
| var/nexttime = 0 // time for a panel to rotate of 1 degree in manual tracking | ||
| var/obj/machinery/power/tracker/connected_tracker = null | ||
| var/list/connected_panels = list() | ||
| var/mob/living/carbon/human/last_user // The last guy to open up the console | ||
|
|
||
| /obj/machinery/power/solar_control/Initialize() | ||
| . = ..() | ||
|
|
@@ -344,6 +345,8 @@ | |
| if(!ui) | ||
| ui = new(user, src, ui_key, "solar_control", name, 380, 230, master_ui, state) | ||
| ui.open() | ||
| if(ishuman(user)) | ||
| last_user = user | ||
|
|
||
| /obj/machinery/power/solar_control/ui_data() | ||
| var/data = list() | ||
|
|
@@ -398,7 +401,11 @@ | |
| set_panels(targetdir) | ||
| return TRUE | ||
| if(action == "refresh") | ||
| var/was_not_connected = !(connected_tracker && connected_panels.len) | ||
| search_for_connected() | ||
| if(last_user && last_user.client && 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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verify his client exists here |
||
| SSachievements.unlock_achievement(/datum/achievement/engineering/solar, last_user.client) // Give him the achievement | ||
| if(connected_tracker && track == 2) | ||
| connected_tracker.set_angle(SSsun.angle) | ||
| set_panels(currentdir) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,3 +74,4 @@ | |
| 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) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not control the rate at which spacemen dab |
||
Uh oh!
There was an error while loading. Please reload this page.