浏览代码

Add earth/solar mass units; make Pi even bigger

master
Fen Dweller 5 年前
父节点
当前提交
352afc4512
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. +7
    -1
      macrovision.js
  2. +2
    -2
      presets/characters.js

+ 7
- 1
macrovision.js 查看文件

@@ -158,6 +158,10 @@ math.createUnit("peopleMass", {
definition: "80 kg",
prefixes: "long"
});
math.createUnit("earthMass", {
definition: "5.97e24 kg",
prefixes: "long"
});

const defaultUnits = {
length: {
@@ -259,7 +263,9 @@ const unitChoices = {
"tons"
],
"relative": [
"peopleMass"
"peopleMass",
"earthMass",
"solarmasses"
]
}
}


+ 2
- 2
presets/characters.js 查看文件

@@ -32636,8 +32636,8 @@ characterMakers.push(() => makeCharacter(
{
solgooleo: {
height: math.unit(4, "meters"),
weight: math.unit(3600*1.5, "kg"),
volume: math.unit(3600, "liters"),
weight: math.unit(6000*1.5, "kg"),
volume: math.unit(6000, "liters"),
name: "Solgooleo",
image: {
source: "./media/characters/pi/solgooleo.svg",


正在加载...
取消
保存