Skip to content

Commit

Permalink
Tile.bed -> Tile.spawn, added Tile.spawnAt, adjTile
Browse files Browse the repository at this point in the history
  • Loading branch information
GroxTheGreat committed Oct 21, 2014
1 parent ae7bac1 commit efe1bde
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions docs/props/tile.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"name" => "checkWalls",
"type" => "bool",
"text" => "Wether or not this tile should check tile placement if walls behind it are broken.",
"default" => "false, true if the tile has the "wall" placement condition."
"default" => "false, true if the tile has the \"wall\" placement condition."
),
array(
"tags" => array("temp"),
Expand Down Expand Up @@ -175,7 +175,7 @@
"name" => "directional",
"type" => "bool",
"text" => "Wether or not this tile should place the first or second frame based on player direction.",
"default" => "false"
"default" => "false",
"drop" => "
<div class=\"alert alert-info\">
This is mainly used for stuff like furniture, beds, etc..
Expand Down Expand Up @@ -355,19 +355,6 @@
"text" => "Wether or not this tile should be considered a door. (Used in NPC Housing)",
"default" => "false"
),
array(
"tags" => array("temp"),
"name" => "bed",
"type" => "bool",
"text" => "Wether or not this tile should be considered a viable spawn point.",
"default" => "false"
"drop" => "
<div class=\"alert alert-info\">
"Note that this is does not make the tile function as a bed; you need to make the spawn point click code yourself. This merely
prevents the game from removing the spawn point for your tile when it runs spawn point validity checks.
</div>
"
),
array(
"tags" => array("temp"),
"name" => "rope",
Expand All @@ -390,6 +377,45 @@
"text" => "Wether or not this tile should be considered part of the dungeon.",
"default" => "false"
),
array(
"tags" => array("temp"),
"name" => "spawn",
"type" => "bool",
"text" => "Wether or not this tile should be considered a viable spawn point.",
"default" => "false",
"drop" => "
<div class=\"alert alert-info\">
Note that this is does not make the tile function like a bed; you need to make the spawn point click code yourself. This merely
prevents the game from removing the spawn point for your tile when it runs spawn point validity checks.
</div>
"
),
array(
"tags" => array("temp"),
"name" => "spawnAt",
"type" => "int[2]",
"text" => "The tile position within this tile the player should respawn at.",
"default" => "The bottom middle of the tile",
"drop" => "
<div class=\"alert alert-info\">
This only is used if <code>spawn</code> is true. Also, this does not prevent the player from teleporting to the nearest
tile below them, so try to avoid Y values that are not at the bottom layer of the tile.
</div>
"
),
array(
"tags" => array("temp"),
"name" => "adjTile",
"type" => "int and/or string array",
"text" => "Array of tile IDs, names of tiles, or both that this tile can be considered when crafting.",
"default" => "false",
"drop" => "
<div class=\"alert alert-info\">
For example, \"adjTile\": [\"Furnace\", \"Work Bench\"], would produce a tile that is considered a furnace and a workbench when
choosing what recipes the player can make.
</div>
"
),
array(
"tags" => array("temp"),
"name" => "blocksLight",
Expand Down

0 comments on commit efe1bde

Please sign in to comment.