mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Round value adjustments for react (#7767)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -204,7 +204,7 @@
|
||||
OutputBeaker = null
|
||||
|
||||
if("adjust temp")
|
||||
target_temp = tgui_input_number(usr, "Choose a target temperature.", "Temperature.", T20C)
|
||||
target_temp = tgui_input_number(usr, "Choose a target temperature.", "Temperature.", T20C, max_temp, min_temp, round_value = FALSE)
|
||||
target_temp = CLAMP(target_temp, min_temp, max_temp)
|
||||
|
||||
update_icon()
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
if(istype(O,/obj/item/stack/material))
|
||||
if(O.get_material_name() == MAT_PLASTIC)
|
||||
var/obj/item/stack/S = O
|
||||
var/input_amount = tgui_input_number(user, "How many sheets would you like to add?", "Add plastic", 0, S.get_amount(), 0, 0, TRUE)
|
||||
var/input_amount = tgui_input_number(user, "How many sheets would you like to add?", "Add plastic", 0, S.get_amount())
|
||||
if(input_amount == 0)
|
||||
return
|
||||
var/plastic_input = input_amount * value_plastic
|
||||
@@ -179,7 +179,7 @@
|
||||
if(!beaker.reagents.total_volume)
|
||||
to_chat(user, SPAN_WARNING("Chemical storage is empty!"))
|
||||
return
|
||||
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make small injectors", 0, 100, 0, 0, TRUE)
|
||||
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make small injectors", 0, 100)
|
||||
if(injector_amount > 0)
|
||||
switch(material)
|
||||
if("mold plastic")
|
||||
@@ -210,7 +210,7 @@
|
||||
if(!beaker.reagents.total_volume)
|
||||
to_chat(user, SPAN_WARNING("Chemical storage is empty!"))
|
||||
return
|
||||
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make large injectors", 0, 100, 0, 0, TRUE)
|
||||
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make large injectors", 0, 100)
|
||||
if(injector_amount > 0)
|
||||
switch(material)
|
||||
if("mold plastic")
|
||||
|
||||
Reference in New Issue
Block a user