Biome condition for fishes
This commit is contained in:
@@ -141,7 +141,8 @@ The fishing table, `bworld:gameplay/fishing`, isn't a file: the base game builds
|
||||
"bworld:fish": {
|
||||
"weight": 20,
|
||||
"seasons": ["summer", "autumn"],
|
||||
"time": { "from": 20, "to": 4 }
|
||||
"time": { "from": 20, "to": 4 },
|
||||
"biomes": ["bworld:swamp", "#bworld:is_river"]
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -150,15 +151,17 @@ The fishing table, `bworld:gameplay/fishing`, isn't a file: the base game builds
|
||||
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `weight` | How often it's caught against the other fish, 1 when not given. |
|
||||
| `seasons` | The [seasons](../worldgen/biomes.md#seasons) it's caught in where the hook is, every one when not given. |
|
||||
| `biomes` | The [biomes](../worldgen/biomes.md#biome-ids) and [biome tags](../worldgen/biomes.md#biome-tags) it's caught in where the hook is, every one when not given. |
|
||||
| `time` | The hours it's caught at on a 24 hour clock, from `from` up to `to`, like `6.5` for 06:30. When `from` is past `to` it wraps around midnight. All day when not given. |
|
||||
|
||||
When every fish can be ruled out, nothing is caught, so keep one that's always caught.
|
||||
|
||||
Those become the `bworld:season` and `bworld:time` conditions, which any table can use too:
|
||||
Those become the `bworld:season`, `bworld:biome` and `bworld:time` conditions, which any table can use too:
|
||||
|
||||
| `condition` | Fields | Holds when |
|
||||
| --------------- | ------------ | ----------------------------------------------------------------------------- |
|
||||
| `bworld:season` | `seasons` | The season where it happens is one of `seasons`, like `["summer", "autumn"]`. |
|
||||
| `bworld:biome` | `biomes` | The biome where it happens is one of `biomes`, or in one of its `#tags`. |
|
||||
| `bworld:time` | `from`, `to` | The hour is from `from` up to `to`, the same as the fish's `time`. |
|
||||
|
||||
## From a Script
|
||||
|
||||
Reference in New Issue
Block a user