-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automapping: Always apply output sets with empty index (#3909)
Output sets with an empty index (output_foo, rather than output1_foo, for example) are now considered unconditional outputs and no longer participate in the random output index selection process. Effectively, when a rule matches that has output sets with both an empty index and output sets with an index, first its unconditional output set will apply and then a randomly selected output set from its output sets with non-empty index. For compatibility reasons, this behavior does not affect rule maps in "legacy" mode (when the user manually defined the rule regions).
- Loading branch information
Showing
10 changed files
with
149 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="5" height="5" tilewidth="16" tileheight="16" infinite="0" nextlayerid="10" nextobjectid="1"> | ||
<tileset firstgid="1" source="../spr_test_tileset.tsx"/> | ||
<layer id="1" name="set" width="5" height="5"> | ||
<data encoding="csv"> | ||
2,2,2,2,2, | ||
2,2,2,2,2, | ||
2,2,2,2,2, | ||
2,2,2,2,2, | ||
2,2,2,2,2 | ||
</data> | ||
</layer> | ||
<layer id="9" name="auto_base" width="5" height="5"> | ||
<data encoding="csv"> | ||
0,0,0,0,0, | ||
0,0,0,0,0, | ||
0,0,0,0,0, | ||
0,0,0,0,0, | ||
0,0,0,0,0 | ||
</data> | ||
</layer> | ||
<layer id="8" name="auto" width="5" height="5"> | ||
<data encoding="csv"> | ||
0,0,0,0,0, | ||
0,0,0,0,0, | ||
0,0,0,0,0, | ||
0,0,0,0,0, | ||
0,0,0,0,0 | ||
</data> | ||
</layer> | ||
</map> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="4" height="4" tilewidth="16" tileheight="16" infinite="0" nextlayerid="7" nextobjectid="5"> | ||
<tileset firstgid="1" source="../spr_test_tileset.tsx"/> | ||
<layer id="1" name="input_set" width="4" height="4"> | ||
<data encoding="csv"> | ||
0,0,0,0, | ||
0,2,0,0, | ||
0,0,0,0, | ||
0,0,0,0 | ||
</data> | ||
</layer> | ||
<layer id="5" name="outputB_auto" width="4" height="4"> | ||
<data encoding="csv"> | ||
0,0,0,0, | ||
0,7,0,0, | ||
0,0,0,0, | ||
0,0,0,0 | ||
</data> | ||
</layer> | ||
<layer id="6" name="outputA_auto" width="4" height="4"> | ||
<properties> | ||
<property name="Probability" type="float" value="3"/> | ||
</properties> | ||
<data encoding="csv"> | ||
0,0,0,0, | ||
0,6,0,0, | ||
0,0,0,0, | ||
0,0,0,0 | ||
</data> | ||
</layer> | ||
<layer id="2" name="output_auto_base" width="4" height="4"> | ||
<data encoding="csv"> | ||
0,0,0,0, | ||
0,5,0,0, | ||
0,0,0,0, | ||
0,0,0,0 | ||
</data> | ||
</layer> | ||
</map> |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
tests/automapping/probability/map.tmx → tests/automapping/rule-probability/map.tmx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/automapping/probability/rules.tmx → tests/automapping/rule-probability/rules.tmx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./rules.tmx |