mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
working code and original tests pass
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user