Przeglądaj źródła

Allow a size to apply to every form of an entity

This reduces duplication for characters that have many equally-sized macro sizes for
their various forms.
master
Fen Dweller 3 lat temu
rodzic
commit
31fb817aa8
2 zmienionych plików z 21 dodań i 1 usunięć
  1. +1
    -1
      macrovision.js
  2. +20
    -0
      presets/characters.js

+ 1
- 1
macrovision.js Wyświetl plik

@@ -2115,7 +2115,7 @@ function configSizeList(entity) {


entity.sizes.forEach((defaultInfo) => { entity.sizes.forEach((defaultInfo) => {
if (Object.keys(entity.forms).length > 0) { if (Object.keys(entity.forms).length > 0) {
if (defaultInfo.form !== entity.form) {
if (!defaultInfo.allForms && defaultInfo.form !== entity.form) {
return; return;
} }
} }


+ 20
- 0
presets/characters.js Wyświetl plik

@@ -57632,6 +57632,26 @@ characterMakers.push(() => makeCharacter(
default: true, default: true,
form: "snivy" form: "snivy"
}, },
{
name: "Macro",
height: math.unit(500, "feet"),
allForms: true
},
{
name: "Mega Macro",
height: math.unit(10, "earths"),
allForms: true
},
{
name: "Giga Macro",
height: math.unit(1, "galaxy"),
allForms: true
},
{
name: "Godly Macro",
height: math.unit(1e10, "multiverses"),
allForms: true
},
], ],
{ {
"snivy": { "snivy": {


Ładowanie…
Anuluj
Zapisz