From a2117f6519912514044c460a531260e4b7008817 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 25 Feb 2020 10:40:52 -0500 Subject: [PATCH] Add beer bottles --- media/attribution.js | 1 + media/objects/beer-bottle.svg | 8 ++++++++ presets/objects.js | 17 ++++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 media/objects/beer-bottle.svg diff --git a/media/attribution.js b/media/attribution.js index 88335b36..c7b83248 100644 --- a/media/attribution.js +++ b/media/attribution.js @@ -564,6 +564,7 @@ const attributionData = { files: [ { name: "nail-polish.svg", source: null }, { name: "shot-glass.svg", source: null }, + { name: "beer-bottle.svg", source: null }, ], authors: [ "chemicalcrux" diff --git a/media/objects/beer-bottle.svg b/media/objects/beer-bottle.svg new file mode 100644 index 00000000..f6c6f61a --- /dev/null +++ b/media/objects/beer-bottle.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/presets/objects.js b/presets/objects.js index 5e2c690d..937f3f88 100644 --- a/presets/objects.js +++ b/presets/objects.js @@ -121,7 +121,7 @@ function makeObjects() { constructor: () => makeObject( "Shot Glass", { - bottle: { + glass: { height: math.unit(2 + 3/8, "inches"), mass: math.unit(75, "g"), image: { source: "./media/objects/shot-glass.svg" }, @@ -130,6 +130,21 @@ function makeObjects() { } ) }); + + results.push({ + name: "Beer Bottle", + constructor: () => makeObject( + "Beer Bottle", + { + longneck: { + height: math.unit(9, "inches"), + mass: math.unit(200, "g"), + image: { source: "./media/objects/beer-bottle.svg" }, + name: "Longneck Bottle" + } + } + ) + }); results.sort((b1, b2) => { e1 = b1.constructor();