]> marstr Code Repo - orthographic/commitdiff
Changes in meadow patches, added building:house in defines.py. Added appropriate...
authormarstr <marcus@marstr.online>
Mon, 2 Sep 2024 09:45:30 +0000 (11:45 +0200)
committermarstr <marcus@marstr.online>
Mon, 2 Sep 2024 09:45:30 +0000 (11:45 +0200)
14 files changed:
Textures/building/common/brd/b3.png [new file with mode: 0644]
Textures/building/common/brd/b4.png [new file with mode: 0644]
Textures/building/common/ptc/b3_p1.png [new file with mode: 0644]
Textures/building/common/ptc/b3_p2.png [new file with mode: 0644]
Textures/building/common/ptc/b4_p1.png [new file with mode: 0644]
Textures/building/common/ptc/b4_p2.png [new file with mode: 0644]
Textures/building/house/brd/b1.png [new file with mode: 0644]
Textures/building/house/brd/b2.png [new file with mode: 0644]
Textures/building/house/ptc/b1_p1.png [new file with mode: 0644]
Textures/building/house/ptc/b1_p2.png [new file with mode: 0644]
Textures/building/house/ptc/b2_p1.png [new file with mode: 0644]
Textures/building/house/ptc/b2_p2.png [new file with mode: 0644]
defines.py
layergen.py

diff --git a/Textures/building/common/brd/b3.png b/Textures/building/common/brd/b3.png
new file mode 100644 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
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 (file)
index 0000000..1f06ca9
Binary files /dev/null and b/Textures/building/house/ptc/b2_p2.png differ
index 0a78fe8adf6fe5b9331fbfbd238ff06257478c9a..2677a8f6836549c4221ca3999f03e3d4a1bfb838 100644 (file)
@@ -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)
 ]
index d8ef1e7257c3f27e6efa365c0ea3876343f6a65c..194ec9d5f89092e708d02ba604218561b9f3e14d 100644 (file)
@@ -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")