fix: 🩹 keep naming conventions and data file structure the same across characters

This commit is contained in:
Sebin Nyshkim 2025-08-03 02:38:06 +02:00
parent 1183d50a5a
commit 511db97eb5
Signed by: SebinNyshkim
SSH key fingerprint: SHA256:LG1WHMySL/4iW/Yci+0eHgbf0te5beRiLlmyoY8E5D0
2 changed files with 15 additions and 11 deletions

View file

@ -22,15 +22,20 @@ const firstName = 'Jarek',
size: 18, size: 18,
girth: 4 girth: 4
}, },
description = "Don't encroach on his turf, or you'll be sorry!"; description = "Don't encroach on his turf, or you'll be sorry!",
profile = [
{ icon: 'fa7-solid:mars', type: 'Sex/Gender', text: gender },
{ icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) },
{ icon: 'fa7-solid:weight-hanging', type: 'Weight', text: getWeight(weight) },
{ icon: 'fa7-solid:ruler', type: 'Tail Length', text: getTailLength(tailLength) }
];
const getTraits = () => [ const getTraits = (type) => {
// { icon: 'fa7-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth() }, switch (type) {
{ icon: 'fa7-solid:mars', type: 'Sex/Gender', text: gender }, default:
{ icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) }, return profile;
{ icon: 'fa7-solid:weight-hanging', type: 'Weight', text: getWeight(weight) }, }
{ icon: 'fa7-solid:ruler', type: 'Tail Length', text: getTailLength(tailLength) } };
];
export default { export default {
firstName, firstName,

View file

@ -26,7 +26,7 @@ const firstName = 'Viktor',
{ icon: 'fa7-solid:heart', type: 'Orientation', text: orientation }, { icon: 'fa7-solid:heart', type: 'Orientation', text: orientation },
{ icon: 'fa7-solid:arrows-up-down', type: 'Role', text: role } { icon: 'fa7-solid:arrows-up-down', type: 'Role', text: role }
], ],
anatomy = [ profile = [
{ icon: 'fa7-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth(dateOfBirth) }, { icon: 'fa7-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth(dateOfBirth) },
{ icon: 'fa7-solid:mars', type: 'Sex/Gender', text: `${gender} (${pronouns})` }, { icon: 'fa7-solid:mars', type: 'Sex/Gender', text: `${gender} (${pronouns})` },
{ icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) }, { icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) },
@ -37,9 +37,8 @@ const getTraits = (type) => {
switch (type) { switch (type) {
case 'sexuality': case 'sexuality':
return sexuality; return sexuality;
default: default:
return anatomy; return profile;
} }
}; };