* Fixed mixed deconstruction times for tiles and lattice
* Lattice and power cables can be deconstructed instantly
else
{
var deconstructedTile = _mapSystem.GetTileRef(mapGridData.Value.GridUid, mapGridData.Value.Component, mapGridData.Value.Location);
- var protoName = deconstructedTile.IsSpace() ? _deconstructTileProto : _deconstructLatticeProto;
+ var protoName = !deconstructedTile.IsSpace() ? _deconstructTileProto : _deconstructLatticeProto;
if (_protoManager.TryIndex(protoName, out var deconProto))
{
damageModifierSet: Metallic
- type: RCDDeconstructable
cost: 2
- delay: 2
- fx: EffectRCDDeconstruct2
+ delay: 0
+ fx: EffectRCDConstruct0
- type: Destructible
thresholds:
- trigger:
node: power
- type: RCDDeconstructable
cost: 2
- delay: 2
- fx: EffectRCDDeconstruct2
+ delay: 0
+ fx: EffectRCDConstruct0
- type: entity
parent: CableBase
name: rcd-component-deconstruct
mode: Deconstruct
cost: 2
- delay: 1
+ delay: 0
rotation: Camera
- fx: EffectRCDDeconstruct2
+ fx: EffectRCDConstruct0
- type: rcd
id: DeconstructTile # Hidden prototype - do not add to RCDs