mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2025-12-06 05:46:09 +00:00
adding house protection (you can't walk through homes)
This commit is contained in:
Submodule lib/gamacon updated: 8b63e8ff2e...45f10a7f73
@@ -6804,7 +6804,7 @@
|
||||
<tile rotation="2" texture="dirt_top_5" x="25" y="34" />
|
||||
<tile rotation="0" texture="dirt" x="25" y="35" />
|
||||
<tile rotation="3" solid="true" texture="" x="25" y="36" />
|
||||
<tile rotation="0" texture="grass_top" x="25" y="37" />
|
||||
<tile rotation="0" solid="true" texture="" x="25" y="37" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="25" y="38" />
|
||||
<tile rotation="0" texture="grass_top" x="25" y="39" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="25" y="40" />
|
||||
@@ -6935,8 +6935,8 @@
|
||||
<tile rotation="1" texture="dirt_top_right_1" x="27" y="27" />
|
||||
<tile rotation="0" texture="dirt_top_1" x="27" y="28" />
|
||||
<tile rotation="0" texture="dirt_top_0" x="27" y="29" />
|
||||
<tile rotation="0" texture="" x="27" y="30" />
|
||||
<tile rotation="0" texture="grass_top" x="27" y="31" />
|
||||
<tile rotation="0" solid="true" texture="" x="27" y="30" />
|
||||
<tile rotation="0" solid="true" texture="" x="27" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="27" y="32" />
|
||||
<tile rotation="0" texture="grass_top" x="27" y="33" />
|
||||
<tile rotation="0" texture="grass_top" x="27" y="34" />
|
||||
@@ -7016,7 +7016,7 @@
|
||||
<tile rotation="2" texture="dirt_top_0" x="28" y="39" />
|
||||
<tile rotation="0" texture="dirt_top_2" x="28" y="40" />
|
||||
<tile rotation="2" texture="dirt_inner_top_left" x="28" y="41" />
|
||||
<tile rotation="2" texture="" x="28" y="42" />
|
||||
<tile rotation="2" solid="true" texture="" x="28" y="42" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="28" y="43" />
|
||||
<tile rotation="0" texture="grass_top" x="28" y="44" />
|
||||
<tile rotation="0" texture="grass_top" x="28" y="45" />
|
||||
@@ -7150,8 +7150,8 @@
|
||||
<tile rotation="0" texture="dirt_top_right_0" x="30" y="35" />
|
||||
<tile rotation="2" texture="dirt_inner_top_left" x="30" y="36" />
|
||||
<tile rotation="2" texture="dirt_top_1" x="30" y="37" />
|
||||
<tile rotation="2" texture="" x="30" y="38" />
|
||||
<tile rotation="0" texture="grass_top" x="30" y="39" />
|
||||
<tile rotation="2" solid="true" texture="" x="30" y="38" />
|
||||
<tile rotation="0" solid="true" texture="" x="30" y="39" />
|
||||
<tile rotation="0" texture="grass_top" x="30" y="40" />
|
||||
<tile rotation="0" texture="grass_top" x="30" y="41" />
|
||||
<tile rotation="0" texture="grass_top" x="30" y="42" />
|
||||
@@ -7210,8 +7210,8 @@
|
||||
<tile rotation="0" texture="dirt" x="31" y="26" />
|
||||
<tile rotation="0" texture="dirt" x="31" y="27" />
|
||||
<tile rotation="0" texture="dirt" x="31" y="28" />
|
||||
<tile rotation="3" texture="" x="31" y="29" />
|
||||
<tile rotation="0" texture="grass_top" x="31" y="30" />
|
||||
<tile rotation="3" solid="true" texture="" x="31" y="29" />
|
||||
<tile rotation="0" solid="true" texture="" x="31" y="30" />
|
||||
<tile rotation="0" texture="grass_top" x="31" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="31" y="32" />
|
||||
<tile rotation="0" texture="grass_top" x="31" y="33" />
|
||||
@@ -7628,7 +7628,7 @@
|
||||
<tile rotation="0" texture="dirt" x="37" y="30" />
|
||||
<tile rotation="0" texture="dirt" x="37" y="31" />
|
||||
<tile rotation="0" texture="dirt" x="37" y="32" />
|
||||
<tile rotation="3" texture="" x="37" y="33" />
|
||||
<tile rotation="3" solid="true" texture="" x="37" y="33" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="37" y="34" />
|
||||
<tile rotation="0" texture="grass_top" x="37" y="35" />
|
||||
<tile rotation="0" texture="grass_top" x="37" y="36" />
|
||||
@@ -7840,8 +7840,8 @@
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="40" y="35" />
|
||||
<tile rotation="0" texture="grass_top" x="40" y="36" />
|
||||
<tile rotation="0" texture="grass_top" x="40" y="37" />
|
||||
<tile rotation="1" texture="" x="40" y="38" />
|
||||
<tile rotation="2" texture="dirt_top_0" x="40" y="39" />
|
||||
<tile rotation="1" solid="true" texture="" x="40" y="38" />
|
||||
<tile rotation="2" solid="true" texture="" x="40" y="39" />
|
||||
<tile rotation="2" texture="dirt_top_2" x="40" y="40" />
|
||||
<tile rotation="1" texture="dirt_inner_top_left" x="40" y="41" />
|
||||
<tile rotation="2" texture="dirt_inner_top_left" x="40" y="42" />
|
||||
@@ -7905,8 +7905,8 @@
|
||||
<tile rotation="2" solid="true" texture="dirt_top_right_0" x="41" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="41" y="32" />
|
||||
<tile rotation="0" texture="grass_top" x="41" y="33" />
|
||||
<tile rotation="0" texture="" x="41" y="34" />
|
||||
<tile rotation="0" texture="grass_top" x="41" y="35" />
|
||||
<tile rotation="0" solid="true" texture="" x="41" y="34" />
|
||||
<tile rotation="0" solid="true" texture="" x="41" y="35" />
|
||||
<tile rotation="0" texture="grass_top" x="41" y="36" />
|
||||
<tile rotation="0" texture="grass_top" x="41" y="37" />
|
||||
<tile rotation="0" texture="grass_top" x="41" y="38" />
|
||||
@@ -7970,8 +7970,8 @@
|
||||
<tile rotation="1" texture="dirt_top_2" x="42" y="27" />
|
||||
<tile rotation="2" texture="dirt_inner_top_left" x="42" y="28" />
|
||||
<tile rotation="2" texture="dirt_top_1" x="42" y="29" />
|
||||
<tile rotation="2" texture="" x="42" y="30" />
|
||||
<tile rotation="0" texture="grass_top" x="42" y="31" />
|
||||
<tile rotation="2" solid="true" texture="" x="42" y="30" />
|
||||
<tile rotation="0" solid="true" texture="" x="42" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="42" y="32" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="42" y="33" />
|
||||
<tile rotation="0" texture="grass_top" x="42" y="34" />
|
||||
@@ -8033,13 +8033,13 @@
|
||||
<tile rotation="2" texture="dirt_inner_top_left" x="43" y="21" />
|
||||
<tile rotation="2" texture="dirt_top_1" x="43" y="22" />
|
||||
<tile rotation="2" texture="dirt_top_0" x="43" y="23" />
|
||||
<tile rotation="2" texture="" x="43" y="24" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="25" />
|
||||
<tile rotation="2" solid="true" texture="" x="43" y="24" />
|
||||
<tile rotation="0" solid="true" texture="" x="43" y="25" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="26" />
|
||||
<tile rotation="1" texture="dirt_top_1" x="43" y="27" />
|
||||
<tile rotation="3" texture="dirt_top_0" x="43" y="28" />
|
||||
<tile rotation="0" texture="" x="43" y="29" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="30" />
|
||||
<tile rotation="0" solid="true" texture="" x="43" y="29" />
|
||||
<tile rotation="0" solid="true" texture="" x="43" y="30" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="32" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="33" />
|
||||
@@ -8054,8 +8054,8 @@
|
||||
<tile rotation="2" texture="dirt_top_right_0" x="43" y="42" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="43" />
|
||||
<tile rotation="1" texture="dirt_top_right_0" x="43" y="44" />
|
||||
<tile rotation="2" texture="" x="43" y="45" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="46" />
|
||||
<tile rotation="2" solid="true" texture="" x="43" y="45" />
|
||||
<tile rotation="0" solid="true" texture="" x="43" y="46" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="43" y="47" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="48" />
|
||||
<tile rotation="0" texture="grass_top" x="43" y="49" />
|
||||
@@ -8327,8 +8327,8 @@
|
||||
<tile rotation="2" texture="dirt_top_right_0" x="47" y="39" />
|
||||
<tile rotation="0" texture="grass_top" x="47" y="40" />
|
||||
<tile rotation="0" texture="grass_top" x="47" y="41" />
|
||||
<tile rotation="1" texture="" x="47" y="42" />
|
||||
<tile rotation="0" texture="dirt" x="47" y="43" />
|
||||
<tile rotation="1" solid="true" texture="" x="47" y="42" />
|
||||
<tile rotation="0" solid="true" texture="" x="47" y="43" />
|
||||
<tile rotation="3" texture="dirt_top_5" x="47" y="44" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="47" y="45" />
|
||||
<tile rotation="0" texture="grass_top" x="47" y="46" />
|
||||
@@ -8382,14 +8382,14 @@
|
||||
<tile rotation="0" texture="grass_top" x="48" y="25" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="26" />
|
||||
<tile rotation="1" texture="dirt_top_right_0" x="48" y="27" />
|
||||
<tile rotation="2" texture="" x="48" y="28" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="29" />
|
||||
<tile rotation="2" solid="true" texture="" x="48" y="28" />
|
||||
<tile rotation="0" solid="true" texture="" x="48" y="29" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="48" y="30" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="32" />
|
||||
<tile rotation="1" texture="dirt_top_right_1" x="48" y="33" />
|
||||
<tile rotation="0" texture="" x="48" y="34" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="35" />
|
||||
<tile rotation="0" solid="true" texture="" x="48" y="34" />
|
||||
<tile rotation="0" solid="true" texture="" x="48" y="35" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="36" />
|
||||
<tile rotation="1" texture="dirt_top_0" x="48" y="37" />
|
||||
<tile rotation="3" texture="dirt_top_2" x="48" y="38" />
|
||||
@@ -8398,8 +8398,8 @@
|
||||
<tile rotation="0" texture="grass_top" x="48" y="41" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="42" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="43" />
|
||||
<tile rotation="3" texture="" x="48" y="44" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="45" />
|
||||
<tile rotation="3" solid="true" texture="" x="48" y="44" />
|
||||
<tile rotation="0" solid="true" texture="" x="48" y="45" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="46" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="47" />
|
||||
<tile rotation="0" texture="grass_top" x="48" y="48" />
|
||||
@@ -8531,8 +8531,8 @@
|
||||
<tile rotation="0" texture="grass_top" x="50" y="36" />
|
||||
<tile rotation="1" texture="dirt_top_0" x="50" y="37" />
|
||||
<tile rotation="3" texture="dirt_inner_top_left" x="50" y="38" />
|
||||
<tile rotation="0" texture="" x="50" y="39" />
|
||||
<tile rotation="0" texture="grass_top" x="50" y="40" />
|
||||
<tile rotation="0" solid="true" texture="" x="50" y="39" />
|
||||
<tile rotation="0" solid="true" texture="" x="50" y="40" />
|
||||
<tile rotation="0" texture="grass_top" x="50" y="41" />
|
||||
<tile rotation="0" texture="grass_top" x="50" y="42" />
|
||||
<tile rotation="0" texture="grass_top" x="50" y="43" />
|
||||
@@ -8585,8 +8585,8 @@
|
||||
<tile rotation="0" texture="grass_top" x="51" y="21" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="51" y="22" />
|
||||
<tile rotation="0" texture="grass_top" x="51" y="23" />
|
||||
<tile rotation="1" texture="" x="51" y="24" />
|
||||
<tile rotation="0" texture="grass_top" x="51" y="25" />
|
||||
<tile rotation="1" solid="true" texture="" x="51" y="24" />
|
||||
<tile rotation="0" solid="true" texture="" x="51" y="25" />
|
||||
<tile rotation="0" solid="true" texture="grass_top" x="51" y="26" />
|
||||
<tile rotation="0" texture="grass_top" x="51" y="27" />
|
||||
<tile rotation="0" texture="grass_top" x="51" y="28" />
|
||||
@@ -8741,8 +8741,8 @@
|
||||
<tile rotation="0" texture="dirt" x="53" y="39" />
|
||||
<tile rotation="3" texture="dirt" x="53" y="40" />
|
||||
<tile rotation="0" texture="dirt_top_0" x="53" y="41" />
|
||||
<tile rotation="0" texture="" x="53" y="42" />
|
||||
<tile rotation="0" texture="grass_top" x="53" y="43" />
|
||||
<tile rotation="0" solid="true" texture="" x="53" y="42" />
|
||||
<tile rotation="0" solid="true" texture="" x="53" y="43" />
|
||||
<tile rotation="0" texture="grass_top" x="53" y="44" />
|
||||
<tile rotation="0" texture="grass_top" x="53" y="45" />
|
||||
<tile rotation="0" texture="grass_top" x="53" y="46" />
|
||||
@@ -9015,11 +9015,11 @@
|
||||
<tile rotation="0" texture="grass_top" x="57" y="37" />
|
||||
<tile rotation="0" texture="grass_top" x="57" y="38" />
|
||||
<tile rotation="0" texture="grass_top" x="57" y="39" />
|
||||
<tile rotation="1" texture="" x="57" y="40" />
|
||||
<tile rotation="2" texture="dirt_top_0" x="57" y="41" />
|
||||
<tile rotation="1" solid="true" texture="" x="57" y="40" />
|
||||
<tile rotation="2" solid="true" texture="" x="57" y="41" />
|
||||
<tile rotation="2" texture="dirt_top_5" x="57" y="42" />
|
||||
<tile rotation="2" texture="" x="57" y="43" />
|
||||
<tile rotation="0" texture="grass_top" x="57" y="44" />
|
||||
<tile rotation="2" solid="true" texture="" x="57" y="43" />
|
||||
<tile rotation="0" solid="true" texture="" x="57" y="44" />
|
||||
<tile rotation="0" texture="grass_top" x="57" y="45" />
|
||||
<tile rotation="0" texture="grass_top" x="57" y="46" />
|
||||
<tile rotation="0" texture="grass_top" x="57" y="47" />
|
||||
@@ -9078,8 +9078,8 @@
|
||||
<tile rotation="0" texture="grass_top" x="58" y="31" />
|
||||
<tile rotation="0" texture="grass_top" x="58" y="32" />
|
||||
<tile rotation="0" texture="grass_top" x="58" y="33" />
|
||||
<tile rotation="1" texture="" x="58" y="34" />
|
||||
<tile rotation="3" texture="dirt_top_0" x="58" y="35" />
|
||||
<tile rotation="1" solid="true" texture="" x="58" y="34" />
|
||||
<tile rotation="3" solid="true" texture="" x="58" y="35" />
|
||||
<tile rotation="0" texture="grass_top" x="58" y="36" />
|
||||
<tile rotation="0" texture="grass_top" x="58" y="37" />
|
||||
<tile rotation="0" texture="grass_top" x="58" y="38" />
|
||||
@@ -9208,8 +9208,8 @@
|
||||
<tile rotation="0" texture="grass_top" x="60" y="23" />
|
||||
<tile rotation="0" texture="grass_top" x="60" y="24" />
|
||||
<tile rotation="1" texture="dirt_top_right_0" x="60" y="25" />
|
||||
<tile rotation="0" texture="" x="60" y="26" />
|
||||
<tile rotation="0" texture="stone" x="60" y="27" />
|
||||
<tile rotation="0" solid="true" texture="" x="60" y="26" />
|
||||
<tile rotation="0" solid="true" texture="" x="60" y="27" />
|
||||
<tile rotation="0" texture="grass_top" x="60" y="28" />
|
||||
<tile rotation="0" texture="grass_top" x="60" y="29" />
|
||||
<tile rotation="0" texture="stone" x="60" y="30" />
|
||||
|
||||
@@ -8,14 +8,12 @@ except IndexError:
|
||||
sys.exit(1)
|
||||
tree = ET.parse(file_entity)
|
||||
root = tree.getroot()
|
||||
do_it = False
|
||||
for entity in root.findall("./tiles_data/tile"):
|
||||
attribs = entity.attrib
|
||||
#print(f"check for x:{attribs['x']} y:{attribs['y']}")
|
||||
if ((attribs['texture'] != "" and not do_it) or not do_it):
|
||||
if (attribs['texture'] != ""):
|
||||
continue
|
||||
do_it = not do_it
|
||||
print(f"x:{attribs['x']} y:{attribs['y']}")
|
||||
#print(f"x:{attribs['x']} y:{attribs['y']}")
|
||||
attribs['solid'] = "true"
|
||||
|
||||
#tree.write(file_entity)
|
||||
tree.write(file_entity)
|
||||
Reference in New Issue
Block a user