| @@ -1,6 +1,6 @@ | |||||
| const characterMakers = []; | const characterMakers = []; | ||||
| function makeCharacter(name, author, viewInfo, defaultSizes) { | |||||
| function makeCharacter(name, author, viewInfo, defaultSizes, defaultSize) { | |||||
| views = {}; | views = {}; | ||||
| console.log(viewInfo) | console.log(viewInfo) | ||||
| @@ -35,6 +35,10 @@ function makeCharacter(name, author, viewInfo, defaultSizes) { | |||||
| entity.defaults = defaultSizes; | entity.defaults = defaultSizes; | ||||
| } | } | ||||
| if (defaultSize) { | |||||
| entity.views[entity.defaultView].height = defaultSize; | |||||
| } | |||||
| return entity; | return entity; | ||||
| } | } | ||||
| @@ -69,7 +73,8 @@ characterMakers["Fen"] = () => { | |||||
| name: "Macro+", | name: "Macro+", | ||||
| height: math.unit(100, "meter") | height: math.unit(100, "meter") | ||||
| } | } | ||||
| ] | |||||
| ], | |||||
| math.unit(100, "meter") | |||||
| ) | ) | ||||
| }; | }; | ||||
| @@ -1153,4 +1158,4 @@ function makeCharacters() { | |||||
| }); | }); | ||||
| }); | }); | ||||
| return results; | return results; | ||||
| } | |||||
| } | |||||