Skip to content

Commit

Permalink
add sand (found near water) and glass
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Jun 4, 2022
1 parent 7ad65ad commit e1245cb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions data/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,24 @@
properties: [portable]
capabilities: [float]

- name: sand
display:
attr: copper
char: ''
description:
- A substance composed mostly of tiny rocks and mineral particles. It
tends to be found near water, and can be used in a furnace to make glass.
properties: [portable, growable]
growth: [0,0]

- name: glass
display:
attr: entity
char: ''
description:
- A pane of a brittle, clear substance, made from melting sand in a furnace.
properties: [portable]

- name: bit (0)
display:
attr: entity
Expand Down
7 changes: 7 additions & 0 deletions data/recipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@
required:
- [1, furnace]

- in:
- [1, sand]
out:
- [1, glass]
required:
- [1, furnace]

- in:
- [32, gear]
- [6, copper wire]
Expand Down
1 change: 1 addition & 0 deletions src/Swarm/Game/WorldGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ testWorld2 baseSeed (Coords ix@(r, c)) =
| h `mod` 10 == 0 = (StoneT, Just "rock")
| otherwise = (StoneT, Nothing)
genBiome Big Soft Natural
| abs (sample ix pn1) < 0.1 = (DirtT, Just "sand")
| even (r + c) = (DirtT, Just "wavy water")
| otherwise = (DirtT, Just "water")
genBiome Small Soft Natural
Expand Down

0 comments on commit e1245cb

Please sign in to comment.