From af2f1b0f355ebccc6c18d0003805557a12a6eb50 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 14 Nov 2021 10:41:06 -0500 Subject: [PATCH] Add 'people in crowd' area units These let you see how many people are in that area, for a few different crowd densities. --- macrovision.js | 20 ++++++++++++++++++++ presets/characters.js | 10 +++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/macrovision.js b/macrovision.js index d2d7f604..bf94d9fd 100644 --- a/macrovision.js +++ b/macrovision.js @@ -173,6 +173,16 @@ math.createUnit("footballFields", { prefixes: "long" }); +math.createUnit("peopleInLooseCrowd", { + definition: "1 m^2" +}) +math.createUnit("peopleInCrowd", { + definition: "0.3333333333333333 m^2" +}) +math.createUnit("peopleInDenseCrowd", { + definition: "0.2 m^2" +}) + math.createUnit("people", { definition: "75 liters", prefixes: "long" @@ -387,6 +397,9 @@ const unitChoices = { "miles^2" ], "relative": [ + "peopleInLooseCrowd", + "peopleInCrowd", + "peopleInDenseCrowd", "footballFields" ], "quirky": [ @@ -2597,6 +2610,13 @@ const backgroundColors = { "light": "#555" } +const settingsCategories = { + "background": "Background", + "controls": "Controls", + "info": "Info", + "visuals": "Visuals" +} + const settingsData = { "show-vertical-scale": { name: "Vertical Scale", diff --git a/presets/characters.js b/presets/characters.js index b463f383..5b2630c4 100644 --- a/presets/characters.js +++ b/presets/characters.js @@ -35274,7 +35274,15 @@ characterMakers.push(() => makeCharacter( extra: 1400/711, bottom: 126/1526 }, - form: "meowberus" + form: "meowberus", + extraAttributes: { + "pawArea": { + name: "Paw Size", + power: 2, + type: "area", + base: math.unit(35, "m^2") + } + } }, }, [