Increase wall HP (#1713)
* Increase all walls hp by 5 times * Increase reinforced and riveted wall hp as well * Revert "Increase reinforced and riveted wall hp as well" This reverts commit a9d95670e3f6c4d7fb2b2cf3c84503496f685e26. * Increase reinforced and riveted wall hp as well * Merge conflict fixes * Reduced wall hp slightly
This commit is contained in:
@@ -20,9 +20,7 @@ namespace Content.Server.GameObjects.Components.Damage
|
|||||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
|
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
|
||||||
#pragma warning restore 649
|
#pragma warning restore 649
|
||||||
|
|
||||||
protected ActSystem _actSystem;
|
protected ActSystem ActSystem;
|
||||||
|
|
||||||
protected string _spawnOnDestroy;
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override string Name => "Destructible";
|
public override string Name => "Destructible";
|
||||||
@@ -30,26 +28,26 @@ namespace Content.Server.GameObjects.Components.Damage
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Entity spawned upon destruction.
|
/// Entity spawned upon destruction.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SpawnOnDestroy => _spawnOnDestroy;
|
public string SpawnOnDestroy { get; set; }
|
||||||
|
|
||||||
void IDestroyAct.OnDestroy(DestructionEventArgs eventArgs)
|
void IDestroyAct.OnDestroy(DestructionEventArgs eventArgs)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(_spawnOnDestroy) && eventArgs.IsSpawnWreck)
|
if (!string.IsNullOrWhiteSpace(SpawnOnDestroy) && eventArgs.IsSpawnWreck)
|
||||||
{
|
{
|
||||||
Owner.EntityManager.SpawnEntity(_spawnOnDestroy, Owner.Transform.GridPosition);
|
Owner.EntityManager.SpawnEntity(SpawnOnDestroy, Owner.Transform.GridPosition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ExposeData(ObjectSerializer serializer)
|
public override void ExposeData(ObjectSerializer serializer)
|
||||||
{
|
{
|
||||||
base.ExposeData(serializer);
|
base.ExposeData(serializer);
|
||||||
serializer.DataField(ref _spawnOnDestroy, "spawnondestroy", string.Empty);
|
serializer.DataField(this, d => d.SpawnOnDestroy, "spawnondestroy", string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
_actSystem = _entitySystemManager.GetEntitySystem<ActSystem>();
|
ActSystem = _entitySystemManager.GetEntitySystem<ActSystem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -58,7 +56,7 @@ namespace Content.Server.GameObjects.Components.Damage
|
|||||||
if (!Owner.Deleted)
|
if (!Owner.Deleted)
|
||||||
{
|
{
|
||||||
var pos = Owner.Transform.GridPosition;
|
var pos = Owner.Transform.GridPosition;
|
||||||
_actSystem.HandleDestruction(Owner,
|
ActSystem.HandleDestruction(Owner,
|
||||||
true); //This will call IDestroyAct.OnDestroy on this component (and all other components on this entity)
|
true); //This will call IDestroyAct.OnDestroy on this component (and all other components on this entity)
|
||||||
if (DestroySound != string.Empty)
|
if (DestroySound != string.Empty)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using Robust.Shared.GameObjects;
|
|||||||
using Robust.Shared.GameObjects.Systems;
|
using Robust.Shared.GameObjects.Systems;
|
||||||
using Robust.Shared.Interfaces.GameObjects;
|
using Robust.Shared.Interfaces.GameObjects;
|
||||||
using Robust.Shared.Serialization;
|
using Robust.Shared.Serialization;
|
||||||
|
using Robust.Shared.ViewVariables;
|
||||||
|
|
||||||
namespace Content.Server.GameObjects.Components.Damage
|
namespace Content.Server.GameObjects.Components.Damage
|
||||||
{
|
{
|
||||||
@@ -21,6 +22,7 @@ namespace Content.Server.GameObjects.Components.Damage
|
|||||||
/// How much HP this component can sustain before triggering
|
/// How much HP this component can sustain before triggering
|
||||||
/// <see cref="PerformDestruction"/>.
|
/// <see cref="PerformDestruction"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public int MaxHp { get; private set; }
|
public int MaxHp { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
maxHP: 100
|
maxHP: 500
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: Occluder
|
- type: Occluder
|
||||||
sizeX: 32
|
sizeX: 32
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/brick.rsi
|
sprite: Constructible/Structures/Walls/brick.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/clock.rsi
|
sprite: Constructible/Structures/Walls/clock.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/clown.rsi
|
sprite: Constructible/Structures/Walls/clown.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/cult.rsi
|
sprite: Constructible/Structures/Walls/cult.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/debug.rsi
|
sprite: Constructible/Structures/Walls/debug.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/diamond.rsi
|
sprite: Constructible/Structures/Walls/diamond.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/gold.rsi
|
sprite: Constructible/Structures/Walls/gold.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/ice.rsi
|
sprite: Constructible/Structures/Walls/ice.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/metal.rsi
|
sprite: Constructible/Structures/Walls/metal.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/plasma.rsi
|
sprite: Constructible/Structures/Walls/plasma.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/plastic.rsi
|
sprite: Constructible/Structures/Walls/plastic.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
sprite: Constructible/Structures/Walls/solid.rsi
|
sprite: Constructible/Structures/Walls/solid.rsi
|
||||||
state: rgeneric
|
state: rgeneric
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 300
|
maxHP: 600
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: ReinforcedWall
|
- type: ReinforcedWall
|
||||||
key: walls
|
key: walls
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/riveted.rsi
|
sprite: Constructible/Structures/Walls/riveted.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 1000
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/sandstone.rsi
|
sprite: Constructible/Structures/Walls/sandstone.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/silver.rsi
|
sprite: Constructible/Structures/Walls/silver.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -296,9 +296,9 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/solid.rsi
|
sprite: Constructible/Structures/Walls/solid.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
destroySound: /Audio/effects/metalbreak.ogg
|
destroySound: /Audio/Effects/metalbreak.ogg
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
base: solid
|
base: solid
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/uranium.rsi
|
sprite: Constructible/Structures/Walls/uranium.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
@@ -329,7 +329,7 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Constructible/Structures/Walls/wood.rsi
|
sprite: Constructible/Structures/Walls/wood.rsi
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
health: 100
|
maxHP: 300
|
||||||
spawnOnDestroy: Girder
|
spawnOnDestroy: Girder
|
||||||
- type: IconSmooth
|
- type: IconSmooth
|
||||||
key: walls
|
key: walls
|
||||||
|
|||||||
Reference in New Issue
Block a user