working code and original tests pass

This commit is contained in:
Matteo Pagliazzi
2020-06-02 23:58:48 +02:00
parent b911ecdcf0
commit 0896837528
3 changed files with 155 additions and 55 deletions

View File

@@ -23,16 +23,12 @@ forOwn(backgrounds, (value, key) => {
const appearances = {
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
hair,
shirt: shirts,
size: sizes,
skin: skins,
chair: chairs,
background: reorderedBgs,
};
^ 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;