mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] Adds Toggleable Stomachs w/ toggleable visibility (#8563)
Co-authored-by: C.L <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
S["capture_crystal"] >> pref.capture_crystal
|
||||
S["auto_backup_implant"] >> pref.auto_backup_implant
|
||||
S["borg_petting"] >> pref.borg_petting
|
||||
S["stomach_vision"] >> pref.stomach_vision
|
||||
|
||||
/datum/category_item/player_setup_item/vore/misc/save_character(var/savefile/S)
|
||||
S["show_in_directory"] << pref.show_in_directory
|
||||
@@ -25,12 +26,16 @@
|
||||
S["capture_crystal"] << pref.capture_crystal
|
||||
S["auto_backup_implant"] << pref.auto_backup_implant
|
||||
S["borg_petting"] << pref.borg_petting
|
||||
S["stomach_vision"] << pref.stomach_vision
|
||||
|
||||
/datum/category_item/player_setup_item/vore/misc/copy_to_mob(var/mob/living/carbon/human/character)
|
||||
if(pref.sensorpref > 5 || pref.sensorpref < 1)
|
||||
pref.sensorpref = 5
|
||||
character.sensorpref = pref.sensorpref
|
||||
character.capture_crystal = pref.capture_crystal
|
||||
//Vore Stomach Sprite Preference
|
||||
character.stomach_vision = pref.stomach_vision
|
||||
character.recalculate_vis()
|
||||
|
||||
/datum/category_item/player_setup_item/vore/misc/sanitize_character()
|
||||
pref.show_in_directory = sanitize_integer(pref.show_in_directory, 0, 1, initial(pref.show_in_directory))
|
||||
@@ -42,6 +47,7 @@
|
||||
pref.capture_crystal = sanitize_integer(pref.capture_crystal, 0, 1, initial(pref.capture_crystal))
|
||||
pref.auto_backup_implant = sanitize_integer(pref.auto_backup_implant, 0, 1, initial(pref.auto_backup_implant))
|
||||
pref.borg_petting = sanitize_integer(pref.borg_petting, 0, 1, initial(pref.borg_petting))
|
||||
pref.stomach_vision = sanitize_integer(pref.stomach_vision, 0, 1, initial(pref.stomach_vision))
|
||||
|
||||
/datum/category_item/player_setup_item/vore/misc/content(var/mob/user)
|
||||
. += "<br>"
|
||||
@@ -55,6 +61,7 @@
|
||||
. += "<b>Capture Crystal Preference:</b> <a [pref.capture_crystal ? "class='linkOn'" : ""] href='?src=\ref[src];toggle_capture_crystal=1'><b>[pref.capture_crystal ? "Yes" : "No"]</b></a><br>"
|
||||
. += "<b>Spawn With Backup Implant:</b> <a [pref.auto_backup_implant ? "class='linkOn'" : ""] href='?src=\ref[src];toggle_implant=1'><b>[pref.auto_backup_implant ? "Yes" : "No"]</b></a><br>"
|
||||
. += "<b>Allow petting as robot:</b> <a [pref.borg_petting ? "class='linkOn'" : ""] href='?src=\ref[src];toggle_borg_petting=1'><b>[pref.borg_petting ? "Yes" : "No"]</b></a><br>"
|
||||
. += "<b>Enable Stomach Sprites:</b> <a [pref.stomach_vision ? "class='linkOn'" : ""] href='?src=\ref[src];toggle_stomach_vision=1'><b>[pref.stomach_vision ? "Yes" : "No"]</b></a><br>"
|
||||
|
||||
/datum/category_item/player_setup_item/vore/misc/OnTopic(var/href, var/list/href_list, var/mob/user)
|
||||
if(href_list["toggle_show_in_directory"])
|
||||
@@ -106,4 +113,7 @@
|
||||
else if(href_list["toggle_borg_petting"])
|
||||
pref.borg_petting = pref.borg_petting ? 0 : 1;
|
||||
return TOPIC_REFRESH
|
||||
else if(href_list["toggle_stomach_vision"])
|
||||
pref.stomach_vision = pref.stomach_vision ? 0 : 1;
|
||||
return TOPIC_REFRESH
|
||||
return ..();
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
var/capture_crystal = 1 //Whether or not someone is able to be caught with capture crystals
|
||||
var/auto_backup_implant = FALSE //Whether someone starts with a backup implant or not.
|
||||
var/borg_petting = TRUE //Whether someone can be petted as a borg or not.
|
||||
var/stomach_vision = TRUE //Whether or not someone can view stomach sprites
|
||||
|
||||
var/job_talon_high = 0
|
||||
var/job_talon_med = 0
|
||||
@@ -170,7 +171,7 @@
|
||||
|
||||
/client/verb/toggle_automatic_afk()
|
||||
set name = "Toggle Automatic AFK"
|
||||
set category = "Preferences"
|
||||
set category = "Preferences.Game" //CHOMPEdit
|
||||
set desc = "When enabled, causes you to be automatically marked as AFK if you are idle for too long."
|
||||
|
||||
var/pref_path = /datum/client_preference/auto_afk
|
||||
|
||||
Reference in New Issue
Block a user