Fix unknown component errors and duplicate damageable references (#1778)
This commit is contained in:
@@ -157,6 +157,7 @@
|
||||
"DamageOnHighSpeedImpact",
|
||||
"Barotrauma",
|
||||
"MobStateManager",
|
||||
"Metabolism",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace Content.Shared.GameObjects.Components.Damage
|
||||
/// Component that allows attached entities to take damage.
|
||||
/// This basic version never dies (thus can take an indefinite amount of damage).
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(IDamageableComponent))]
|
||||
public class DamageableComponent : Component, IDamageableComponent
|
||||
{
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
- type: Collidable
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Damageable
|
||||
- type: Destructible
|
||||
maxHP: 100
|
||||
- type: Physics
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
- type: Collidable
|
||||
shapes:
|
||||
- !type:PhysShapeAabb
|
||||
- type: Damageable
|
||||
- type: Destructible
|
||||
thresholdvalue: 5
|
||||
- type: Sprite
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
- type: SnapGrid
|
||||
offset: Center
|
||||
- type: Anchorable
|
||||
- type: Damageable
|
||||
- type: Breakable
|
||||
- type: Rotatable
|
||||
|
||||
|
||||
@@ -39,14 +39,10 @@
|
||||
layer:
|
||||
- Opaque
|
||||
- MobImpassable
|
||||
- type: Species
|
||||
Template: Human
|
||||
HeatResistance: 50
|
||||
- type: BodyManager
|
||||
BaseTemplate: bodyTemplate.Humanoid
|
||||
BasePreset: bodyPreset.BasicHuman
|
||||
- type: HeatResistance
|
||||
- type: Damageable
|
||||
- type: CombatMode
|
||||
- type: Teleportable
|
||||
- type: Stunnable
|
||||
|
||||
@@ -34,14 +34,10 @@
|
||||
layer:
|
||||
- Opaque
|
||||
- MobImpassable
|
||||
- type: Species
|
||||
Template: Human
|
||||
HeatResistance: 323
|
||||
- type: BodyManager
|
||||
BaseTemplate: bodyTemplate.Humanoid
|
||||
BasePreset: bodyPreset.BasicHuman
|
||||
- type: HeatResistance
|
||||
- type: Damageable
|
||||
- type: CombatMode
|
||||
- type: Teleportable
|
||||
- type: Stunnable
|
||||
|
||||
@@ -31,14 +31,10 @@
|
||||
layer:
|
||||
- Opaque
|
||||
- MobImpassable
|
||||
- type: Species
|
||||
Template: Human
|
||||
HeatResistance: 50
|
||||
- type: BodyManager
|
||||
BaseTemplate: bodyTemplate.Humanoid
|
||||
BasePreset: bodyPreset.BasicHuman
|
||||
- type: HeatResistance
|
||||
- type: Damageable
|
||||
- type: CombatMode
|
||||
- type: Teleportable
|
||||
- type: Stunnable
|
||||
@@ -64,7 +60,6 @@
|
||||
drawdepth: Mobs
|
||||
suffix: AI
|
||||
components:
|
||||
- type: Damageable
|
||||
- type: Sprite
|
||||
drawdepth: Mobs
|
||||
sprite: Mobs/Pets/corgi.rsi
|
||||
|
||||
@@ -258,7 +258,6 @@
|
||||
baseTemplate: bodyTemplate.Humanoid
|
||||
basePreset: bodyPreset.BasicHuman
|
||||
- type: MobStateManager
|
||||
- type: Damageable
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: RotationVisualizer
|
||||
|
||||
@@ -106,7 +106,6 @@
|
||||
devastationRange: 25
|
||||
heavyImpactRange: 25
|
||||
flashRange: 50
|
||||
- type: Damageable
|
||||
- type: Destructible
|
||||
thresholdvalue: 50
|
||||
- type: Appearance
|
||||
|
||||
Reference in New Issue
Block a user