Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document to spawn for fleets and hazards #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions wiki/MapData.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,20 @@ system <name>
minables <name> <count#> <energy#>
trade <commodity> <cost#>
fleet <name> <period#>
to spawn
<condition> <comp> <value>
(has | not) <condition>
never
(and | or)
...
raid <fleet> [<min-attraction#> [<max-attraction#>]]
hazard <name> <period#>
to spawn
<condition> <comp> <value>
(has | not) <condition>
never
(and | or)
...
"starfield density" <density#>
object [<name>]
sprite <sprite>
Expand Down Expand Up @@ -155,8 +167,20 @@ system <name>
minables <name> <count#> <energy#>
trade <commodity> <cost#>
fleet <name> <period#>
to spawn
<condition> <comp> <value>
(has | not) <condition>
never
(and | or)
...
raid <fleet> [<min-attraction#> [<max-attraction#>]]
hazard <name> <period#>
to spawn
<condition> <comp> <value>
(has | not) <condition>
never
(and | or)
...
"starfield density" <density#>
object [<name>]
sprite <sprite>
Expand Down Expand Up @@ -297,10 +321,18 @@ A type of commodity sold at the planets in this system and its cost.

```html
fleet <name> <period#>
to spawn
<condition> <comp> <value>
(has | not) <condition>
never
(and | or)
...
```

The name of a [fleet](CreatingFleets) that is spawned in this system with a certain period. The period of a fleet is the average number of frames between each spawning of this specific fleet, with there being 60 frames in a second. A random number from 0 to `period - 1` is rolled each frame, and if the result lands on 0 then a fleet is spawned.

Beginning in v. 0.10.11, fleets can be given to spawn conditions. A fleet will only appear if the to spawn condition is fulfilled.
petervdmeer marked this conversation as resolved.
Show resolved Hide resolved

```html
raid <fleet> [<min-attraction#> [<max-attraction#>]]
```
Expand All @@ -315,9 +347,18 @@ If present, no raid fleets will ever spawn in this system, whether they be from

```html
hazard <name> <period#>
to spawn
<condition> <comp> <value>
(has | not) <condition>
never
(and | or)
...
```
The name of a [hazard](CreatingHazards) that is created in this system within a certain period. The period of a hazard follows the same behavior as the period of a fleet. Once a hazard is created, the behavior of the hazard is dictated by the hazard itself. The origin of any hazards defined here is the system center. **(v. 0.9.13)**

Beginning in v. 0.10.11, hazards can be given to spawn conditions. An hazard will only appear if the to spawn condition is fulfilled.
petervdmeer marked this conversation as resolved.
Show resolved Hide resolved


```html
"starfield density" <density#>
```
Expand Down
Loading