From bd8f16d38d9922aeb07fb3d85e4ad129eeb3c263 Mon Sep 17 00:00:00 2001 From: jakand Date: Sun, 23 May 2021 17:26:57 +0200 Subject: [PATCH 1/2] =?UTF-8?q?U=C5=BCycie=20nowo=20dodanych=20tile'=C3=B3?= =?UTF-8?q?w=20w=20poszczeg=C3=B3lnych=20biomach.=20Ola=20Kuba?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- survival/generators/tile_generator.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/survival/generators/tile_generator.py b/survival/generators/tile_generator.py index 3fc133d..58bd506 100644 --- a/survival/generators/tile_generator.py +++ b/survival/generators/tile_generator.py @@ -14,6 +14,10 @@ class TileGenerator: "Grass4": Tile(origin=(96, 0), cost=1), "Sand": Tile(origin=(64, 64), cost=20), "Puddle": Tile(origin=(96, 64), cost=20), + "DarkGrass": Tile(origin=(64, 96), cost=2), + "Water": Tile(origin=(96, 96), cost=3), + "Ice": Tile(origin=(0, 64), cost=2), + "Ice2": Tile(origin=(32, 64), cost=2), } TilesValues = list(Tiles.values()) @@ -21,11 +25,11 @@ class TileGenerator: Biomes = [ BiomePreset("Desert", min_height=0.2, min_moisture=0, min_heat=0.5, tiles=[Tiles["Grass1"], Tiles["Grass2"], Tiles["Grass3"], Tiles["Grass4"]]), - BiomePreset("Forest", min_height=0.2, min_moisture=0.4, min_heat=0.4, tiles=[Tiles["Sand"]]), + BiomePreset("Forest", min_height=0.2, min_moisture=0.4, min_heat=0.4, tiles=[Tiles["DarkGrass"]]), BiomePreset("Grassland", min_height=0.2, min_moisture=0.5, min_heat=0.3, tiles=[Tiles["Sand"]]), BiomePreset("Marsh", min_height=0.3, min_moisture=0.5, min_heat=0.62, tiles=[Tiles["Puddle"]]), - BiomePreset("Ocean", min_height=0, min_moisture=0, min_heat=0, tiles=[Tiles["Sand"]]), - BiomePreset("Tundra", min_height=0.2, min_moisture=0, min_heat=0, tiles=[Tiles["Puddle"]]) + BiomePreset("Ocean", min_height=0, min_moisture=0, min_heat=0, tiles=[Tiles["Water"]]), + BiomePreset("Tundra", min_height=0.2, min_moisture=0, min_heat=0, tiles=[Tiles["Ice"], Tiles["Ice2"]]) ] @staticmethod From 7e697cadeb6cae53ce93de3131ecbac66f00b435 Mon Sep 17 00:00:00 2001 From: jakand Date: Sun, 23 May 2021 17:35:06 +0200 Subject: [PATCH 2/2] =?UTF-8?q?U=C5=BCycie=20nowo=20dodanych=20tile'=C3=B3?= =?UTF-8?q?w=20w=20poszczeg=C3=B3lnych=20biomach.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- survival/generators/tile_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/survival/generators/tile_generator.py b/survival/generators/tile_generator.py index 58bd506..64f69ce 100644 --- a/survival/generators/tile_generator.py +++ b/survival/generators/tile_generator.py @@ -16,8 +16,8 @@ class TileGenerator: "Puddle": Tile(origin=(96, 64), cost=20), "DarkGrass": Tile(origin=(64, 96), cost=2), "Water": Tile(origin=(96, 96), cost=3), - "Ice": Tile(origin=(0, 64), cost=2), - "Ice2": Tile(origin=(32, 64), cost=2), + "Ice": Tile(origin=(0, 96), cost=2), + "Ice2": Tile(origin=(32, 96), cost=2), } TilesValues = list(Tiles.values())