Crowbar floor tiles and placement (#429)

* Adds tile removing behavior to CrowbarComponent.
Add FloorTileItemComponent.
Add genhit.ogg
Add tile.png for testing

* fixes

* Gives ContentTileDefinition a default value for tile item to drop.
Adds a few more tileitems.

* Changes per review request

* move stack.use and if statement
This commit is contained in:
Ephememory
2019-11-23 16:10:05 -05:00
committed by Pieter-Jan Briers
parent 35f9de3366
commit d63c879404
76 changed files with 176 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
- type: entity
name: Carpet Floor Tile
parent: BaseItem
id: FloorTileItemCarpet
description: Those could work as a pretty decent throwing weapon.
components:
- type: Sprite
sprite: Objects/Tiles/tile.rsi
state: tile_carpet
- type: Icon
sprite: Objects/Tiles/tile.rsi
state: tile_carpet
- type: Item
Size: 25
- type: FloorTile
output: floor_carpet
- type: Stack
stacktype: FloorTileCarpet
count: 1
max: 8
- type: entity
name: White Floor Tile
parent: BaseItem
id: FloorTileItemWhite
description: Those could work as a pretty decent throwing weapon.
components:
- type: Sprite
sprite: Objects/Tiles/tile.rsi
state: tile_white
- type: Icon
sprite: Objects/Tiles/tile.rsi
state: tile_white
- type: Item
Size: 25
- type: FloorTile
output: floor_white
- type: Stack
stacktype: FloorTileWhite
count: 1
max: 8
- type: entity
name: Dark Floor Tile
parent: BaseItem
id: FloorTileItemDark
description: Those could work as a pretty decent throwing weapon.
components:
- type: Sprite
sprite: Objects/Tiles/tile.rsi
state: tile_dark
- type: Icon
sprite: Objects/Tiles/tile.rsi
state: tile_dark
- type: Item
Size: 25
- type: FloorTile
output: floor_dark
- type: Stack
stacktype: FloorTileDark
count: 1
max: 8
- type: entity
name: Steel Floor Tile
parent: BaseItem
id: FloorTileItemSteel
description: Those could work as a pretty decent throwing weapon.
components:
- type: Sprite
sprite: Objects/Tiles/tile.rsi
state: tile_steel
- type: Icon
sprite: Objects/Tiles/tile.rsi
state: tile_steel
- type: Item
Size: 25
- type: FloorTile
output: floor_steel
- type: Stack
stacktype: FloorTileSteel
count: 1
max: 8