Skip to content

Commit

Permalink
Update gravitygenerator.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Sep 1, 2024
1 parent 3077591 commit 921a285
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/modules/power/gravitygenerator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,20 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne

// 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/I, mob/user, params)
switch(broken_state)
Expand Down

0 comments on commit 921a285

Please sign in to comment.