mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
[MIRROR] Adds repair examine hints to the Gravgen [MDB IGNORE] (#22494)
* Adds repair examine hints to the Gravgen (#76824) <!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request Somebody told me recently "Hey, I beat the gravgen up and nothing would fix it!" Turns out there's actually really simple steps! Just absolutely no in-game place to find them. So, about 2 weeks after I said I would, I made less than 15 lines of code. Fixing any other horrifying things about the gravgen are out of my control. I'm just capable of the examine lol <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game Knowing you can fix stuff is the first step to fixing it!  <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 qol: in the event the Gravity Generator becomes damaged, examining the main part will now give repair hints! /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. --> --------- Co-authored-by: Jacquerel <hnevard@ gmail.com> * Adds repair examine hints to the Gravgen --------- Co-authored-by: OrionTheFox <76465278+OrionTheFox@users.noreply.github.com> Co-authored-by: Jacquerel <hnevard@ gmail.com>
This commit is contained in:
@@ -215,6 +215,20 @@ GLOBAL_LIST_EMPTY(gravity_generators)
|
||||
|
||||
// Interaction
|
||||
|
||||
/obj/machinery/gravity_generator/main/examine(mob/user)
|
||||
. = ..()
|
||||
if(!(machine_stat & BROKEN))
|
||||
return
|
||||
switch(broken_state)
|
||||
if(GRAV_NEEDS_SCREWDRIVER)
|
||||
. += span_notice("The entire frame is barely holding together, the <b>screws</b> need to be refastened.")
|
||||
if(GRAV_NEEDS_WELDING)
|
||||
. += span_notice("There's lots of broken seals on the framework, it could use some <b>welding</b>.")
|
||||
if(GRAV_NEEDS_PLASTEEL)
|
||||
. += span_notice("Some of this damaged plating needs full replacement. <b>10 plasteel</> should be enough.")
|
||||
if(GRAV_NEEDS_WRENCH)
|
||||
. += span_notice("The new plating just needs to be <b>bolted</b> into place now.")
|
||||
|
||||
// Fixing the gravity generator.
|
||||
/obj/machinery/gravity_generator/main/attackby(obj/item/weapon, mob/user, params)
|
||||
if(machine_stat & BROKEN)
|
||||
|
||||
Reference in New Issue
Block a user