Remove TableParts, fix SmoothTile destruction bug (#918)

This commit is contained in:
chairbender
2020-05-17 07:04:44 -07:00
committed by GitHub
parent 1b2063c998
commit 61e4a431a2
3 changed files with 6 additions and 19 deletions

View File

@@ -81,6 +81,9 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
base.Startup();
SnapGrid.OnPositionChanged += SnapGridOnPositionChanged;
// ensures lastposition initial value is populated on spawn. Just calling
// the hook here would cause a dirty event to fire needlessly
_lastPosition = (Owner.Transform.GridID, SnapGrid.Position);
Owner.EntityManager.EventBus.RaiseEvent(EventSource.Local, new IconSmoothDirtyEvent(Owner,null, SnapGrid.Offset, Mode));
if (Mode == IconSmoothingMode.Corners)
{

View File

@@ -28,8 +28,9 @@
- type: Damageable
- type: Destructible
thresholdvalue: 50
spawnondestroy: TableParts
spawnondestroy: SteelSheet1
# TODO: drop wood instead of steel when destroyed when that's added
- type: entity
id: TableWood
parent: Table
@@ -41,4 +42,4 @@
- type: Damageable
- type: Destructible
thresholdvalue: 50
spawnondestroy: TableParts
spawnondestroy: SteelSheet1

View File

@@ -1,17 +0,0 @@
- type: entity
name: Table Parts
parent: BaseItem
id: TableParts
description: Parts of a table.
components:
- type: Sprite
sprite: Objects/Parts/table_parts.rsi
state: icon
- type: Icon
sprite: Objects/Parts/table_parts.rsi
state: icon
- type: Item
Size: 25
sprite: Objects/Parts/table_parts.rsi