From 05a9d92ed533c06922e13787221b9f676237d216 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 14 Feb 2020 15:58:11 -0500 Subject: [PATCH] Add Chez; add mountains --- media/LICENSES.md | 9 ++++ media/characters/chez/front.svg | 81 +++++++++++++++++++++++++++++++++ media/characters/chez/side.svg | 67 +++++++++++++++++++++++++++ media/naturals/mountain.svg | 10 ++++ presets/characters.js | 38 +++++++++++++++- presets/naturals.js | 29 ++++++++++++ 6 files changed, 233 insertions(+), 1 deletion(-) create mode 100644 media/characters/chez/front.svg create mode 100644 media/characters/chez/side.svg create mode 100644 media/naturals/mountain.svg diff --git a/media/LICENSES.md b/media/LICENSES.md index 30a583f5..ff4789e8 100644 --- a/media/LICENSES.md +++ b/media/LICENSES.md @@ -545,6 +545,15 @@ https://www.furaffinity.net/view/16607998/ * front.svg +## Chez + +**https://www.furaffinity.net/gallery/ashtrek/** + +(no link) + +* front.svg +* side.svg + # Naturals * front.svg diff --git a/media/characters/chez/front.svg b/media/characters/chez/front.svg new file mode 100644 index 00000000..85c3e2e6 --- /dev/null +++ b/media/characters/chez/front.svg @@ -0,0 +1,81 @@ + + + + + diff --git a/media/characters/chez/side.svg b/media/characters/chez/side.svg new file mode 100644 index 00000000..a7b8c12e --- /dev/null +++ b/media/characters/chez/side.svg @@ -0,0 +1,67 @@ + + + + + diff --git a/media/naturals/mountain.svg b/media/naturals/mountain.svg new file mode 100644 index 00000000..65d47bbb --- /dev/null +++ b/media/naturals/mountain.svg @@ -0,0 +1,10 @@ + + + + + + diff --git a/presets/characters.js b/presets/characters.js index cd76e08a..372a3621 100644 --- a/presets/characters.js +++ b/presets/characters.js @@ -58,7 +58,7 @@ characterMakers["Fen"] = () => { weight: math.unit(124.738, "kg"), name: "Body", image: { - source: "./media/characters/fen/back.svg" + source: "./media/characters/236.svg" } } }, @@ -2540,6 +2540,42 @@ characterMakers["Draylen"] = () => { ) }; +characterMakers["Chez"] = () => { + return makeCharacter( + "Chez", + "Ashtrek", + { + front: { + height: math.unit(7 + 9/12, "feet"), + weight: math.unit(379, "lbs"), + name: "Front", + image: { + source: "./media/characters/chez/front.svg" + } + }, + side: { + height: math.unit(7 + 9/12, "feet"), + weight: math.unit(379, "lbs"), + name: "Side", + image: { + source: "./media/characters/chez/side.svg" + } + } + }, + [ + { + name: "Normal", + height: math.unit(7 + 9/12, "feet") + }, + { + name: "God King", + height: math.unit(9750000, "meters") + } + ], + math.unit(7 + 9/12, "feet") + ) +}; + function makeCharacters() { const results = []; results.push({ diff --git a/presets/naturals.js b/presets/naturals.js index 592ea85a..e0344003 100644 --- a/presets/naturals.js +++ b/presets/naturals.js @@ -55,6 +55,32 @@ function makePlanet(name, diameter, mass, image) { }; } +function makeMountains() { + const views = {}; + + [ + ["Everest", 29029], + ["K2", 28251], + ["Kilimanjaro", 19341], + ["Rainier", 14409], + ["Pikes Peak", 14114], + ["Fuji", 12388], + ["Olympus", 9573], + ].forEach(mountain => { + views[mountain[0]] = { + height: math.unit(mountain[1], "feet"), + image: "./media/naturals/mountain.svg", + name: mountain[0] + } + }); + return { + name: "Mountains", + constructor: () => makeObject( + "Mountains", + views + ) + }; +} function makeNaturals() { const results = []; results.push(makePlanet("Mercury", math.unit(4879, "km"), math.unit(0.330e24, "kg"))); @@ -80,6 +106,9 @@ function makeNaturals() { results.push(makeState("New York", math.unit(494.92, "km"), math.unit(536.63, "km"), math.unit(141297, "km^2"))); results.push(makeState("Texas", math.unit(1183.33, "km"), math.unit(1226.69, "km"), math.unit(695662, "km^2"))); + results.push(makeMountains()); + + results.sort((b1, b2) => { e1 = b1.constructor();