mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 02:56:14 +01:00
SM, Tesla, and general engineering adjustments [MDB IGNORE] [IDB IGNORE] (#19339)
* Update supermatter.dm * fix * clamps these * gwah * Stops tesla from zapping unwrenched coils * tesla upgrade * unglobals this * fix these * Update coil.dm * Update coil.dm * Descriptions * Update coil.dm * Update coil.dm * Update coil.dm * Update coil.dm * Update coil.dm * ranges * UGH * Update vorestation.dme * meth * monster math * Update coil.dm * Update coil.dm * Update coil.dm * THEY DID THE MATH * the monster math * egwah * desc * Update coil.dm * Returns * Update coil.dm * Lowers amount gained * this * im dumb * tesy * Update coil.dm * Update coil.dm * fixes initial density on blast doors * dot * fixes these * Mapper Tools * icon * these * Fixes the sound following people * recursive geigers * Make this a proc * Update supermatter.dm * less ear destroying * these * makes canisters not get softlocked * Hotkeys * proper return * Makes shield gen useful. Gets rid of a harddel Adds hydromagnetic trap * math * Makes buttons more clear. * lol * Fixes ancient runtime * Adds craftable mass driver buttons * button * fixes this * Makes misclicks not destroy solar panels * Update solar.dm * fix this * make them both numbers * upports reflectors * Update reflector.dm * Update reflectors.dm * solar panel and climbable * Gets rid of 'as X' * Adds account console * Update vorestation.dme * Craftable message server * Update message_server.dm * These * con struct * Update smartfridge.dm * whoop * edits
This commit is contained in:
@@ -227,6 +227,8 @@
|
||||
turbine = null
|
||||
if(src.loc && anchored)
|
||||
turbine = locate(/obj/machinery/atmospherics/pipeturbine) in get_step(src,dir)
|
||||
if(!turbine)
|
||||
return
|
||||
if (turbine.stat & (BROKEN) || !turbine.anchored || turn(turbine.dir,180) != dir)
|
||||
turbine = null
|
||||
|
||||
|
||||
@@ -255,6 +255,31 @@ Thus, the two variables affect pump operation are set in New():
|
||||
"You hear ratchet.")
|
||||
deconstruct()
|
||||
|
||||
/obj/machinery/atmospherics/binary/pump/click_alt(mob/user)
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
if(!allowed(user))
|
||||
to_chat(user, span_warning("Access denied."))
|
||||
return CLICK_ACTION_BLOCKING
|
||||
|
||||
to_chat(user, span_notice("You set the [name] to max output"))
|
||||
target_pressure = max_pressure_setting
|
||||
add_fingerprint(user)
|
||||
return CLICK_ACTION_SUCCESS
|
||||
|
||||
|
||||
/obj/machinery/atmospherics/binary/pump/click_ctrl(mob/user)
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
if(!allowed(user))
|
||||
to_chat(user, span_warning("Access denied."))
|
||||
return CLICK_ACTION_BLOCKING
|
||||
|
||||
update_use_power(!use_power)
|
||||
update_icon()
|
||||
add_fingerprint(user)
|
||||
to_chat(user, span_notice("You toggle the [name] [use_power ? "on" : "off"]."))
|
||||
|
||||
return CLICK_ACTION_SUCCESS
|
||||
|
||||
/obj/machinery/atmospherics/binary/pump/high_power
|
||||
icon = 'icons/atmos/volume_pump.dmi'
|
||||
icon_state = "map_off"
|
||||
|
||||
@@ -303,5 +303,29 @@ Thus, the two variables affect pump operation are set in New():
|
||||
to_chat(user, span_notice("The pump quiets down as you turn its limiters back on."))
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/atmospherics/binary/volume_pump/click_alt(mob/user)
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
if(!allowed(user))
|
||||
to_chat(user, span_warning("Access denied."))
|
||||
return CLICK_ACTION_BLOCKING
|
||||
|
||||
to_chat(user, span_notice("You set the [name] to max output"))
|
||||
transfer_rate = max_transfer_rate
|
||||
add_fingerprint(user)
|
||||
return CLICK_ACTION_SUCCESS
|
||||
|
||||
|
||||
/obj/machinery/atmospherics/binary/volume_pump/click_ctrl(mob/user)
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
if(!allowed(user))
|
||||
to_chat(user, span_warning("Access denied."))
|
||||
return CLICK_ACTION_BLOCKING
|
||||
|
||||
update_use_power(!use_power)
|
||||
update_icon()
|
||||
add_fingerprint(user)
|
||||
to_chat(user, span_notice("You toggle the [name] [use_power ? "on" : "off"]."))
|
||||
return CLICK_ACTION_SUCCESS
|
||||
|
||||
#undef VOLUME_PUMP_MAX_OUTPUT_PRESSURE
|
||||
#undef VOLUME_PUMP_LEAK_AMOUNT
|
||||
|
||||
Reference in New Issue
Block a user