fix: 🩹 keep naming conventions and data file structure the same across characters
This commit is contained in:
parent
1183d50a5a
commit
511db97eb5
2 changed files with 15 additions and 11 deletions
|
@ -22,15 +22,20 @@ const firstName = 'Jarek',
|
|||
size: 18,
|
||||
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 = () => [
|
||||
// { icon: 'fa7-solid:cake-candles', type: 'Date of Birth', text: getDateOfBirth() },
|
||||
{ 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 = (type) => {
|
||||
switch (type) {
|
||||
default:
|
||||
return profile;
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
firstName,
|
||||
|
|
|
@ -26,7 +26,7 @@ const firstName = 'Viktor',
|
|||
{ icon: 'fa7-solid:heart', type: 'Orientation', text: orientation },
|
||||
{ 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:mars', type: 'Sex/Gender', text: `${gender} (${pronouns})` },
|
||||
{ icon: 'fa7-solid:ruler', type: 'Height', text: getHeight(height) },
|
||||
|
@ -37,9 +37,8 @@ const getTraits = (type) => {
|
|||
switch (type) {
|
||||
case 'sexuality':
|
||||
return sexuality;
|
||||
|
||||
default:
|
||||
return anatomy;
|
||||
return profile;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue