Skip to content

Commit

Permalink
liquid pump functional
Browse files Browse the repository at this point in the history
  • Loading branch information
PotatoTomahto committed Aug 23, 2024
1 parent 4f5756d commit f4a23a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions monkestation/code/modules/liquids/liquid_pump.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
icon_state = "liquid_pump"
density = TRUE
max_integrity = 500
anchored = FALSE
resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF
/// How many reagents at maximum can it hold
var/max_volume = 10000
Expand Down Expand Up @@ -34,7 +33,7 @@
toggle_working()

/obj/structure/liquid_pump/AltClick(mob/living/user)
if(!user.can_perform_action())
if(!user.can_perform_action(src))
return
to_chat(user, span_notice("You flick [src]'s spewing mode [spewing_mode ? "off" : "on"]."))
spewing_mode = !spewing_mode
Expand Down Expand Up @@ -67,7 +66,7 @@
var/target_siphon_amt = (T.liquids.liquid_group.total_reagent_volume * pump_speed_percentage) + pump_speed_flat
if(target_siphon_amt > free_space)
target_siphon_amt = free_space
T.liquids.liquid_group.transfer_to_atom(src, target_siphon_amt)
T.liquids.liquid_group.trans_to_seperate_group(reagents, target_siphon_amt)
return

/obj/structure/liquid_pump/update_icon()
Expand Down

0 comments on commit f4a23a1

Please sign in to comment.