소스 검색

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",


불러오는 중...
취소
저장