Moves egg type options to vorepanel

This commit is contained in:
Chompstation Bot
2021-02-09 18:01:23 +00:00
parent 26d1ac519a
commit a4c3583309
5 changed files with 33 additions and 4 deletions

View File

@@ -39,7 +39,7 @@
var/is_wet = TRUE // Is this belly's insides made of slimy parts?
var/wet_loop = TRUE // Does the belly have a fleshy loop playing?
var/obj/item/weapon/storage/vore_egg/ownegg // Is this belly creating an egg?
var/egg_type = "egg" // Default egg type and path.
var/egg_type = "Egg" // Default egg type and path.
var/egg_path = /obj/item/weapon/storage/vore_egg
//I don't think we've ever altered these lists. making them static until someone actually overrides them somewhere.
@@ -162,6 +162,7 @@
"is_wet",
"wet_loop",
"belly_fullscreen",
<<<<<<< HEAD
"disable_hud",
"reagent_mode_flags", //CHOMP start of variables from CHOMP
"reagentbellymode",
@@ -188,6 +189,12 @@
"fullness4_messages",
"fullness5_messages",
"vorespawn_blacklist" //CHOMP end of variables from CHOMP
||||||| parent of 337c472feb... Merge pull request #9666 from Verkister/eggpanel
"disable_hud"
=======
"disable_hud",
"egg_type"
>>>>>>> 337c472feb... Merge pull request #9666 from Verkister/eggpanel
)
/*These have been pulled from the above list as these were chomp edits for liquid belly stuff. This needs to be ported back in for TGUI port
@@ -821,6 +828,7 @@
dupe.belly_fullscreen = belly_fullscreen
dupe.disable_hud = disable_hud
dupe.egg_type = egg_type
//// Object-holding variables
//struggle_messages_outside - strings

View File

@@ -179,8 +179,7 @@ GLOBAL_LIST_INIT(digest_modes, list())
egg_contents += E
if(egg_contents.len)
if(!B.ownegg)
if(B.owner.vore_egg_type in tf_vore_egg_types)
B.egg_type = B.owner.vore_egg_type
if(B.egg_type in tf_vore_egg_types)
B.egg_path = tf_vore_egg_types[B.egg_type]
B.ownegg = new B.egg_path(B)
for(var/atom/movable/C in egg_contents)

View File

@@ -150,6 +150,7 @@
"release_sound" = selected.release_sound,
// "messages" // TODO
"can_taste" = selected.can_taste,
"egg_type" = selected.egg_type,
"nutrition_percent" = selected.nutrition_percent,
"digest_brute" = selected.digest_brute,
"digest_burn" = selected.digest_burn,
@@ -165,6 +166,7 @@
if(selected.mode_flags & selected.mode_flag_list[flag_name])
data["selected"]["addons"].Add(flag_name)
data["selected"]["egg_type"] = selected.egg_type
data["selected"]["contaminates"] = selected.contaminates
data["selected"]["contaminate_flavor"] = null
data["selected"]["contaminate_color"] = null
@@ -696,6 +698,13 @@
host.vore_selected.contamination_color = new_color
host.vore_selected.items_preserved.Cut() //To re-contaminate for new color
. = TRUE
if("b_egg_type")
var/list/menu_list = global_vore_egg_types.Copy()
var/new_egg_type = input("Choose Egg Type (currently [host.vore_selected.egg_type])") as null|anything in menu_list
if(!new_egg_type)
return FALSE
host.vore_selected.egg_type = new_egg_type
. = TRUE
if("b_desc")
var/new_desc = html_encode(input(usr,"Belly Description ([BELLIES_DESC_MAX] char limit):","New Description",host.vore_selected.desc) as message|null)

View File

@@ -221,6 +221,7 @@ const VoreSelectedBelly = (props, context) => {
contaminates,
contaminate_flavor,
contaminate_color,
egg_type,
escapable,
interacts,
contents,
@@ -400,6 +401,12 @@ const VoreSelectedBelly = (props, context) => {
selected={can_taste}
content={can_taste ? "Yes" : "No"} />
</LabeledList.Item>
<LabeledList.Item label="Egg Type">
<Button
onClick={() => act("set_attribute", { attribute: "b_egg_type" })}
icon="pen"
content={capitalize(egg_type)} />
</LabeledList.Item>
</LabeledList>
</Flex.Item>
<Flex.Item basis="49%" grow={1}>

File diff suppressed because one or more lines are too long