vorepanel hotfix (#17760)

This commit is contained in:
Kashargul
2025-05-28 11:29:23 -07:00
committed by GitHub
parent fa10adb9e6
commit e8621dd5f0
15 changed files with 101 additions and 20 deletions
@@ -93,11 +93,14 @@
. = TRUE
if("b_egg_name")
var/new_egg_name = sanitize(params["val"], BELLIES_NAME_MAX, FALSE, TRUE, FALSE)
host.vore_selected.egg_name = new_egg_name
if(!new_egg_name)
host.vore_selected.egg_name = null
else
host.vore_selected.egg_name = new_egg_name
. = TRUE
if("b_egg_size")
var/new_egg_size = text2num(params["val"])
if(isnum(new_egg_size))
if(!isnum(new_egg_size))
return FALSE
if(new_egg_size == 0) //Disable.
host.vore_selected.egg_size = 0
@@ -178,6 +178,7 @@
"egg_type" = selected.egg_type,
"egg_types" = GLOB.global_vore_egg_types,
"egg_name" = selected.egg_name,
"egg_name_length" = BELLIES_NAME_MAX,
"egg_size" = selected.egg_size,
"recycling" = selected.recycling,
"storing_nutrition" = selected.storing_nutrition,