const speciesMakers = {}; speciesMakers["Synx"] = () => { const species = makeCharacter( { name: "Synx" }, { goochick: { height: math.unit(0.5, "feet"), weight: math.unit(3, "lb"), name: "Goo-chick", image: { source: "./media/species/synx/goo-chick.svg", bottom: 0.12 } }, oozeeel: { height: math.unit(1.5, "feet"), weight: math.unit(20, "lb"), name: "Ooze-eel", image: { source: "./media/species/synx/ooze-eel.svg", bottom: 0.09 } }, synx: { height: math.unit(3.4, "feet"), weight: math.unit(150, "lb"), name: "Synx", image: { source: "./media/species/synx/synx.svg", extra: 8.06 / 6.6, bottom: 0.05 } }, weeper: { height: math.unit(3.9, "feet"), weight: math.unit(300, "lb"), name: "Weeper", image: { source: "./media/species/synx/weeper.svg", extra: 8.04 / 7.5, bottom: 0.05 } }, }, [ ] ); species.defaultView = "synx"; return species; }; speciesMakers["Viper"] = () => makeCharacter( { name: "Viper" }, { front: { height: math.unit(2.6, "meters"), weight: math.unit(500, "lb"), name: "Front", image: { source: "./media/species/viper/front.svg" } }, }, [ { name: "Normal", height: math.unit(2.6, "meters"), default: true }, ] ); function makeSpecies() { const results = []; Object.entries(speciesMakers).forEach(([key, value]) => { results.push( value() ); }); return results; }