mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
commit
1f44218e9c
@ -12,18 +12,18 @@
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/starlight": "^0.24.2",
|
||||
"astro": "4.10.2",
|
||||
"@astrojs/starlight": "^0.30.3",
|
||||
"astro": "5.1.3",
|
||||
"rehype-external-links": "^3.0.0",
|
||||
"sharp": "^0.33.4"
|
||||
"sharp": "^0.33.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@apidevtools/json-schema-ref-parser": "^11.6.4",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"fast-xml-parser": "^4.4.0",
|
||||
"prettier": "^3.3.2",
|
||||
"prettier-plugin-astro": "^0.14.0",
|
||||
"@apidevtools/json-schema-ref-parser": "^11.7.3",
|
||||
"eslint": "^9.17.0",
|
||||
"eslint-plugin-prettier": "^5.2.1",
|
||||
"fast-xml-parser": "^4.5.1",
|
||||
"prettier": "^3.4.2",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
"xml-js": "^1.6.11"
|
||||
}
|
||||
}
|
||||
|
||||
9761
docs/pnpm-lock.yaml
generated
9761
docs/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@ title: Update Existing Planets
|
||||
description: A guide for updating base-game planets in New Horizons
|
||||
---
|
||||
|
||||
Similar to above, make a config where "Name" is the name of the planet. The name should be able to just match their in-game english names, however if you encounter any issues with that here are the in-code names for planets that are guaranteed to work:
|
||||
Similar to above, make a config where "Name" is the name of the planet. The name should be able to just match their in-game english names, however if you encounter any issues with that here are the in-code names for planets that are guaranteed to work (case sensitive!):
|
||||
|
||||
- `SUN`
|
||||
- `CAVE_TWIN` (Ember Twin)
|
||||
@ -14,7 +14,7 @@ Similar to above, make a config where "Name" is the name of the planet. The name
|
||||
- `DARK_BRAMBLE`
|
||||
- `COMET` (Interloper)
|
||||
- `WHITE_HOLE`
|
||||
- `WHITE_HOLE_TARGET` (The Whitehole Station)
|
||||
- `WhiteholeStation`
|
||||
- `QUANTUM_MOON`
|
||||
- `ORBITAL_PROBE_CANNON`
|
||||
- `TIMBER_MOON` (Attlerock)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: Celestial Body Schema
|
||||
description: Describes a celestial body to generate
|
||||
title: "Celestial Body Schema"
|
||||
description: "Describes a celestial body to generate"
|
||||
editUrl: false
|
||||
schemaFile: body_schema.json
|
||||
schemaFile: "body_schema.json"
|
||||
---
|
||||
|
||||
import Schema from "/src/components/Schemas/Schema.astro";
|
||||
|
||||
@ -35,8 +35,7 @@ Once in VSCode, paste this code into the file:
|
||||
"Base": {
|
||||
"groundSize": 100,
|
||||
"surfaceSize": 101,
|
||||
"surfaceGravity": 12,
|
||||
"hasMapMarker": true
|
||||
"surfaceGravity": 12
|
||||
},
|
||||
"Orbit": {
|
||||
"semiMajorAxis": 1300,
|
||||
@ -55,6 +54,9 @@ Once in VSCode, paste this code into the file:
|
||||
"fogSize": 150,
|
||||
"fogDensity": 0.2,
|
||||
"hasRain": true
|
||||
},
|
||||
"MapMarker": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
```
|
||||
@ -71,18 +73,19 @@ Alright so now that we understand how the file is structures, let's look into wh
|
||||
- Base has a `groundSize` of 100, this generates a perfect sphere that is 100 units in radius as the ground of our planet
|
||||
- It also has a `surfaceSize` of 101, surface size is used in many calculations, it's generally good to set it to a bit bigger than ground size.
|
||||
- `surfaceGravity` describes the strength of gravity on this planet, in this case it's 12 which is the same as Timber Hearth
|
||||
- `hasMapMarker` tells new horizons that we want this planet to have a marker on the map screen
|
||||
- Next it has another object called `Orbit`
|
||||
- `semiMajorAxis` specifies the radius of the orbit (how far away the body is from its parent)
|
||||
- `primaryBody` is set to `TIMBER_HEARTH``, this makes our planet orbit timber hearth
|
||||
- `isMoon` simply tells the game how close you have to be to the planet in map mode before its name appears
|
||||
- `isTidallyLocked` makes sure that one side of our planet is always facing timber hearth (the primary body)
|
||||
- Finally, we have `Atmosphere`
|
||||
- Next, we have `Atmosphere`
|
||||
- Its `size` is 150, this simply sets how far away from the planet our atmosphere stretches
|
||||
- Its `fogTint` is set to a color which is an object with r, g, b, and a properties (properties is another word for keys)
|
||||
- `fogSize` determines how far away the fog stretches from the planet
|
||||
- `fogDensity` is simply how dense the fog is
|
||||
- `hasRain` makes rainfall on the planet
|
||||
- Finally, we have `MapMarker`
|
||||
- `enabled` tells New Horizons that we want this planet to have a marker on the map screen
|
||||
|
||||
#### What's a Schema?
|
||||
|
||||
|
||||
@ -5,7 +5,9 @@ const addFrontmatter = (
|
||||
content: string,
|
||||
frontmatter: Record<string, boolean | string | object>
|
||||
) => {
|
||||
const entries = Object.entries(frontmatter).map(([key, value]) => `${key}: ${value}`);
|
||||
const entries = Object.entries(frontmatter).map(
|
||||
([key, value]) => `${key}: ${JSON.stringify(value)}`
|
||||
);
|
||||
|
||||
if (entries.length === 0) {
|
||||
return content;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user