Skip to content

Commit dc60a67

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 2944c71 + 8e939d9 commit dc60a67

26 files changed

Lines changed: 1230 additions & 955 deletions

File tree

code/_onclick/hud/new_player.dm

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -776,41 +776,46 @@
776776
if(!hud || !show_static)
777777
maptext = null
778778
return
779+
780+
var/round_started = SSticker.HasRoundStarted()
779781
if(!MC_RUNNING())
780-
maptext = MAPTEXT("<span style='text-align: center; vertical-align: middle'>Loading...</span>")
782+
maptext = MAPTEXT("<span style='text-align: center; vertical-align: middle'>[(round_started ? null : "[time_remaining_str()]<br />")]Loading...</span>")
781783
return
782784
if(SSticker.IsPostgame())
783785
maptext = MAPTEXT("<span style='text-align: center; vertical-align: middle'>Game ended, <br /> \
784786
restart soon</span>")
785787
return
786788

787789
var/new_maptext
788-
var/round_started = SSticker.HasRoundStarted()
789790
if(round_started)
790791
new_maptext = "<span style='text-align: center; vertical-align: middle'>[SSmapping.current_map.map_name]<br /> \
791792
[LAZYLEN(GLOB.clients)] player\s online<br /> \
792793
[ROUND_TIME()] in<br />"
793794
new_maptext += "</span>"
794795
else
795-
var/time_remaining = SSticker.GetTimeLeft()
796-
if(time_remaining > 0)
797-
time_remaining = "[round(time_remaining/10)]s"
798-
else if(time_remaining == -10)
799-
time_remaining = "DELAYED"
800-
else
801-
time_remaining = "SOON"
802796

803797
if(hud.mymob.client?.holder)
804-
new_maptext = "<span style='text-align: center; vertical-align: middle'>Starting in [time_remaining]<br /> \
798+
new_maptext = "<span style='text-align: center; vertical-align: middle'>[time_remaining_str()]<br /> \
805799
[LAZYLEN(GLOB.clients)] player\s<br /> \
806800
[SSticker.totalPlayersReady] players ready<br /> \
807801
[SSticker.total_admins_ready] / [length(GLOB.admins)] admins ready</span>"
808802
else
809-
new_maptext = "<span style='text-align: center; vertical-align: middle; font-size: 18px'>[time_remaining]</span><br /> \
803+
new_maptext = "<span style='text-align: center; vertical-align: middle; font-size: 18px'>[time_remaining_str()]</span><br /> \
810804
<span style='text-align: center; vertical-align: middle'>[LAZYLEN(GLOB.clients)] player\s</span>"
811805

812806
maptext = MAPTEXT(new_maptext)
813807

808+
/atom/movable/screen/lobby/new_player_info/proc/time_remaining_str()
809+
var/time_remaining = SSticker.GetTimeLeft()
810+
if(time_remaining > 0)
811+
time_remaining = "[round(time_remaining/10)]s"
812+
else if(time_remaining == -10)
813+
time_remaining = "DELAYED"
814+
else
815+
time_remaining = "SOON"
816+
817+
return "Starting in [time_remaining]"
818+
814819
#undef OVERLAY_X_DIFF
815820
#undef OVERLAY_Y_DIFF
816821

code/datums/components/plumbing/chemical_acclimator.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
. = ..()
1616
if(!reagents.holder_full())
1717
return
18+
reagents.flags &= ~NO_REACT
1819
myacclimator.acclimate_state = reagents.chem_temp > myacclimator.target_temperature ? AC_COOLING : AC_HEATING
1920
myacclimator.update_appearance(UPDATE_ICON_STATE)
2021

code/datums/wires/r_n_d.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
R.hacked = !R.hacked
3434
if(WIRE_DISABLE)
3535
R.disabled = !R.disabled
36+
3637
/datum/wires/rnd/on_cut(wire, mend, source)
3738
var/obj/machinery/rnd/R = holder
3839
switch(wire)

code/game/objects/items/rcd/RPLD.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
/obj/machinery/plumbing/fermenter = 30,
4545
/obj/machinery/plumbing/liquid_pump = 35, //extracting chemicals from ground is one way of creation
4646
/obj/machinery/plumbing/disposer = 10,
47-
/obj/machinery/plumbing/buffer = 10, //creates chemicals as it waits for other buffers containing other chemicals and when mixed creates new chemicals
4847
),
4948

