Reply To: [Beta 1.7] Possible Bugs

Home Forums Wayward [Beta 1.7] Possible Bugs Reply To: [Beta 1.7] Possible Bugs

#4645
Orillian
Member

I actually changed this again. :/ the first attribute is an object like what I used for item passing.

So changeTile({type:'dirt'}, xLocation, yLocation, false); Is the minimum requirement.

You can add strength properties, mindur, maxdur to the tile object prior to passing it into changeTile.

Currently giving a tile a preset min/max durability only does something if it’s a wall, floor or door.

if StackTiles is set to true it stacks the tile on top of the current tile. if false it overwrites the tile at that location.

So the tile object that can be passed in looks like the following.

tile: {
    type: 'tiletype',
    strength: integer,
    maxdur: integer,
    mindur: integer <= maxdur,
}

Hope that helps.