From e7eedcb0fc2bff29c8cf518df58ba573f258fffd Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 6 Mar 2020 15:41:45 -0500 Subject: [PATCH] Add Torvid. Allow for authors/owners to not have links. --- macrovision.js | 28 +- media/attribution.js | 20 + media/characters/torvid/side.svg | 892 +++++++++++++++++++++++++++++++ presets/characters.js | 25 + 4 files changed, 957 insertions(+), 8 deletions(-) create mode 100644 media/characters/torvid/side.svg diff --git a/macrovision.js b/macrovision.js index 8550a585..c5b4dbc6 100644 --- a/macrovision.js +++ b/macrovision.js @@ -742,10 +742,16 @@ function displayAttribution(file) { authorHolder.appendChild(list); authors.forEach(author => { const authorEntry = document.createElement("li"); - const link = document.createElement("a"); - link.href = author.url; - link.innerText = author.name; - authorEntry.appendChild(link); + if (author.url) { + const link = document.createElement("a"); + link.href = author.url; + link.innerText = author.name; + authorEntry.appendChild(link); + } else { + const div = document.createElement("div"); + div.innerText = author.name; + authorEntry.appendChild(div); + } list.appendChild(authorEntry); }); @@ -768,10 +774,16 @@ function displayAttribution(file) { ownerHolder.appendChild(list); owners.forEach(owner => { const ownerEntry = document.createElement("li"); - const link = document.createElement("a"); - link.href = owner.url; - link.innerText = owner.name; - ownerEntry.appendChild(link); + if (owner.url) { + const link = document.createElement("a"); + link.href = owner.url; + link.innerText = owner.name; + ownerEntry.appendChild(link); + } else { + const div = document.createElement("div"); + div.innerText = owner.name; + ownerEntry.appendChild(div); + } list.appendChild(ownerEntry); }); diff --git a/media/attribution.js b/media/attribution.js index 14ed4c34..7bc40213 100644 --- a/media/attribution.js +++ b/media/attribution.js @@ -4023,6 +4023,18 @@ const attributionData = { "ranger" ] }, + { + prefix: "./media/characters/torvid/", + files: [ + { name: "side.svg", source: null } + ], + authors: [ + "anonymous" + ], + owners: [ + "torvid" + ] + }, { prefix: "./media/characters/toto/", files: [ @@ -6091,6 +6103,14 @@ const attributionData = { "name": "Chiptuni", "url": "https://www.furaffinity.net/user/chiptuni/", }, + "anonymous": { + "name": "Anonymous", + "url": null, + }, + "torvid": { + "name": "Torvid", + "url": "https://www.furaffinity.net/user/aberrate/", + }, } } diff --git a/media/characters/torvid/side.svg b/media/characters/torvid/side.svg new file mode 100644 index 00000000..b75852aa --- /dev/null +++ b/media/characters/torvid/side.svg @@ -0,0 +1,892 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/presets/characters.js b/presets/characters.js index f423785b..016c3701 100644 --- a/presets/characters.js +++ b/presets/characters.js @@ -10592,6 +10592,31 @@ characterMakers["Chip"] = () => { ) }; +characterMakers["Torvid"] = () => { + return makeCharacter( + "Torvid", + "Torvid", + { + side: { + height: math.unit(2.3, "meters"), + weight: math.unit(3500, "lb"), + name: "Side", + image: { + source: "./media/characters/torvid/side.svg", + extra: 1972/722 * (1 / (1 - 0.035)), + bottom: 0.035 + } + }, + }, + [ + { + name: "Normal", + height: math.unit(2.3, "meters"), + default: true + }, + ] + ) +}; function makeCharacters() { const results = []; results.push({