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
cb2648b
commit e3dbd77
Showing
12 changed files
with
1,146 additions
and
106 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,29 +1,195 @@ | ||
<?xml version="1.0"?> | ||
<building name="Door" gameID="building_doorst"> | ||
<if> | ||
<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> | ||
<if><!-- material is wood --> | ||
<MaterialType value="Wood" /> | ||
<sprite index="3" file="doorsAndWindows.png" | ||
color="building" /> | ||
<sprite index="23" file="doorsAndWindows.png" /> | ||
<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> | ||
<else> | ||
<sprite index="1" file="doorsAndWindows.png" | ||
color="building" /> | ||
<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" /> | ||
<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> | ||
</else> | ||
<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> | ||
</else> | ||
<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> | ||
</else> | ||
<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> | ||
</else> | ||
</if> | ||
<else> | ||
<!-- if there is no wall at north or south --> | ||
<else><!-- material is wood --> | ||
<MaterialType value="Wood" /> | ||
<sprite index="2" file="doorsAndWindows.png" | ||
color="building" /> | ||
<sprite index="22" file="doorsAndWindows.png" /> | ||
<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> | ||
</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> | ||
<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> | ||
</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> | ||
<sprite index="0" file="doorsAndWindows.png" | ||
color="building" /> | ||
<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> | ||
</else> | ||
</building> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 +1,90 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<building name="Floodgate" gameID="building_floodgatest" file="DoorsAndFloodgates.png"> | ||
|
||
|
||
<building name="Floodgate" gameID="building_floodgatest" file="doorsAndWindows.png"> | ||
|
||
<if> | ||
<BuildingOccupancy value="2" /> | ||
<empty/> | ||
<if><!-- wooden --> | ||
<MaterialType value="Wood" /> | ||
<if><!-- wooden & opened --> | ||
<BuildingOccupancy value="2" /> | ||
<sprite index="33" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="13" color="building" /> | ||
<sprite index="53" /> | ||
</else> | ||
</if> | ||
<else> | ||
<else><!-- some kind of metall --> | ||
<or> | ||
<NeighbourSameType dir="North" /> | ||
<NeighbourSameType dir="South" /> | ||
<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> | ||
<if> | ||
<MaterialType value="Wood" /> | ||
<sprite index=3 color="building" /> | ||
<sprite index=23 /> | ||
<if><!-- some kind of metall & opened --> | ||
<BuildingOccupancy value="2" /> | ||
<sprite index="34" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index=1 color="building" /> | ||
</else> | ||
<sprite index="14" color="building" /> | ||
</else> | ||
</else> | ||
<else><!-- GreenGlass --> | ||
<MaterialType value="GreenGlass" /> | ||
<if><!-- GreenGlass & opened --> | ||
<BuildingOccupancy value="2" /> | ||
<sprite index="36" /> | ||
</if> | ||
<else> | ||
<sprite index="55" /><!-- frame --> | ||
<sprite index="16" /><!-- green glass block --> | ||
<sprite index="56" /><!-- frame --> | ||
</else> | ||
</else> | ||
<else> | ||
<else><!-- ClearGlass or CrystalGlass --> | ||
<or> | ||
<NeighbourWall dir="North" /> | ||
<NeighbourWall dir="South" /> | ||
<MaterialType value="ClearGlass" /> | ||
<MaterialType value="CrystalGlass" /> | ||
</or> | ||
<if> | ||
<MaterialType value="Wood" /> | ||
<sprite index=3 color="building" /> | ||
<sprite index=23 /> | ||
<if><!-- ClearGlass or CrystalGlass & opened --> | ||
<BuildingOccupancy value="2" /> | ||
<sprite index="35" color="building" /><!-- glass block --> | ||
<sprite index="57" /><!-- frame --> | ||
</if> | ||
<else> | ||
<sprite index=1 color="building" /> | ||
</else> | ||
</else> | ||
<else> | ||
<MaterialType value="Wood" /> | ||
<sprite index = 2 color="building" /> | ||
<sprite index=22 /> | ||
<sprite index="55" /><!-- frame --> | ||
<sprite index="15" color="building" /><!-- glass block --> | ||
<sprite index="56" /><!-- frame --> | ||
</else> | ||
</else> | ||
<else> | ||
<sprite index = 0 color="building" /> | ||
<else><!-- any other material (e.g. stone) --> | ||
<if><!-- any other material & opened --> | ||
<BuildingOccupancy value="2" /> | ||
<sprite index="32" color="building" /> | ||
</if> | ||
<else> | ||
<sprite index="12" color="building" /> | ||
</else> | ||
</else> | ||
</building> | ||
</building> |
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
Oops, something went wrong.