Revamped Meteor Swarm (#28974)
* meteor code and balanced values * Meteor Swarms * Update meteors.yml * Update meteors.yml * HOO! (fix overkill bug and buff space dust) * undo BloodstreamComponent.cs changes * DamageDistribution -> DamageTypes * part 2.
This commit is contained in:
25
Content.Server/Mining/MeteorComponent.cs
Normal file
25
Content.Server/Mining/MeteorComponent.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Content.Shared.Damage;
|
||||
|
||||
namespace Content.Server.Mining;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for meteors which hit objects, dealing damage to destroy/kill the object and dealing equal damage back to itself.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(MeteorSystem))]
|
||||
public sealed partial class MeteorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Damage specifier that is multiplied against the calculated damage amount to determine what damage is applied to the colliding entity.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The values of this should add up to 1 or else the damage will be scaled.
|
||||
/// </remarks>
|
||||
[DataField]
|
||||
public DamageSpecifier DamageTypes = new();
|
||||
|
||||
/// <summary>
|
||||
/// A list of entities that this meteor has collided with. used to ensure no double collisions occur.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public HashSet<EntityUid> HitList = new();
|
||||
}
|
||||
Reference in New Issue
Block a user