mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 15:48:49 +01:00
Adds autotransfer min/max buttons to vorepanel
The formerly experimental settings are now accessible for everyone now since the vorepanel complexity was reduced to make room for more buttons.
This commit is contained in:
@@ -220,6 +220,8 @@
|
||||
selected_list["autotransfer"]["autotransferchance"] = selected.autotransferchance
|
||||
selected_list["autotransfer"]["autotransferwait"] = selected.autotransferwait
|
||||
selected_list["autotransfer"]["autotransferlocation"] = selected.autotransferlocation
|
||||
selected_list["autotransfer"]["autotransfer_min_amount"] = selected.autotransfer_min_amount
|
||||
selected_list["autotransfer"]["autotransfer_max_amount"] = selected.autotransfer_max_amount
|
||||
|
||||
selected_list["disable_hud"] = selected.disable_hud
|
||||
selected_list["possible_fullscreens"] = icon_states('icons/mob/screen_preview_vore_ch.dmi') //CHOMPedit
|
||||
@@ -1079,6 +1081,16 @@
|
||||
else
|
||||
host.vore_selected.autotransferlocation = choice.name
|
||||
. = TRUE
|
||||
if("b_autotransfer_min_amount")
|
||||
var/autotransfer_min_amount_input = input(user, "Set the minimum amount of items your belly can belly auto-transfer at once. Set to 0 for no limit.", "Auto-Transfer Min Amount") as num|null
|
||||
if(!isnull(autotransfer_min_amount_input))
|
||||
host.vore_selected.autotransfer_min_amount = sanitize_integer(autotransfer_min_amount_input, 0, 100, initial(host.vore_selected.autotransfer_min_amount))
|
||||
. = TRUE
|
||||
if("b_autotransfer_max_amount")
|
||||
var/autotransfer_max_amount_input = input(user, "Set the maximum amount of items your belly can belly auto-transfer at once. Set to 0 for no limit.", "Auto-Transfer Max Amount") as num|null
|
||||
if(!isnull(autotransfer_max_amount_input))
|
||||
host.vore_selected.autotransfer_max_amount = sanitize_integer(autotransfer_max_amount_input, 0, 100, initial(host.vore_selected.autotransfer_max_amount))
|
||||
. = TRUE
|
||||
if("b_autotransfer_enabled")
|
||||
host.vore_selected.autotransfer_enabled = !host.vore_selected.autotransfer_enabled
|
||||
. = TRUE //CHOMPedit End
|
||||
|
||||
Reference in New Issue
Block a user