forked from DFHack/stonesense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3dbd77
commit b9c1e81
Showing
1 changed file
with
191 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,195 +1,221 @@ | ||
<?xml version="1.0"?> | ||
<building name="Door" gameID="building_doorst" file="DoorsAndFloodgates.png"> | ||
<if><!-- if there is wall at north or south --> | ||
<building name="Door" gameID="building_doorst" | ||
file="DoorsAndFloodgates.png"> | ||
<if> | ||
<!-- if there is wall at north or south --> | ||
<or> | ||
<NeighbourWall dir="North" /> | ||
<NeighbourWall dir="South" /> | ||
</or> | ||
<if><!-- material is wood --> | ||
<if> | ||
<!-- material is wood --> | ||
<MaterialType value="Wood" /> | ||
<sprite index="3" color="building" /> | ||
<if><!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="43" /> | ||
</if> | ||
<else> | ||
<sprite index="23" /> | ||
</else> | ||
<if> | ||
<!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="43" /> | ||
</if> | ||
<else> | ||
<sprite index="23" /> | ||
</else> | ||
</if> | ||
<else><!-- material is any kind of metall --> | ||
<or> | ||
<MaterialType value="Inorganic" subtype="IRON" /> | ||
<MaterialType value="Inorganic" subtype="GOLD" /> | ||
<MaterialType value="Inorganic" subtype="SILVER" /> | ||
<MaterialType value="Inorganic" subtype="COPPER" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL" /> | ||
<MaterialType value="Inorganic" subtype="ZINC" /> | ||
<MaterialType value="Inorganic" subtype="BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="BRASS" /> | ||
<MaterialType value="Inorganic" subtype="STEEL" /> | ||
<MaterialType value="Inorganic" subtype="PIG_IRON" /> | ||
<MaterialType value="Inorganic" subtype="PLATINUM" /> | ||
<MaterialType value="Inorganic" subtype="ELECTRUM" /> | ||
<MaterialType value="Inorganic" subtype="TIN" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_FINE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_TRIFLE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_LAY" /> | ||
<MaterialType value="Inorganic" subtype="LEAD" /> | ||
<MaterialType value="Inorganic" subtype="ALUMINUM" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BILLON" /> | ||
<MaterialType value="Inorganic" subtype="STERLING_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BLACK_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ROSE_GOLD" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ADAMANTINE" /> | ||
</or> | ||
<sprite index="5" color="building" /> | ||
<if><!-- if at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="45" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="25" color="building" /> | ||
</else> | ||
|
||
<else> | ||
<!-- material is any kind of metall --> | ||
<or> | ||
<MaterialType value="Inorganic" subtype="IRON" /> | ||
<MaterialType value="Inorganic" subtype="GOLD" /> | ||
<MaterialType value="Inorganic" subtype="SILVER" /> | ||
<MaterialType value="Inorganic" subtype="COPPER" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL" /> | ||
<MaterialType value="Inorganic" subtype="ZINC" /> | ||
<MaterialType value="Inorganic" subtype="BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="BRASS" /> | ||
<MaterialType value="Inorganic" subtype="STEEL" /> | ||
<MaterialType value="Inorganic" subtype="PIG_IRON" /> | ||
<MaterialType value="Inorganic" subtype="PLATINUM" /> | ||
<MaterialType value="Inorganic" subtype="ELECTRUM" /> | ||
<MaterialType value="Inorganic" subtype="TIN" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_FINE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_TRIFLE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_LAY" /> | ||
<MaterialType value="Inorganic" subtype="LEAD" /> | ||
<MaterialType value="Inorganic" subtype="ALUMINUM" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BILLON" /> | ||
<MaterialType value="Inorganic" | ||
subtype="STERLING_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BLACK_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ROSE_GOLD" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ADAMANTINE" /> | ||
</or> | ||
<sprite index="5" color="building" /> | ||
<if> | ||
<!-- if at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="45" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="25" color="building" /> | ||
</else> | ||
</else> | ||
<else><!-- material is clear glass --> | ||
<MaterialType value="ClearGlass" /> | ||
<else> | ||
<!-- material is clear glass --> | ||
<MaterialType value="ClearGlass" /> | ||
<sprite index="7" /> | ||
<if><!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="47" /> | ||
</if> | ||
<else> | ||
<sprite index="27" /> | ||
</else> | ||
<if> | ||
<!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="47" /> | ||
</if> | ||
<else> | ||
<sprite index="27" /> | ||
</else> | ||
</else> | ||
<else><!-- material is green glass --> | ||
<MaterialType value="GreenGlass" /> | ||
<else> | ||
<!-- material is green glass --> | ||
<MaterialType value="GreenGlass" /> | ||
<sprite index="9" /> | ||
<if><!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="49" /> | ||
</if> | ||
<else> | ||
<sprite index="29" /> | ||
</else> | ||
<if> | ||
<!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="49" /> | ||
</if> | ||
<else> | ||
<sprite index="29" /> | ||
</else> | ||
</else> | ||
<else><!-- material is crystal glass --> | ||
<MaterialType value="CrystalGlass" /> | ||
<else> | ||
<!-- material is crystal glass --> | ||
<MaterialType value="CrystalGlass" /> | ||
<sprite index="11" /> | ||
<if><!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="51" /> | ||
</if> | ||
<else> | ||
<sprite index="31" /> | ||
</else> | ||
<if> | ||
<!-- at south is other door then need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="51" /> | ||
</if> | ||
<else> | ||
<sprite index="31" /> | ||
</else> | ||
</else> | ||
<else><!-- material isn't wood, any kind of metall or glass --> | ||
<else> | ||
<!-- material isn't wood, any kind of metall or glass --> | ||
<sprite index="1" color="building" /> | ||
<if><!-- at south is other door then still need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="41" /> | ||
</if> | ||
<else> | ||
<sprite index="21" /> | ||
</else> | ||
<if> | ||
<!-- at south is other door then still need to turn a handle --> | ||
<NeighbourSameType dir="South" /> | ||
<sprite index="41" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="21" color="building" /> | ||
</else> | ||
</else> | ||
</if> | ||
<!-- if there is no wall at north or south --> | ||
<else><!-- material is wood --> | ||
<else> | ||
<!-- material is wood --> | ||
<MaterialType value="Wood" /> | ||
<sprite index="2" color="building" /> | ||
<if><!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="42" /> | ||
</if> | ||
<else> | ||
<sprite index="22" /> | ||
</else> | ||
<if> | ||
<!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="42" /> | ||
</if> | ||
<else> | ||
<sprite index="22" /> | ||
</else> | ||
</else> | ||
<else><!-- material is any kind of metall --> | ||
<or> | ||
<MaterialType value="Inorganic" subtype="IRON" /> | ||
<MaterialType value="Inorganic" subtype="GOLD" /> | ||
<MaterialType value="Inorganic" subtype="SILVER" /> | ||
<MaterialType value="Inorganic" subtype="COPPER" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL" /> | ||
<MaterialType value="Inorganic" subtype="ZINC" /> | ||
<MaterialType value="Inorganic" subtype="BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="BRASS" /> | ||
<MaterialType value="Inorganic" subtype="STEEL" /> | ||
<MaterialType value="Inorganic" subtype="PIG_IRON" /> | ||
<MaterialType value="Inorganic" subtype="PLATINUM" /> | ||
<MaterialType value="Inorganic" subtype="ELECTRUM" /> | ||
<MaterialType value="Inorganic" subtype="TIN" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_FINE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_TRIFLE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_LAY" /> | ||
<MaterialType value="Inorganic" subtype="LEAD" /> | ||
<MaterialType value="Inorganic" subtype="ALUMINUM" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BILLON" /> | ||
<MaterialType value="Inorganic" subtype="STERLING_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BLACK_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ROSE_GOLD" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ADAMANTINE" /> | ||
</or> | ||
<sprite index="4" color="building" /> | ||
<if><!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="44" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="24" color="building" /> | ||
</else> | ||
<else> | ||
<!-- material is any kind of metall --> | ||
<or> | ||
<MaterialType value="Inorganic" subtype="IRON" /> | ||
<MaterialType value="Inorganic" subtype="GOLD" /> | ||
<MaterialType value="Inorganic" subtype="SILVER" /> | ||
<MaterialType value="Inorganic" subtype="COPPER" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL" /> | ||
<MaterialType value="Inorganic" subtype="ZINC" /> | ||
<MaterialType value="Inorganic" subtype="BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="BRASS" /> | ||
<MaterialType value="Inorganic" subtype="STEEL" /> | ||
<MaterialType value="Inorganic" subtype="PIG_IRON" /> | ||
<MaterialType value="Inorganic" subtype="PLATINUM" /> | ||
<MaterialType value="Inorganic" subtype="ELECTRUM" /> | ||
<MaterialType value="Inorganic" subtype="TIN" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_FINE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_TRIFLE" /> | ||
<MaterialType value="Inorganic" subtype="PEWTER_LAY" /> | ||
<MaterialType value="Inorganic" subtype="LEAD" /> | ||
<MaterialType value="Inorganic" subtype="ALUMINUM" /> | ||
<MaterialType value="Inorganic" subtype="NICKEL_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BILLON" /> | ||
<MaterialType value="Inorganic" subtype="STERLING_SILVER" /> | ||
<MaterialType value="Inorganic" subtype="BLACK_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ROSE_GOLD" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH" /> | ||
<MaterialType value="Inorganic" subtype="BISMUTH_BRONZE" /> | ||
<MaterialType value="Inorganic" subtype="ADAMANTINE" /> | ||
</or> | ||
<sprite index="4" color="building" /> | ||
<if> | ||
<!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="44" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="24" color="building" /> | ||
</else> | ||
</else> | ||
<else><!-- material is clear glass --> | ||
<MaterialType value="ClearGlass" /> | ||
<sprite index="6" /> | ||
<if><!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="46" /> | ||
</if> | ||
<else> | ||
<sprite index="26" /> | ||
</else> | ||
<else> | ||
<!-- material is clear glass --> | ||
<MaterialType value="ClearGlass" /> | ||
<sprite index="6" /> | ||
<if> | ||
<!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="46" /> | ||
</if> | ||
<else> | ||
<sprite index="26" /> | ||
</else> | ||
</else> | ||
<else><!-- material is green glass --> | ||
<MaterialType value="GreenGlass" /> | ||
<else> | ||
<!-- material is green glass --> | ||
<MaterialType value="GreenGlass" /> | ||
<sprite index="8" /> | ||
<if><!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="48" /> | ||
</if> | ||
<else> | ||
<sprite index="28" /> | ||
</else> | ||
<if> | ||
<!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="48" /> | ||
</if> | ||
<else> | ||
<sprite index="28" /> | ||
</else> | ||
</else> | ||
<else><!-- material is crystal glass --> | ||
<MaterialType value="CrystalGlass" /> | ||
<sprite index="10" /> | ||
<if><!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="50" /> | ||
</if> | ||
<else> | ||
<sprite index="30" /> | ||
</else> | ||
<else> | ||
<!-- material is crystal glass --> | ||
<MaterialType value="CrystalGlass" /> | ||
<sprite index="10" /> | ||
<if> | ||
<!-- at west is other door then need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="50" /> | ||
</if> | ||
<else> | ||
<sprite index="30" /> | ||
</else> | ||
</else> | ||
<else><!-- material isn't wood, any kind of metall or glass --> | ||
<else> | ||
<!-- material isn't wood, any kind of metall or glass --> | ||
<sprite index="0" color="building" /> | ||
<if><!-- at west is other door then still need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="40" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="20" color="building" /> | ||
</else> | ||
<if> | ||
<!-- at west is other door then still need to turn a handle --> | ||
<NeighbourSameType dir="West" /> | ||
<sprite index="40" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="20" color="building" /> | ||
</else> | ||
</else> | ||
</building> |