mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 00:27:59 +00:00
* make pka smaller * re-buffs proto kinetic accelerator (#37012) * new ruins * genpop * nvm * abc * fuckin * turnstyle * ruins * stamp * abc * bruh * efg * pka fixed * range tweak * make lavaland 42kpa * rework pka modkits and quarter damage when in pressure * add modkits to points shop * add indoors modkit for traitors * change range to actually be range --------- Co-authored-by: deltanedas <@deltanedas:kde.org> Co-authored-by: TytosB <54259736+TytosB@users.noreply.github.com>
26 lines
844 B
C#
26 lines
844 B
C#
using Content.Shared.Atmos;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared._DV.Projectiles;
|
|
|
|
/// <summary>
|
|
/// Modifies projectile damage when atmospheric pressure is above a threshold.
|
|
/// Default is for a PKA bolt.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedPressureProjectileSystem))]
|
|
public sealed partial class PressureProjectileComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Max pressure to allow full damage at.
|
|
/// If it exceeds this at point of impact, damage gets modified by <see cref="Modifier"/>.
|
|
/// </summary>
|
|
[DataField]
|
|
public float MaxPressure = Atmospherics.OneAtmosphere * 0.5f;
|
|
|
|
/// <summary>
|
|
/// Multiplies projectile damage by this modifier when below <see cref="MaxPressure"/>.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Modifier = 0.25f;
|
|
}
|