Destructible spawning fix redux (#2892)
* Fix SpawnEntitiesBehavior crash and add test * Fix comparer, add duplicated behavior Turns out this isn't Java * Threshold behaviors are now "linearly" executed * Fixes YAML threshold behaviors to be linear Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cc4669244d
commit
85add420b0
@@ -20,9 +20,15 @@ namespace Content.IntegrationTests.Tests.Destructible
|
|||||||
[TestOf(typeof(Threshold))]
|
[TestOf(typeof(Threshold))]
|
||||||
public class DestructibleTests : ContentIntegrationTest
|
public class DestructibleTests : ContentIntegrationTest
|
||||||
{
|
{
|
||||||
|
private static readonly string SpawnedEntityId = "DestructibleTestsSpawnedEntity";
|
||||||
private static readonly string DestructibleEntityId = "DestructibleTestsDestructibleEntity";
|
private static readonly string DestructibleEntityId = "DestructibleTestsDestructibleEntity";
|
||||||
|
private static readonly string DestructibleDestructionEntityId = "DestructibleTestsDestructibleDestructionEntity";
|
||||||
|
|
||||||
private static readonly string Prototypes = $@"
|
private static readonly string Prototypes = $@"
|
||||||
|
- type: entity
|
||||||
|
id: {SpawnedEntityId}
|
||||||
|
name: {SpawnedEntityId}
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: {DestructibleEntityId}
|
id: {DestructibleEntityId}
|
||||||
name: {DestructibleEntityId}
|
name: {DestructibleEntityId}
|
||||||
@@ -35,15 +41,35 @@ namespace Content.IntegrationTests.Tests.Destructible
|
|||||||
50:
|
50:
|
||||||
triggersOnce: false
|
triggersOnce: false
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: [""Breakage""]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/woodhit.ogg
|
sound: /Audio/Effects/woodhit.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
WoodPlank:
|
{SpawnedEntityId}:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [""Breakage""]
|
||||||
|
- type: TestThresholdListener
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: {DestructibleDestructionEntityId}
|
||||||
|
name: {DestructibleDestructionEntityId}
|
||||||
|
components:
|
||||||
|
- type: Damageable
|
||||||
|
- type: Destructible
|
||||||
|
thresholds:
|
||||||
|
50:
|
||||||
|
behaviors:
|
||||||
|
- !type:PlaySoundBehavior
|
||||||
|
sound: /Audio/Effects/woodhit.ogg
|
||||||
|
- !type:SpawnEntitiesBehavior
|
||||||
|
spawn:
|
||||||
|
{SpawnedEntityId}:
|
||||||
|
min: 1
|
||||||
|
max: 1
|
||||||
|
- !type:DoActsBehavior # This must come last as it destroys the entity.
|
||||||
|
acts: [""Destruction""]
|
||||||
- type: TestThresholdListener
|
- type: TestThresholdListener
|
||||||
";
|
";
|
||||||
|
|
||||||
@@ -147,15 +173,15 @@ namespace Content.IntegrationTests.Tests.Destructible
|
|||||||
// Check that it matches the YAML prototype
|
// Check that it matches the YAML prototype
|
||||||
Assert.That(threshold.Behaviors, Has.Count.EqualTo(3));
|
Assert.That(threshold.Behaviors, Has.Count.EqualTo(3));
|
||||||
|
|
||||||
var actsThreshold = (DoActsBehavior) threshold.Behaviors[0];
|
var soundThreshold = (PlaySoundBehavior) threshold.Behaviors[0];
|
||||||
var soundThreshold = (PlaySoundBehavior) threshold.Behaviors[1];
|
var spawnThreshold = (SpawnEntitiesBehavior) threshold.Behaviors[1];
|
||||||
var spawnThreshold = (SpawnEntitiesBehavior) threshold.Behaviors[2];
|
var actsThreshold = (DoActsBehavior) threshold.Behaviors[2];
|
||||||
|
|
||||||
Assert.That(actsThreshold.Acts, Is.EqualTo(ThresholdActs.Breakage));
|
Assert.That(actsThreshold.Acts, Is.EqualTo(ThresholdActs.Breakage));
|
||||||
Assert.That(soundThreshold.Sound, Is.EqualTo("/Audio/Effects/woodhit.ogg"));
|
Assert.That(soundThreshold.Sound, Is.EqualTo("/Audio/Effects/woodhit.ogg"));
|
||||||
Assert.That(spawnThreshold.Spawn, Is.Not.Null);
|
Assert.That(spawnThreshold.Spawn, Is.Not.Null);
|
||||||
Assert.That(spawnThreshold.Spawn.Count, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Count, Is.EqualTo(1));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Key, Is.EqualTo("WoodPlank"));
|
Assert.That(spawnThreshold.Spawn.Single().Key, Is.EqualTo(SpawnedEntityId));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Value.Min, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Single().Value.Min, Is.EqualTo(1));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Value.Max, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Single().Value.Max, Is.EqualTo(1));
|
||||||
Assert.That(threshold.Triggered, Is.True);
|
Assert.That(threshold.Triggered, Is.True);
|
||||||
@@ -202,16 +228,16 @@ namespace Content.IntegrationTests.Tests.Destructible
|
|||||||
// Check that it matches the YAML prototype
|
// Check that it matches the YAML prototype
|
||||||
Assert.That(threshold.Behaviors, Has.Count.EqualTo(3));
|
Assert.That(threshold.Behaviors, Has.Count.EqualTo(3));
|
||||||
|
|
||||||
actsThreshold = (DoActsBehavior) threshold.Behaviors[0];
|
soundThreshold = (PlaySoundBehavior) threshold.Behaviors[0];
|
||||||
soundThreshold = (PlaySoundBehavior) threshold.Behaviors[1];
|
spawnThreshold = (SpawnEntitiesBehavior) threshold.Behaviors[1];
|
||||||
spawnThreshold = (SpawnEntitiesBehavior) threshold.Behaviors[2];
|
actsThreshold = (DoActsBehavior) threshold.Behaviors[2];
|
||||||
|
|
||||||
// Check that it matches the YAML prototype
|
// Check that it matches the YAML prototype
|
||||||
Assert.That(actsThreshold.Acts, Is.EqualTo(ThresholdActs.Breakage));
|
Assert.That(actsThreshold.Acts, Is.EqualTo(ThresholdActs.Breakage));
|
||||||
Assert.That(soundThreshold.Sound, Is.EqualTo("/Audio/Effects/woodhit.ogg"));
|
Assert.That(soundThreshold.Sound, Is.EqualTo("/Audio/Effects/woodhit.ogg"));
|
||||||
Assert.That(spawnThreshold.Spawn, Is.Not.Null);
|
Assert.That(spawnThreshold.Spawn, Is.Not.Null);
|
||||||
Assert.That(spawnThreshold.Spawn.Count, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Count, Is.EqualTo(1));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Key, Is.EqualTo("WoodPlank"));
|
Assert.That(spawnThreshold.Spawn.Single().Key, Is.EqualTo(SpawnedEntityId));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Value.Min, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Single().Value.Min, Is.EqualTo(1));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Value.Max, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Single().Value.Max, Is.EqualTo(1));
|
||||||
Assert.That(threshold.Triggered, Is.True);
|
Assert.That(threshold.Triggered, Is.True);
|
||||||
@@ -254,16 +280,16 @@ namespace Content.IntegrationTests.Tests.Destructible
|
|||||||
|
|
||||||
Assert.That(threshold.Behaviors, Has.Count.EqualTo(3));
|
Assert.That(threshold.Behaviors, Has.Count.EqualTo(3));
|
||||||
|
|
||||||
actsThreshold = (DoActsBehavior) threshold.Behaviors[0];
|
soundThreshold = (PlaySoundBehavior) threshold.Behaviors[0];
|
||||||
soundThreshold = (PlaySoundBehavior) threshold.Behaviors[1];
|
spawnThreshold = (SpawnEntitiesBehavior) threshold.Behaviors[1];
|
||||||
spawnThreshold = (SpawnEntitiesBehavior) threshold.Behaviors[2];
|
actsThreshold = (DoActsBehavior) threshold.Behaviors[2];
|
||||||
|
|
||||||
// Check that it matches the YAML prototype
|
// Check that it matches the YAML prototype
|
||||||
Assert.That(actsThreshold.Acts, Is.EqualTo(ThresholdActs.Breakage));
|
Assert.That(actsThreshold.Acts, Is.EqualTo(ThresholdActs.Breakage));
|
||||||
Assert.That(soundThreshold.Sound, Is.EqualTo("/Audio/Effects/woodhit.ogg"));
|
Assert.That(soundThreshold.Sound, Is.EqualTo("/Audio/Effects/woodhit.ogg"));
|
||||||
Assert.That(spawnThreshold.Spawn, Is.Not.Null);
|
Assert.That(spawnThreshold.Spawn, Is.Not.Null);
|
||||||
Assert.That(spawnThreshold.Spawn.Count, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Count, Is.EqualTo(1));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Key, Is.EqualTo("WoodPlank"));
|
Assert.That(spawnThreshold.Spawn.Single().Key, Is.EqualTo(SpawnedEntityId));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Value.Min, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Single().Value.Min, Is.EqualTo(1));
|
||||||
Assert.That(spawnThreshold.Spawn.Single().Value.Max, Is.EqualTo(1));
|
Assert.That(spawnThreshold.Spawn.Single().Value.Max, Is.EqualTo(1));
|
||||||
Assert.That(threshold.Triggered, Is.True);
|
Assert.That(threshold.Triggered, Is.True);
|
||||||
@@ -305,5 +331,84 @@ namespace Content.IntegrationTests.Tests.Destructible
|
|||||||
Assert.That(sThresholdListenerComponent.ThresholdsReached, Is.Empty);
|
Assert.That(sThresholdListenerComponent.ThresholdsReached, Is.Empty);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public async Task DestructibleDestructionTest()
|
||||||
|
{
|
||||||
|
var server = StartServerDummyTicker(new ServerContentIntegrationOption
|
||||||
|
{
|
||||||
|
ExtraPrototypes = Prototypes,
|
||||||
|
ContentBeforeIoC = () =>
|
||||||
|
{
|
||||||
|
IoCManager.Resolve<IComponentFactory>().Register<TestThresholdListenerComponent>();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await server.WaitIdleAsync();
|
||||||
|
|
||||||
|
var sEntityManager = server.ResolveDependency<IEntityManager>();
|
||||||
|
var sMapManager = server.ResolveDependency<IMapManager>();
|
||||||
|
|
||||||
|
IEntity sDestructibleEntity = null;
|
||||||
|
IDamageableComponent sDamageableComponent = null;
|
||||||
|
DestructibleComponent sDestructibleComponent = null;
|
||||||
|
TestThresholdListenerComponent sThresholdListenerComponent = null;
|
||||||
|
|
||||||
|
await server.WaitPost(() =>
|
||||||
|
{
|
||||||
|
var mapId = new MapId(1);
|
||||||
|
var coordinates = new MapCoordinates(0, 0, mapId);
|
||||||
|
sMapManager.CreateMap(mapId);
|
||||||
|
|
||||||
|
sDestructibleEntity = sEntityManager.SpawnEntity(DestructibleDestructionEntityId, coordinates);
|
||||||
|
sDamageableComponent = sDestructibleEntity.GetComponent<IDamageableComponent>();
|
||||||
|
sDestructibleComponent = sDestructibleEntity.GetComponent<DestructibleComponent>();
|
||||||
|
sThresholdListenerComponent = sDestructibleEntity.GetComponent<TestThresholdListenerComponent>();
|
||||||
|
});
|
||||||
|
|
||||||
|
await server.WaitAssertion(() =>
|
||||||
|
{
|
||||||
|
var coordinates = sDestructibleEntity.Transform.Coordinates;
|
||||||
|
|
||||||
|
Assert.DoesNotThrow(() =>
|
||||||
|
{
|
||||||
|
Assert.True(sDamageableComponent.ChangeDamage(DamageClass.Brute, 50, true));
|
||||||
|
});
|
||||||
|
|
||||||
|
Assert.That(sThresholdListenerComponent.ThresholdsReached.Count, Is.EqualTo(1));
|
||||||
|
|
||||||
|
var threshold = sThresholdListenerComponent.ThresholdsReached[0].Threshold;
|
||||||
|
|
||||||
|
Assert.That(threshold.Triggered, Is.True);
|
||||||
|
Assert.That(threshold.Behaviors.Count, Is.EqualTo(3));
|
||||||
|
|
||||||
|
var spawnEntitiesBehavior = (SpawnEntitiesBehavior) threshold.Behaviors.Single(b => b is SpawnEntitiesBehavior);
|
||||||
|
|
||||||
|
Assert.That(spawnEntitiesBehavior.Spawn.Count, Is.EqualTo(1));
|
||||||
|
Assert.That(spawnEntitiesBehavior.Spawn.Keys.Single(), Is.EqualTo(SpawnedEntityId));
|
||||||
|
Assert.That(spawnEntitiesBehavior.Spawn.Values.Single(), Is.EqualTo(new MinMax {Min = 1, Max = 1}));
|
||||||
|
|
||||||
|
var entitiesInRange = sEntityManager.GetEntitiesInRange(coordinates, 2);
|
||||||
|
var found = false;
|
||||||
|
|
||||||
|
foreach (var entity in entitiesInRange)
|
||||||
|
{
|
||||||
|
if (entity.Prototype == null)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (entity.Prototype.Name != SpawnedEntityId)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
Assert.That(found, Is.True);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,14 @@ namespace Content.Server.GameObjects.Components.Destructible.Thresholds.Behavior
|
|||||||
{
|
{
|
||||||
public interface IThresholdBehavior : IExposeData
|
public interface IThresholdBehavior : IExposeData
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Triggers this behavior.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="owner">The entity that owns this behavior.</param>
|
||||||
|
/// <param name="system">
|
||||||
|
/// An instance of <see cref="DestructibleSystem"/> to pull dependencies
|
||||||
|
/// and other systems from.
|
||||||
|
/// </param>
|
||||||
void Trigger(IEntity owner, DestructibleSystem system);
|
void Trigger(IEntity owner, DestructibleSystem system);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,12 @@ namespace Content.Server.GameObjects.Components.Destructible.Thresholds
|
|||||||
{
|
{
|
||||||
public class Threshold : IExposeData
|
public class Threshold : IExposeData
|
||||||
{
|
{
|
||||||
|
private List<IThresholdBehavior> _behaviors = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether or not this threshold has already been triggered.
|
/// Whether or not this threshold has already been triggered.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables] public bool Triggered;
|
[ViewVariables] public bool Triggered { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether or not this threshold only triggers once.
|
/// Whether or not this threshold only triggers once.
|
||||||
@@ -22,18 +24,18 @@ namespace Content.Server.GameObjects.Components.Destructible.Thresholds
|
|||||||
/// and then damaged to reach this threshold once again.
|
/// and then damaged to reach this threshold once again.
|
||||||
/// It will not repeatedly trigger as damage rises beyond that.
|
/// It will not repeatedly trigger as damage rises beyond that.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables] public bool TriggersOnce;
|
[ViewVariables] public bool TriggersOnce { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Behaviors to activate once this threshold is triggered.
|
/// Behaviors to activate once this threshold is triggered.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables] public List<IThresholdBehavior> Behaviors = new();
|
[ViewVariables] public IReadOnlyList<IThresholdBehavior> Behaviors => _behaviors;
|
||||||
|
|
||||||
public void ExposeData(ObjectSerializer serializer)
|
public void ExposeData(ObjectSerializer serializer)
|
||||||
{
|
{
|
||||||
serializer.DataField(ref Triggered, "triggered", false);
|
serializer.DataField(this, x => x.Triggered, "triggered", false);
|
||||||
serializer.DataField(ref TriggersOnce, "triggersOnce", false);
|
serializer.DataField(this, x => x.TriggersOnce, "triggersOnce", false);
|
||||||
serializer.DataField(ref Behaviors, "behaviors", new List<IThresholdBehavior>());
|
serializer.DataField(ref _behaviors, "behaviors", new List<IThresholdBehavior>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -50,6 +52,10 @@ namespace Content.Server.GameObjects.Components.Destructible.Thresholds
|
|||||||
|
|
||||||
foreach (var behavior in Behaviors)
|
foreach (var behavior in Behaviors)
|
||||||
{
|
{
|
||||||
|
// The owner has been deleted. We stop execution of behaviors here.
|
||||||
|
if (owner.Deleted)
|
||||||
|
return;
|
||||||
|
|
||||||
behavior.Trigger(owner, system);
|
behavior.Trigger(owner, system);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
30:
|
30:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/woodhit.ogg
|
sound: /Audio/Effects/woodhit.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -34,6 +32,9 @@
|
|||||||
WoodPlank:
|
WoodPlank:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: ["Destruction"]
|
||||||
|
|
||||||
- type: Occluder
|
- type: Occluder
|
||||||
sizeX: 32
|
sizeX: 32
|
||||||
sizeY: 32
|
sizeY: 32
|
||||||
|
|||||||
@@ -33,8 +33,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
30:
|
30:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -42,6 +40,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: Shelf
|
id: Shelf
|
||||||
@@ -78,8 +78,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
30:
|
30:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -87,3 +85,5 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|||||||
@@ -41,8 +41,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
15:
|
15:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -50,6 +48,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: TableFrame
|
id: TableFrame
|
||||||
@@ -67,8 +67,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
1:
|
1:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -76,6 +74,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: TableFrame
|
node: TableFrame
|
||||||
@@ -96,8 +96,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
1:
|
1:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -105,6 +103,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: TableMetal
|
id: TableMetal
|
||||||
@@ -122,8 +122,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
15:
|
15:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -131,6 +129,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: MetalTable
|
node: MetalTable
|
||||||
@@ -151,8 +151,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
75:
|
75:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -160,6 +158,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: ReinforcedTable
|
node: ReinforcedTable
|
||||||
@@ -180,8 +180,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
5:
|
5:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/glass_break2.ogg
|
sound: /Audio/Effects/glass_break2.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -189,6 +187,8 @@
|
|||||||
ShardGlass:
|
ShardGlass:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: GlassTable
|
node: GlassTable
|
||||||
@@ -209,8 +209,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
20:
|
20:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/glass_break2.ogg
|
sound: /Audio/Effects/glass_break2.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -218,6 +216,8 @@
|
|||||||
ShardGlass:
|
ShardGlass:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: RGlassTable
|
node: RGlassTable
|
||||||
@@ -238,8 +238,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
15:
|
15:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/woodhit.ogg
|
sound: /Audio/Effects/woodhit.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -247,6 +245,8 @@
|
|||||||
WoodPlank:
|
WoodPlank:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: WoodTable
|
node: WoodTable
|
||||||
@@ -267,8 +267,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
15:
|
15:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/woodhit.ogg
|
sound: /Audio/Effects/woodhit.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -276,6 +274,8 @@
|
|||||||
WoodPlank:
|
WoodPlank:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Construction
|
- type: Construction
|
||||||
graph: Tables
|
graph: Tables
|
||||||
node: PokerTable
|
node: PokerTable
|
||||||
@@ -296,10 +296,10 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
50:
|
50:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/picaxe2.ogg
|
sound: /Audio/Effects/picaxe2.ogg
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: TableDebug
|
id: TableDebug
|
||||||
|
|||||||
@@ -55,13 +55,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
100:
|
100:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
HVWireStack1:
|
HVWireStack1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: WireBase
|
parent: WireBase
|
||||||
@@ -92,13 +92,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
100:
|
100:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
MVWireStack1:
|
MVWireStack1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: WireBase
|
parent: WireBase
|
||||||
@@ -131,10 +131,10 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
100:
|
100:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
ApcExtensionCableStack1:
|
ApcExtensionCableStack1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
|||||||
@@ -37,13 +37,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
50:
|
50:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
chem_master_broken:
|
chem_master_broken:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: UserInterface
|
- type: UserInterface
|
||||||
interfaces:
|
interfaces:
|
||||||
- key: enum.ChemMasterUiKey.Key
|
- key: enum.ChemMasterUiKey.Key
|
||||||
@@ -86,13 +86,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
25:
|
25:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: UserInterface
|
- type: UserInterface
|
||||||
interfaces:
|
interfaces:
|
||||||
- key: enum.ChemMasterUiKey.Key
|
- key: enum.ChemMasterUiKey.Key
|
||||||
|
|||||||
@@ -32,13 +32,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
50:
|
50:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: SnapGrid
|
- type: SnapGrid
|
||||||
offset: Edge
|
offset: Edge
|
||||||
placement:
|
placement:
|
||||||
|
|||||||
@@ -50,13 +50,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: brick
|
base: brick
|
||||||
@@ -76,13 +76,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: clock
|
base: clock
|
||||||
@@ -102,13 +102,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: clown
|
base: clown
|
||||||
@@ -129,13 +129,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: cult
|
base: cult
|
||||||
@@ -155,13 +155,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: debug
|
base: debug
|
||||||
@@ -181,13 +181,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: diamond
|
base: diamond
|
||||||
@@ -208,13 +208,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: gold
|
base: gold
|
||||||
@@ -234,13 +234,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: ice
|
base: ice
|
||||||
@@ -260,13 +260,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: metal
|
base: metal
|
||||||
@@ -286,13 +286,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: plasma
|
base: plasma
|
||||||
@@ -312,13 +312,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: plastic
|
base: plastic
|
||||||
@@ -371,13 +371,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
1000:
|
1000:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: riveted
|
base: riveted
|
||||||
@@ -397,13 +397,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: sandstone
|
base: sandstone
|
||||||
@@ -423,13 +423,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: silver
|
base: silver
|
||||||
@@ -477,13 +477,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: uranium
|
base: uranium
|
||||||
@@ -503,13 +503,13 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
300:
|
300:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
spawn:
|
spawn:
|
||||||
Girder:
|
Girder:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: wood
|
base: wood
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
15:
|
15:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundCollectionBehavior
|
- !type:PlaySoundCollectionBehavior
|
||||||
soundCollection: WindowBreak
|
soundCollection: WindowBreak
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -41,6 +39,8 @@
|
|||||||
ShardGlass:
|
ShardGlass:
|
||||||
min: 1
|
min: 1
|
||||||
max: 2
|
max: 2
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: SnapGrid
|
- type: SnapGrid
|
||||||
offset: Center
|
offset: Center
|
||||||
- type: Airtight
|
- type: Airtight
|
||||||
@@ -70,8 +70,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
75:
|
75:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundCollectionBehavior
|
- !type:PlaySoundCollectionBehavior
|
||||||
soundCollection: WindowBreak
|
soundCollection: WindowBreak
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -79,6 +77,8 @@
|
|||||||
ShardGlassReinforced:
|
ShardGlassReinforced:
|
||||||
min: 1
|
min: 1
|
||||||
max: 2
|
max: 2
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Window
|
- type: Window
|
||||||
base: rwindow
|
base: rwindow
|
||||||
maxDamage: 75
|
maxDamage: 75
|
||||||
@@ -102,8 +102,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
100:
|
100:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundCollectionBehavior
|
- !type:PlaySoundCollectionBehavior
|
||||||
soundCollection: WindowBreak
|
soundCollection: WindowBreak
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -111,6 +109,8 @@
|
|||||||
ShardGlassPhoron:
|
ShardGlassPhoron:
|
||||||
min: 1
|
min: 1
|
||||||
max: 2
|
max: 2
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
resistances: metallicResistances
|
resistances: metallicResistances
|
||||||
- type: Window
|
- type: Window
|
||||||
base: pwindow
|
base: pwindow
|
||||||
|
|||||||
@@ -29,8 +29,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
5:
|
5:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundCollectionBehavior
|
- !type:PlaySoundCollectionBehavior
|
||||||
soundCollection: WindowBreak
|
soundCollection: WindowBreak
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -38,6 +36,8 @@
|
|||||||
ShardGlass:
|
ShardGlass:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: DamageOnLand
|
- type: DamageOnLand
|
||||||
amount: 5
|
amount: 5
|
||||||
- type: DamageOtherOnHit
|
- type: DamageOtherOnHit
|
||||||
|
|||||||
@@ -133,8 +133,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
10:
|
10:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/glass_break1.ogg
|
sound: /Audio/Effects/glass_break1.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -142,6 +140,8 @@
|
|||||||
FloodlightBroken:
|
FloodlightBroken:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
visuals:
|
visuals:
|
||||||
- type: FlashLightVisualizer
|
- type: FlashLightVisualizer
|
||||||
@@ -162,8 +162,6 @@
|
|||||||
thresholds:
|
thresholds:
|
||||||
20:
|
20:
|
||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
|
||||||
acts: ["Destruction"]
|
|
||||||
- !type:PlaySoundBehavior
|
- !type:PlaySoundBehavior
|
||||||
sound: /Audio/Effects/metalbreak.ogg
|
sound: /Audio/Effects/metalbreak.ogg
|
||||||
- !type:SpawnEntitiesBehavior
|
- !type:SpawnEntitiesBehavior
|
||||||
@@ -171,6 +169,8 @@
|
|||||||
SteelSheet1:
|
SteelSheet1:
|
||||||
min: 1
|
min: 1
|
||||||
max: 1
|
max: 1
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
- type: Physics
|
- type: Physics
|
||||||
shapes:
|
shapes:
|
||||||
- !type:PhysShapeAabb
|
- !type:PhysShapeAabb
|
||||||
|
|||||||
Reference in New Issue
Block a user