Add NewGRF object properties to set viewport map mode/smallmap tile type
This commit is contained in:
@@ -413,6 +413,56 @@
|
||||
This property can be used to enable flood resistance without enabling the object to be built on water.<br />
|
||||
The property length is 1 byte. 0 is disabled (default). 1 is enabled.</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_object_flood_resistant</font>, version 1</p>
|
||||
<h4 id="object_viewport_map_tile_type">Set tile type used for display in viewport map mode and the small-map window (mappable property: object_viewport_map_tile_type)</h4>
|
||||
<p>This property sets how object tiles are displayed in viewport map mode and the small-map window.<br />
|
||||
The property length is 1 byte.</p>
|
||||
<table>
|
||||
<tr><th>Value</th><th>Meaning</th><th>Notes</th></tr>
|
||||
<tr><td>00</td><td>Default object</td><td></td></tr>
|
||||
<tr><td>01</td><td>Clear/bare dirt</td><td>If object_use_land_ground is enabled, the underlying ground type will be used instead</td></tr>
|
||||
<tr><td>02</td><td>Grass</td><td></td></tr>
|
||||
<tr><td>03</td><td>Rough ground</td><td></td></tr>
|
||||
<tr><td>04</td><td>Rocky ground</td><td></td></tr>
|
||||
<tr><td>05</td><td>Farm fields</td><td>The specific type of field can be set using object_viewport_map_tile_subtype</td></tr>
|
||||
<tr><td>06</td><td>Snow</td><td></td></tr>
|
||||
<tr><td>07</td><td>Desert</td><td></td></tr>
|
||||
<tr><td>08</td><td>Trees</td><td>The specific tree count and ground type/density can be set using object_viewport_map_tile_subtype</td></tr>
|
||||
<tr><td>09</td><td>House</td><td></td></tr>
|
||||
<tr><td>0A</td><td>Water</td><td></td></tr>
|
||||
</table></p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_object_viewport_map_tile_type</font>, version 1</p>
|
||||
<h4 id="object_viewport_map_tile_subtype">Set tile sub-type used for display in viewport map mode and the small-map window (mappable property: object_viewport_map_tile_subtype)</h4>
|
||||
<p>This property can be used to further refine the type set in object_viewport_map_tile_type.<br />
|
||||
The property length is 2 bytes.</p>
|
||||
<p>Farm fields:
|
||||
<table>
|
||||
<tr><th>Bit</th><th>Value</th><th>Meaning</th></tr>
|
||||
<tr><td>0 - 2</td><td>0 - 7</td><td>
|
||||
Which field type to use
|
||||
</td></tr>
|
||||
</table></p>
|
||||
<p>Trees:
|
||||
<table>
|
||||
<tr><th>Bit</th><th>Meaning</th></tr>
|
||||
<tr><td>0 - 3</td><td>
|
||||
Tree ground type
|
||||
<table>
|
||||
<tr><th>Value</th><th>Meaning</th></tr>
|
||||
<tr><td>0</td><td>Grass</td></tr>
|
||||
<tr><td>1</td><td>Rough ground</td></tr>
|
||||
<tr><td>2</td><td>Snow/desert</td></tr>
|
||||
<tr><td>3</td><td>Shore</td></tr>
|
||||
<tr><td>4</td><td>Rough snow</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>4 - 7</td><td>
|
||||
Tree ground density (clamped to: 0 - 3)
|
||||
</td></tr>
|
||||
<tr><td>8 - 11</td><td>
|
||||
Number of trees on the tile (clamped to: 1 - 4)
|
||||
</td></tr>
|
||||
</table></p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_object_viewport_map_tile_type</font>, version 1</p>
|
||||
<br />
|
||||
<h3 id="variable-mapping">Action 14 - Variable Mapping for Variational Action 2</h3>
|
||||
<p>See <a href="https://newgrf-specs.tt-wiki.net/wiki/Action14">Action 14 Specification</a> and <a href="https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2">Variational Action 2 Specification</a> for background information.</p>
|
||||
|
Reference in New Issue
Block a user