5049
//category 2 distributors i.e devices which inject , move around , remove chemicals from the network
@@ -62,9 +61,10 @@
6261
"Storage" = list(
6362
/obj/machinery/plumbing/tank = 20,
6463
/obj/machinery/plumbing/acclimator = 10,
64+
/obj/machinery/plumbing/buffer = 10,
6565
/obj/machinery/plumbing/bottler = 50,
6666
/obj/machinery/plumbing/pill_press = 20,
67-
/obj/machinery/iv_drip/plumbing = 20
67+
/obj/machinery/iv_drip/plumbing = 20,
6868
),
6969
)
7070

code/modules/asset_cache/assets/plumbing.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"manifold",
2525
"pipe_input",
2626
"filter",
27-
"splitter_tri",
27+
"splitter",
2828
"beacon",
2929
"pipe_output",
3030
"tank",

code/modules/plumbing/plumbers/_plumb_machinery.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
///Plumbing machinery is always gonna need reagents, so we might aswell put it here
1818
var/buffer = 50
1919
///Flags for reagents, like INJECTABLE, TRANSPARENT bla bla everything thats in DEFINES/reagents.dm
20-
var/reagent_flags = TRANSPARENT
20+
var/reagent_flags = TRANSPARENT | NO_REACT
2121

2222
/obj/machinery/plumbing/Initialize(mapload)
2323
. = ..()

code/modules/plumbing/plumbers/_plumb_reagents.dm

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
if(amount <= 0)
5353
return FALSE
5454

55-
//Set up new reagents to inherit the old ongoing reactions
56-
transfer_reactions(target_holder)
57-
5855
var/list/cached_reagents = reagent_list
5956
var/transfer_amount
6057
var/transfered_amount
@@ -100,10 +97,6 @@
10097
break
10198
update_total()
10299

103-
//handle reactions
104-
target_holder.handle_reactions()
105-
handle_reactions()
106-
107100
return total_transfered_amount
108101

109102
///Excludes catalysts during the emptying process
@@ -190,9 +183,6 @@
190183
if(amount <= 0)
191184
return FALSE
192185

193-
//Set up new reagents to inherit the old ongoing reactions
194-
transfer_reactions(target_holder)
195-
196186
var/working_volume
197187
var/catalyst_volume
198188
var/transfer_amount
@@ -247,10 +237,6 @@
247237
break
248238
update_total()
249239

250-
//handle reactions
251-
target_holder.handle_reactions()
252-
handle_reactions()
253-
254240
return total_transfered_amount
255241

256242

@@ -302,9 +288,6 @@
302288
if(amount <= 0)
303289
return FALSE
304290

305-
//Set up new reagents to inherit the old ongoing reactions
306-
transfer_reactions(target_holder)
307-
308291
var/transfer_amount
309292
var/transfered_amount
310293
var/total_transfered_amount = 0
@@ -342,8 +325,4 @@
342325
reagent.volume -= transfered_amount
343326
update_total()
344327

345-
//handle reactions
346-
target_holder.handle_reactions()
347-
handle_reactions()
348-
349328
return total_transfered_amount

code/modules/plumbing/plumbers/acclimator.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282

8383
if(acclimate_state == AC_EMPTYING && !reagents.total_volume)
8484
acclimate_state = AC_FILLING
85+
reagents.flags |= NO_REACT
8586
update_appearance(UPDATE_ICON_STATE)
8687

8788
/obj/machinery/plumbing/acclimator/ui_interact(mob/user, datum/tgui/ui)

code/modules/plumbing/plumbers/bottler.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
reagents = /datum/reagents
66
layer = ABOVE_ALL_MOB_LAYER
77
plane = ABOVE_GAME_PLANE
8-
reagent_flags = TRANSPARENT | DRAINABLE
8+
reagent_flags = /obj/machinery/plumbing::reagent_flags | DRAINABLE
99
buffer = 100
1010

1111
///how much do we fill

code/modules/plumbing/plumbers/fermenter.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
icon_state = "fermenter"
55
layer = ABOVE_ALL_MOB_LAYER
66
plane = ABOVE_GAME_PLANE
7-
reagent_flags = TRANSPARENT | DRAINABLE
7+
reagent_flags = /obj/machinery/plumbing::reagent_flags | DRAINABLE
88
buffer = 400
99

1010
///input dir

0 commit comments

Comments
 (0)