This commit is contained in:
Matteo Pagliazzi
2020-05-07 16:15:11 +02:00
parent 613895e294
commit ebd22296df
2 changed files with 30 additions and 22 deletions

View File

@@ -23,12 +23,16 @@ forOwn(backgrounds, (value, key) => {
const appearances = {
hair,
shirt: shirts,
size: sizes,
skin: skins,
chair: chairs,
background: reorderedBgs,
hair, NO appearances.hair.{bangs|base|beard|color|flower|mustache}[key].set.setPrice and .key
shirt: shirts, appearances.shirt[key].set.setPrice and .key
size: sizes, NO, does not have cost
skin: skins, OK, appearances.skin[key].set.setPrice and .key
chair: chairs, NO, does not have cost
background: reorderedBgs, OK appearances.backgroud[key].set.setPrice and .key
};
^ check with get(path) after validating name because hair are nested for example
^ if item.set exist -> use item.setPrice
^ what about other items in set?
export default appearances;