mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
changes vore eggtype to not mess with mob eggtype
This commit is contained in:
@@ -12,7 +12,7 @@ var/XENOMORPH_EGG = "Xenomorph"
|
||||
|
||||
// Define a place to save appearance in character setup
|
||||
/datum/preferences
|
||||
var/egg_type = "Egg" //The egg type they have.
|
||||
var/vore_egg_type = "Egg" //The egg type they have.
|
||||
|
||||
// Definition of the stuff for the egg type.
|
||||
/datum/category_item/player_setup_item/vore/egg
|
||||
@@ -20,31 +20,31 @@ var/XENOMORPH_EGG = "Xenomorph"
|
||||
sort_order = 3
|
||||
|
||||
/datum/category_item/player_setup_item/vore/egg/load_character(var/savefile/S)
|
||||
S["egg_type"] >> pref.egg_type
|
||||
S["vore_egg_type"] >> pref.vore_egg_type
|
||||
|
||||
/datum/category_item/player_setup_item/vore/egg/save_character(var/savefile/S)
|
||||
S["egg_type"] << pref.egg_type
|
||||
S["vore_egg_type"] << pref.vore_egg_type
|
||||
|
||||
/datum/category_item/player_setup_item/vore/egg/sanitize_character()
|
||||
var/valid_egg_types = global_egg_types
|
||||
pref.egg_type = sanitize_inlist(pref.egg_type, valid_egg_types, initial(pref.egg_type))
|
||||
var/valid_vore_egg_types = global_vore_egg_types
|
||||
pref.vore_egg_type = sanitize_inlist(pref.vore_egg_type, valid_vore_egg_types, initial(pref.vore_egg_type))
|
||||
|
||||
/datum/category_item/player_setup_item/vore/egg/copy_to_mob(var/mob/living/carbon/human/character)
|
||||
character.egg_type = pref.egg_type
|
||||
character.vore_egg_type = pref.vore_egg_type
|
||||
|
||||
/datum/category_item/player_setup_item/vore/egg/content(var/mob/user)
|
||||
. += "<br>"
|
||||
. += " Egg Type: <a href='?src=\ref[src];egg_type=1'>[pref.egg_type]</a><br>"
|
||||
. += " Egg Type: <a href='?src=\ref[src];vore_egg_type=1'>[pref.vore_egg_type]</a><br>"
|
||||
|
||||
/datum/category_item/player_setup_item/vore/egg/OnTopic(var/href, var/list/href_list, var/mob/user)
|
||||
if(!CanUseTopic(user))
|
||||
return TOPIC_NOACTION
|
||||
|
||||
else if(href_list["egg_type"])
|
||||
var/list/egg_types = global_egg_types
|
||||
var/selection = input(user, "Choose your character's egg type:", "Character Preference", pref.egg_type) as null|anything in egg_types
|
||||
else if(href_list["vore_egg_type"])
|
||||
var/list/vore_egg_types = global_vore_egg_types
|
||||
var/selection = input(user, "Choose your character's egg type:", "Character Preference", pref.vore_egg_type) as null|anything in vore_egg_types
|
||||
if(selection)
|
||||
pref.egg_type = egg_types[selection]
|
||||
pref.vore_egg_type = vore_egg_types[selection]
|
||||
return TOPIC_REFRESH
|
||||
else
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user