From: marstr Date: Mon, 2 Sep 2024 09:45:30 +0000 (+0200) Subject: Changes in meadow patches, added building:house in defines.py. Added appropriate... X-Git-Url: https://marstr.online/code/gitweb.cgi?a=commitdiff_plain;h=66b8fabd8cae02a7cd5754a1a263027189ab2f7d;p=orthographic Changes in meadow patches, added building:house in defines.py. Added appropriate textures for houses. --- diff --git a/Textures/building/common/brd/b3.png b/Textures/building/common/brd/b3.png new file mode 100644 index 0000000..4e70a5e Binary files /dev/null and b/Textures/building/common/brd/b3.png differ diff --git a/Textures/building/common/brd/b4.png b/Textures/building/common/brd/b4.png new file mode 100644 index 0000000..5efe2c6 Binary files /dev/null and b/Textures/building/common/brd/b4.png differ diff --git a/Textures/building/common/ptc/b3_p1.png b/Textures/building/common/ptc/b3_p1.png new file mode 100644 index 0000000..d4873c2 Binary files /dev/null and b/Textures/building/common/ptc/b3_p1.png differ diff --git a/Textures/building/common/ptc/b3_p2.png b/Textures/building/common/ptc/b3_p2.png new file mode 100644 index 0000000..e2d303c Binary files /dev/null and b/Textures/building/common/ptc/b3_p2.png differ diff --git a/Textures/building/common/ptc/b4_p1.png b/Textures/building/common/ptc/b4_p1.png new file mode 100644 index 0000000..3c1850f Binary files /dev/null and b/Textures/building/common/ptc/b4_p1.png differ diff --git a/Textures/building/common/ptc/b4_p2.png b/Textures/building/common/ptc/b4_p2.png new file mode 100644 index 0000000..9bfda8c Binary files /dev/null and b/Textures/building/common/ptc/b4_p2.png differ diff --git a/Textures/building/house/brd/b1.png b/Textures/building/house/brd/b1.png new file mode 100644 index 0000000..bbefc72 Binary files /dev/null and b/Textures/building/house/brd/b1.png differ diff --git a/Textures/building/house/brd/b2.png b/Textures/building/house/brd/b2.png new file mode 100644 index 0000000..30620d2 Binary files /dev/null and b/Textures/building/house/brd/b2.png differ diff --git a/Textures/building/house/ptc/b1_p1.png b/Textures/building/house/ptc/b1_p1.png new file mode 100644 index 0000000..4a675a1 Binary files /dev/null and b/Textures/building/house/ptc/b1_p1.png differ diff --git a/Textures/building/house/ptc/b1_p2.png b/Textures/building/house/ptc/b1_p2.png new file mode 100644 index 0000000..bf78f23 Binary files /dev/null and b/Textures/building/house/ptc/b1_p2.png differ diff --git a/Textures/building/house/ptc/b2_p1.png b/Textures/building/house/ptc/b2_p1.png new file mode 100644 index 0000000..4ced44e Binary files /dev/null and b/Textures/building/house/ptc/b2_p1.png differ diff --git a/Textures/building/house/ptc/b2_p2.png b/Textures/building/house/ptc/b2_p2.png new file mode 100644 index 0000000..1f06ca9 Binary files /dev/null and b/Textures/building/house/ptc/b2_p2.png differ diff --git a/defines.py b/defines.py index 0a78fe8..2677a8f 100644 --- a/defines.py +++ b/defines.py @@ -145,6 +145,7 @@ mstr_ortho_layers = [ ("building", "office", "building", "office"), ("building", "retail", "building", "industrial"), ("building", "industrial", "building", "industrial"), + ("building", "house", "building", "house"), ("building", "yes", "building", "common") ] @@ -213,5 +214,6 @@ mstr_mask_blur = [ ("building", "office", 1), ("building", "retail", 1), ("building", "industrial", 1), + ("building", "house", 1), ("building", "yes", 1) ] diff --git a/layergen.py b/layergen.py index d8ef1e7..194ec9d 100644 --- a/layergen.py +++ b/layergen.py @@ -366,7 +366,7 @@ class mstr_layergen: # Here we need to do some magic to make some features look more natural if (self._tag == "landuse" and self._value == "meadow") or (self._tag == "natural" and self._value == "grassland") or (self._tag == "natural" and self._value == "heath"): - amt = randrange(1,3) + amt = randrange(1,5) for i in range(1, amt): ptc = randrange(1, 7) img = Image.open(mstr_datafolder + "Textures\\tile\\completion\\p" + str(ptc)+".png")