From bd5e798f735214980bbbec51b08fd505cfbd2a1c Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 16 Jul 2023 19:47:56 +0200 Subject: [PATCH] [MIRROR] Adds repair examine hints to the Gravgen [MDB IGNORE] (#22494) * Adds repair examine hints to the Gravgen (#76824) ## 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 ## Why It's Good For The Game Knowing you can fix stuff is the first step to fixing it! ![image](https://github.com/tgstation/tgstation/assets/76465278/1608e98a-2ad8-4ad9-a9e4-8fb3867fbff1) ## Changelog :cl: qol: in the event the Gravity Generator becomes damaged, examining the main part will now give repair hints! /:cl: --------- Co-authored-by: Jacquerel * Adds repair examine hints to the Gravgen --------- Co-authored-by: OrionTheFox <76465278+OrionTheFox@users.noreply.github.com> Co-authored-by: Jacquerel --- code/modules/power/gravitygenerator.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index 588bea85dd6..aa1a11ce4e8 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -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 screws need to be refastened.") + if(GRAV_NEEDS_WELDING) + . += span_notice("There's lots of broken seals on the framework, it could use some welding.") + if(GRAV_NEEDS_PLASTEEL) + . += span_notice("Some of this damaged plating needs full replacement. 10 plasteel should be enough.") + if(GRAV_NEEDS_WRENCH) + . += span_notice("The new plating just needs to be bolted into place now.") + // Fixing the gravity generator. /obj/machinery/gravity_generator/main/attackby(obj/item/weapon, mob/user, params) if(machine_stat & BROKEN)