Files
Penelope HazeandGitHub d0a7f955f8 Fix various issues with names in string interpolation (#89246)
## About The Pull Request
Commit messages should be descriptive of all changes.
The "incorrect `\The` macro capitalization" was intentional when it was
added, but as far as I know TG says "the supermatter" rather than "The
Supermatter," so it's incorrect now.
This is completely untested. I don't even know how you'd go about
testing this, it's just a fuckton of strings.
Someday I want to extract them and run NLP on it to catch grammar
problems...

## Why It's Good For The Game
Basic grammar pass for name strings. Should make `\the` work better and
avoid cases like `the John Smith`.
2025-01-29 17:46:03 +01:00

61 lines
2.2 KiB
Plaintext

///We pump liquids from activated(plungerated) geysers to a plumbing outlet. We need to be wired.
/obj/machinery/plumbing/liquid_pump
name = "liquid pump"
desc = "Pump up those sweet liquids from under the surface. Uses thermal energy from geysers to power itself." //better than placing 200 cables, because it wasn't fun
icon = 'icons/obj/pipes_n_cables/hydrochem/plumbers.dmi'
icon_state = "pump"
base_icon_state = "pump"
anchored = FALSE
density = TRUE
use_power = NO_POWER_USE
///units we pump per second
var/pump_power = 1
///set to true if the loop couldnt find a geyser in process, so it remembers and stops checking every loop until moved. more accurate name would be absolutely_no_geyser_under_me_so_dont_try
var/geyserless = FALSE
///The geyser object
var/obj/structure/geyser/geyser
///volume of our internal buffer
var/volume = 200
/obj/machinery/plumbing/liquid_pump/Initialize(mapload, bolt, layer)
. = ..()
AddComponent(/datum/component/plumbing/simple_supply, bolt, layer)
///please note that the component has a hook in the parent call, wich handles activating and deactivating
/obj/machinery/plumbing/liquid_pump/default_unfasten_wrench(mob/user, obj/item/I, time = 20)
. = ..()
if(. == SUCCESSFUL_UNFASTEN)
geyser = null
update_appearance()
geyserless = FALSE //we switched state, so lets just set this back aswell
/obj/machinery/plumbing/liquid_pump/process(seconds_per_tick)
if(!anchored || panel_open || geyserless)
return
if(!geyser)
for(var/obj/structure/geyser/G in loc.contents)
geyser = G
update_appearance()
if(!geyser) //we didnt find one, abort
geyserless = TRUE
visible_message(span_warning("\The [src] makes a sad beep!"))
playsound(src, 'sound/machines/buzz/buzz-sigh.ogg', 50)
return
pump(seconds_per_tick)
///pump up that sweet geyser nectar
/obj/machinery/plumbing/liquid_pump/proc/pump(seconds_per_tick)
if(!geyser || !geyser.reagents)
return
geyser.reagents.trans_to(src, pump_power * seconds_per_tick)
/obj/machinery/plumbing/liquid_pump/update_icon_state()
if(geyser)
icon_state = "[base_icon_state]-on"
return ..()
icon_state = "[base_icon_state][panel_open ? "-open" : null]"
return ..()