diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-20 14:00:38 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:21:49 +0200 |
commit | 5bf50cd276a568f55fb1d5aedef96e614bed015b (patch) | |
tree | 94adf4dbed06a407e3b3223175d4e5a4e0a21e22 /server/src/game.rs | |
parent | 7d721cae4241e01dd3f88b38a7d005d18d647454 (diff) | |
download | hurrycurry-5bf50cd276a568f55fb1d5aedef96e614bed015b.tar hurrycurry-5bf50cd276a568f55fb1d5aedef96e614bed015b.tar.bz2 hurrycurry-5bf50cd276a568f55fb1d5aedef96e614bed015b.tar.zst |
generated recipes, adjust duration, rename items, other stuff
Diffstat (limited to 'server/src/game.rs')
-rw-r--r-- | server/src/game.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/src/game.rs b/server/src/game.rs index e4693e4a..973b257b 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -54,8 +54,17 @@ impl Game { players: Default::default(), tiles: Default::default(), }; - for (&p, &t) in &gamedata.initial_map { - g.tiles.insert(p, t.into()); + for (&p, (tile, item)) in &gamedata.initial_map { + g.tiles.insert( + p, + Tile { + kind: *tile, + item: item.map(|i| Item { + kind: i, + active: None, + }), + }, + ); } g } |