Skip to content

Commit

Permalink
✏️ Change Cargojacke to Softshelljacke
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte2036 committed May 21, 2024
1 parent f4d14b0 commit cb2f3a2
Showing 1 changed file with 103 additions and 55 deletions.
158 changes: 103 additions & 55 deletions src/lib/clothing/clothingConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,109 @@ import type {
HumanMeasurement
} from './clothing';

export const clothingMeasurementImportance: { [K in HumanGender]: { [M in ClothingType]: ClothingMeasurementImportance[] } } = {
'W': {
'Jacket': [
{ measurement: 'chestCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true },
{ measurement: 'hipCircumference', allowTolerance: true, factors: {tooHigh: 10, tooLow: 1} }
],
'Suit': [
{ measurement: 'chestCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true },
{ measurement: 'hipCircumference', allowTolerance: true, factors: {tooHigh: 10, tooLow: 1} }
],
'Trousers': [
{ measurement: 'waistCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true, factors: {tooHigh: 3, tooLow: 1} },
{ measurement: 'hipCircumference', allowTolerance: true, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'insideLegLength', allowTolerance: true, factors: {tooHigh: 3, tooLow: 1}}
],
'Skirt': [
{ measurement: 'waistCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true },
{ measurement: 'hipCircumference', allowTolerance: true, factors: {tooHigh: 10, tooLow: 1} }
],
'Sweater': [
{ measurement: 'chestCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true }
]
},
export const clothingMeasurementImportance: {
[K in HumanGender]: { [M in ClothingType]: ClothingMeasurementImportance[] };
} = {
W: {
Jacket: [
{
measurement: 'chestCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true },
{ measurement: 'hipCircumference', allowTolerance: true, factors: { tooHigh: 10, tooLow: 1 } }
],
Suit: [
{
measurement: 'chestCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true },
{ measurement: 'hipCircumference', allowTolerance: true, factors: { tooHigh: 10, tooLow: 1 } }
],
Trousers: [
{
measurement: 'waistCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true, factors: { tooHigh: 3, tooLow: 1 } },
{
measurement: 'hipCircumference',
allowTolerance: true,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'insideLegLength', allowTolerance: true, factors: { tooHigh: 3, tooLow: 1 } }
],
Skirt: [
{
measurement: 'waistCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true },
{ measurement: 'hipCircumference', allowTolerance: true, factors: { tooHigh: 10, tooLow: 1 } }
],
Sweater: [
{
measurement: 'chestCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true }
]
},

'M': {
'Jacket': [
{ measurement: 'chestCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true },
{ measurement: 'waistCircumference', allowTolerance: true, factors: {tooHigh: 10, tooLow: 1} }
],
'Suit': [
{ measurement: 'chestCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'waistCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true },
{ measurement: 'insideLegLength', allowTolerance: true }
],
'Trousers': [
{ measurement: 'waistCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true, factors: {tooHigh: 3, tooLow: 1} },
{ measurement: 'insideLegLength', allowTolerance: true, factors: {tooHigh: 3, tooLow: 1} }
],
'Sweater': [
{ measurement: 'chestCircumference', allowTolerance: false, factors: {tooHigh: 10, tooLow: 1} },
{ measurement: 'height', allowTolerance: true }
],
'Skirt': []

}

}
M: {
Jacket: [
{
measurement: 'chestCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true },
{
measurement: 'waistCircumference',
allowTolerance: true,
factors: { tooHigh: 10, tooLow: 1 }
}
],
Suit: [
{
measurement: 'chestCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{
measurement: 'waistCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true },
{ measurement: 'insideLegLength', allowTolerance: true }
],
Trousers: [
{
measurement: 'waistCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true, factors: { tooHigh: 3, tooLow: 1 } },
{ measurement: 'insideLegLength', allowTolerance: true, factors: { tooHigh: 3, tooLow: 1 } }
],
Sweater: [
{
measurement: 'chestCircumference',
allowTolerance: false,
factors: { tooHigh: 10, tooLow: 1 }
},
{ measurement: 'height', allowTolerance: true }
],
Skirt: []
}
};

export const clothingFriendlyNames: { [K in ClothingName]: string } = {
EA_O: 'MEA Jacke',
Expand All @@ -70,7 +118,7 @@ export const clothingFriendlyNames: { [K in ClothingName]: string } = {
DA_R: 'Dienstanzugrock',
TB_O: 'Thermojacke',
TB_U: 'Thermohose',
TD_O: 'Cargojacke',
TD_O: 'Softshelljacke',
TD_U: 'Cargohose'
};

Expand Down

0 comments on commit cb2f3a2

Please # to comment.