mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 17:41:56 +00:00
Adds a flavour only height system (#16067)
* height framework * Framework * changelog and useless grammar changes that i'm going to scrap later (when it's not past midnight) * DOUBLE UNDERSCORE * string in int column :) * taj overwrite * all of my issues with SQL have been incredibly stupid and simple things like names and data types * Grammar and Changeling * I didn't use these procs right * Update code/modules/mob/living/carbon/human/species/station/vaurca/vaurca_subspecies.dm * Update code/modules/mob/living/carbon/human/species/station/human/human.dm * why can't i commit all three at once * this sucks * Update code/modules/mob/mob.dm * Update code/modules/mob/mob.dm * Update code/modules/mob/living/carbon/human/species/station/unathi/unathi.dm * Update code/modules/mob/living/carbon/human/species/station/human/human.dm * mattlas * whoops forgot these * Update code/modules/mob/living/carbon/human/species/station/ipc/ipc_subspecies.dm Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it> * sure hope this fixes it * oh god i hope search and replace worked (jk i tested) --------- Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
S["pronouns"] >> pref.pronouns
|
||||
S["age"] >> pref.age
|
||||
S["species"] >> pref.species
|
||||
S["height"]>> pref.height
|
||||
S["spawnpoint"] >> pref.spawnpoint
|
||||
S["OOC_Notes"] >> pref.metadata
|
||||
S["floating_chat_color"] >> pref.floating_chat_color
|
||||
@@ -23,6 +24,7 @@
|
||||
S["pronouns"] << pref.pronouns
|
||||
S["age"] << pref.age
|
||||
S["species"] << pref.species
|
||||
S["height"]<< pref.height
|
||||
S["spawnpoint"] << pref.spawnpoint
|
||||
S["OOC_Notes"] << pref.metadata
|
||||
S["floating_chat_color"] << pref.floating_chat_color
|
||||
@@ -45,6 +47,7 @@
|
||||
"metadata",
|
||||
"spawnpoint",
|
||||
"species",
|
||||
"height",
|
||||
"floating_chat_color",
|
||||
"speech_bubble_type"
|
||||
),
|
||||
@@ -78,6 +81,7 @@
|
||||
"metadata",
|
||||
"spawnpoint",
|
||||
"species",
|
||||
"height",
|
||||
"floating_chat_color",
|
||||
"speech_bubble_type",
|
||||
"id" = 1,
|
||||
@@ -100,6 +104,7 @@
|
||||
"metadata" = pref.metadata,
|
||||
"spawnpoint" = pref.spawnpoint,
|
||||
"species" = pref.species,
|
||||
"height" = pref.height,
|
||||
"tag_status" = pref.machine_tag_status,
|
||||
"serial_number" = pref.machine_serial_number,
|
||||
"ownership_status" = pref.machine_ownership_status,
|
||||
@@ -141,6 +146,7 @@
|
||||
if(!is_in_playable_species)
|
||||
pref.species = SPECIES_HUMAN
|
||||
|
||||
pref.height = sanitize_integer(text2num(pref.height), pref.getMinHeight(), pref.getMaxHeight(), 170)
|
||||
pref.age = sanitize_integer(text2num(pref.age), pref.getMinAge(), pref.getMaxAge(), initial(pref.age))
|
||||
pref.gender = sanitize_gender(pref.gender, pref.species)
|
||||
pref.pronouns = sanitize_pronouns(pref.pronouns, pref.species, pref.gender)
|
||||
@@ -171,6 +177,7 @@
|
||||
if(length(S.selectable_pronouns))
|
||||
dat += "<b>Pronouns:</b> <a href='?src=\ref[src];pronouns=1'><b>[capitalize_first_letters(pref.pronouns)]</b></a><br>"
|
||||
dat += "<b>Age:</b> <a href='?src=\ref[src];age=1'>[pref.age]</a><br>"
|
||||
dat += "<b>Height:</b> <a href='?src=\ref[src];height=1'>[pref.height]</a><br>"
|
||||
dat += "<b>Spawn Point</b>: <a href='?src=\ref[src];spawnpoint=1'>[pref.spawnpoint]</a><br>"
|
||||
dat += "<b>Floating Chat Color:</b> <a href='?src=\ref[src];select_floating_chat_color=1'><b>[pref.floating_chat_color]</b></a><br>"
|
||||
dat += "<b>Speech Bubble Type:</b> <a href='?src=\ref[src];speech_bubble_type=1'><b>[capitalize_first_letters(pref.speech_bubble_type)]</b></a><br>"
|
||||
@@ -246,7 +253,7 @@
|
||||
if(ishuman(H))
|
||||
H.set_floating_chat_color(new_fc_color)
|
||||
return TOPIC_REFRESH
|
||||
|
||||
|
||||
else if(href_list["speech_bubble_type"])
|
||||
var/datum/species/S = all_species[pref.species]
|
||||
pref.speech_bubble_type = next_in_list(pref.speech_bubble_type, S.possible_speech_bubble_types)
|
||||
@@ -278,6 +285,13 @@
|
||||
pref.age = max(min(round(text2num(new_age)), pref.getMaxAge()),pref.getMinAge())
|
||||
return TOPIC_REFRESH
|
||||
|
||||
else if(href_list["height"])
|
||||
var/datum/species/char_spec = all_species[pref.species]
|
||||
var/new_height = input(user, "Choose your character's height: (Values in Centimetres. [char_spec.name] height range [pref.getMinHeight()] - [pref.getMaxHeight()])", "Character Preference", pref.height) as num|null
|
||||
if(new_height && CanUseTopic(user))
|
||||
pref.height = max(min(round(text2num(new_height)), pref.getMaxHeight()),pref.getMinHeight())
|
||||
return TOPIC_REFRESH
|
||||
|
||||
else if(href_list["spawnpoint"])
|
||||
var/list/spawnkeys = list()
|
||||
for(var/S in SSatlas.spawn_locations)
|
||||
|
||||
Reference in New Issue
Block a user