Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Content.Client/_DV/Silicons/SiliconEmpSystem.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public sealed partial class CosmicFinaleComponent : Component
{ "Blunt", 2.25},
{ "Cold", 2.25},
{ "Radiation", 2.25},
{ "Asphyxiation", 2.25},
{ "Ion", 2.25}
{ "Asphyxiation", 2.25}
}
};
}
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/_DV/CosmicCult/CosmicCultSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void OnGotCosmicItemEquipped(Entity<CosmicEquipmentComponent> ent, ref G
if (!EntityIsCultist(args.Equipee))
{
_statusEffects.TryAddStatusEffect<CosmicEntropyDebuffComponent>(args.Equipee, EntropicDegen, TimeSpan.FromDays(1), true); // TimeSpan.MaxValue causes a crash here, so we use FromDays(1) instead.
if (TryComp<CosmicEntropyDebuffComponent>(args.Equipee, out var comp)) comp.Degen = new(){DamageDict = new(){{"Cold", 0.5}, {"Asphyxiation", 1.5}, {"Ion", 1.5}}};
if (TryComp<CosmicEntropyDebuffComponent>(args.Equipee, out var comp)) comp.Degen = new(){DamageDict = new(){{"Cold", 0.5}, {"Asphyxiation", 1.5}}};
}
}

Expand All @@ -188,7 +188,7 @@ private void OnGotHeld(Entity<CosmicEquipmentComponent> ent, ref GotEquippedHand
if (!EntityIsCultist(args.User))
{
_statusEffects.TryAddStatusEffect<CosmicEntropyDebuffComponent>(args.User, EntropicDegen, TimeSpan.FromDays(1), true);
if (TryComp<CosmicEntropyDebuffComponent>(args.User, out var comp)) comp.Degen = new(){DamageDict = new(){{"Cold", 0.5}, {"Asphyxiation", 1.5}, {"Ion", 1.5}}};
if (TryComp<CosmicEntropyDebuffComponent>(args.User, out var comp)) comp.Degen = new(){DamageDict = new(){{"Cold", 0.5}, {"Asphyxiation", 1.5}}};
_popup.PopupEntity(Loc.GetString("cosmiccult-gear-pickup", ("ITEM", args.Equipped)), args.User, args.User, PopupType.MediumCaution);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public override void Update(float frameTime)
if (TryComp<CosmicEntropyDebuffComponent>(mob, out var debuff)) debuff.Degen =
new(){DamageDict = new(){
{"Cold", 0.05 * damageMultiplier},
{"Asphyxiation", 0.15 * damageMultiplier},
{"Ion", 0.15 * damageMultiplier}
{"Asphyxiation", 0.15 * damageMultiplier}
}};
}
}
Expand Down
5 changes: 0 additions & 5 deletions Content.Server/_DV/Silicons/SiliconEmpSystem.cs

This file was deleted.

20 changes: 8 additions & 12 deletions Content.Shared/Emp/SharedEmpSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ public override void Initialize()
/// <param name="energyConsumption">The amount of energy consumed by the EMP pulse. In Joule.</param>
/// <param name="duration">The duration of the EMP effects.</param>
/// <param name="user">The player that caused the effect. Used for predicted audio.</param>
/// <param name="damage">DeltaV - The damage that that EMP will do. If not specified or null, will do 130 Ion damage. To do no damage, pass in a DamageSpecifier with no damage types.</param>
public void EmpPulse(MapCoordinates mapCoordinates, float range, float energyConsumption, TimeSpan duration, EntityUid? user = null, DamageSpecifier? damage = null) // DeltaV - Add Ion Damage
public void EmpPulse(MapCoordinates mapCoordinates, float range, float energyConsumption, TimeSpan duration, EntityUid? user = null)
{
foreach (var uid in _lookup.GetEntitiesInRange(mapCoordinates, range))
{
TryEmpEffects(uid, energyConsumption, duration, user, damage ?? DefaultEmpDamage); // DeltaV - Add Ion Damage
TryEmpEffects(uid, energyConsumption, duration, user);
}

// TODO: replace with PredictedSpawn once it works with animated sprites
Expand Down Expand Up @@ -92,14 +91,13 @@ public void EmpPulse(MapCoordinates mapCoordinates, float range, float energyCon
/// <param name="energyConsumption">The amount of energy consumed by the EMP pulse.</param>
/// <param name="duration">The duration of the EMP effects.</param>
/// <param name="user">The player that caused the effect. Used for predicted audio.</param>'
/// <param name="damage">DeltaV - The damage that that EMP will do. If not specified or null, will do 130 Ion damage. To do no damage, pass in a DamageSpecifier with no damage types.</param>
public void EmpPulse(EntityCoordinates coordinates, float range, float energyConsumption, TimeSpan duration, EntityUid? user = null, DamageSpecifier? damage = null) // DeltaV - Add Ion Damage
public void EmpPulse(EntityCoordinates coordinates, float range, float energyConsumption, TimeSpan duration, EntityUid? user = null)
{
_entSet.Clear();
_lookup.GetEntitiesInRange(coordinates, range, _entSet);
foreach (var uid in _entSet)
{
TryEmpEffects(uid, energyConsumption, duration, user, damage ?? DefaultEmpDamage); // DeltaV - Add Ion Damage
TryEmpEffects(uid, energyConsumption, duration, user);
}
// TODO: replace with PredictedSpawn once it works with animated sprites
if (_net.IsServer)
Expand All @@ -126,16 +124,15 @@ public void EmpPulse(EntityCoordinates coordinates, float range, float energyCon
/// <param name="energyConsumption">The amount of energy consumed by the EMP.</param>
/// <param name="duration">The duration of the EMP effects.</param>
/// <param name="user">The player that caused the EMP. For prediction purposes.</param>
/// <param name="damage">DeltaV - The damage that that EMP will do. If null, no damage is done.</param>
/// <returns>If the entity was affected by the EMP.</returns>
public bool TryEmpEffects(EntityUid uid, float energyConsumption, TimeSpan duration, EntityUid? user = null, DamageSpecifier? damage = null) // DeltaV - Add Ion Damage
public bool TryEmpEffects(EntityUid uid, float energyConsumption, TimeSpan duration, EntityUid? user = null)
{
var attemptEv = new EmpAttemptEvent();
RaiseLocalEvent(uid, ref attemptEv);
if (attemptEv.Cancelled)
return false;

return DoEmpEffects(uid, energyConsumption, duration, user, damage); // DeltaV - Add Ion Damage
return DoEmpEffects(uid, energyConsumption, duration, user);
}

/// <summary>
Expand All @@ -147,9 +144,8 @@ public bool TryEmpEffects(EntityUid uid, float energyConsumption, TimeSpan durat
/// <param name="energyConsumption">The amount of energy consumed by the EMP.</param>
/// <param name="duration">The duration of the EMP effects.</param>
/// <param name="user">The player that caused the EMP. For prediction purposes.</param>
/// <param name="damage">DeltaV - The damage that that EMP will do. If null, no damage is done.</param>
/// <returns>If the entity was affected by the EMP.</returns>
public bool DoEmpEffects(EntityUid uid, float energyConsumption, TimeSpan duration, EntityUid? user = null, DamageSpecifier? damage = null) // DeltaV - Add Ion Damage
public bool DoEmpEffects(EntityUid uid, float energyConsumption, TimeSpan duration, EntityUid? user = null)
{
var strMultiplier = 1f;
var durMultiplier = 1f;
Expand All @@ -158,7 +154,7 @@ public bool DoEmpEffects(EntityUid uid, float energyConsumption, TimeSpan durati
strMultiplier = resistance.StrengthMultiplier;
durMultiplier = resistance.DurationMultiplier;
}
var ev = new EmpPulseEvent(energyConsumption * strMultiplier, false, false, duration * durMultiplier, user, damage); // DeltaV - Add Ion Damage
var ev = new EmpPulseEvent(energyConsumption * strMultiplier, false, false, duration * durMultiplier, user);
RaiseLocalEvent(uid, ref ev);

// TODO: replace with PredictedSpawn once it works with animated sprites
Expand Down
3 changes: 1 addition & 2 deletions Content.Shared/Trigger/Systems/EmpOnTriggerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public sealed class EmpOnTriggerSystem : XOnTriggerSystem<EmpOnTriggerComponent>

protected override void OnTrigger(Entity<EmpOnTriggerComponent> ent, EntityUid target, ref TriggerEvent args)
{
_emp.EmpPulse(Transform(target).Coordinates, ent.Comp.Range, ent.Comp.EnergyConsumption, ent.Comp.DisableDuration, args.User, ent.Comp.Damage); // DeltaV - Silicon damage
args.Handled = true;
_emp.EmpPulse(Transform(target).Coordinates, ent.Comp.Range, ent.Comp.EnergyConsumption, ent.Comp.DisableDuration, args.User);
}
}

This file was deleted.

40 changes: 0 additions & 40 deletions Content.Shared/_DV/Silicons/SharedSiliconEmpSystem.cs

This file was deleted.

1 change: 0 additions & 1 deletion Resources/Locale/en-US/_DV/damage/damage-groups.ftl
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
damage-group-electronic = Electronic
1 change: 0 additions & 1 deletion Resources/Prototypes/Damage/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
id: Silicon
supportedGroups:
- Brute
- Electronic # DeltaV
supportedTypes:
- Heat
- Shock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@
Slash: 0.8
Piercing: 0.8
Heat: 0.8
Ion: 0 # DeltaV - I love self gibbing as ninja IPC!!
# phase cloak
- type: ToggleClothing
action: ActionTogglePhaseCloak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,6 @@
- Normal
- type: JetpackUser # DeltaV: Lets cyborgs fly in space
- type: PreventDropOnDowned # Frontier: borgs don't drop items when falling (e.g. critical/dead)
- type: PassiveDamage # DeltaV - electric damage disappears over time
allowedStates:
- Alive
- Critical
- Dead
damage:
groups:
Electronic: -0.5
- type: SiliconEmp # DeltaV - EMP damage
- type: BypassLock
- type: BypassLockRequiresMobState
requiredMobState:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@
range: 2.75
energyConsumption: 50000
disableDuration: 10
damage: # DeltaV - EMP damage
types:
Ion: 80 # Would take 2 charges if you want to actually kill with it

- type: entity
parent: BaseSubdermalImplant
Expand Down Expand Up @@ -434,4 +431,4 @@
- type: SubdermalImplant
- type: RadioImplant
radioChannels:
- CentCom
- CentCom
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@
damage:
types:
Heat: 0
Ion: 10 # DeltaV
soundHit:
collection: WeakHit
forceSound: true
Expand Down Expand Up @@ -369,7 +368,6 @@
damage:
types:
Heat: 0
Ion: 5 # DeltaV
soundHit:
collection: WeakHit
forceSound: true
Expand Down Expand Up @@ -1181,7 +1179,6 @@
damage:
types:
Heat: 0
Ion: 4 # DeltaV
soundHit:
collection: WeakHit
forceSound: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
Asphyxiation: 12
Cold: 12
Structural: 15
Ion: 15
soundHit:
path: /Audio/_DV/CosmicCult/cosmicsword_hit.ogg
params:
Expand Down Expand Up @@ -101,7 +100,6 @@
Piercing: 12
Asphyxiation: 10
Cold: 10
Ion: 12
soundHit:
path: /Audio/_DV/CosmicCult/cosmiclance_hit.ogg
params:
Expand Down Expand Up @@ -219,7 +217,6 @@
Asphyxiation: 6
Cold: 6
Structural: 15
Ion: 8
soundHit:
path: /Audio/_DV/CosmicCult/cosmicsword_hit.ogg
params:
Expand Down
6 changes: 0 additions & 6 deletions Resources/Prototypes/_DV/CosmicCult/glyphs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
activationDamage:
types:
Asphyxiation: 60
Ion: 60
- type: CosmicCultExamine
cultistText: cosmic-examine-glyph-truth

Expand All @@ -79,7 +78,6 @@
activationDamage:
types:
Asphyxiation: 40
Ion: 40
- type: CosmicCultExamine
cultistText: cosmic-examine-glyph-knowledge

Expand All @@ -99,7 +97,6 @@
activationDamage:
types:
Asphyxiation: 25
Ion: 25
- type: CosmicCultExamine
cultistText: cosmic-examine-glyph-cessation

Expand All @@ -119,7 +116,6 @@
activationDamage:
types:
Asphyxiation: 50
Ion: 50
- type: CosmicCultExamine
cultistText: cosmic-examine-glyph-blades

Expand All @@ -139,7 +135,6 @@
activationDamage:
types:
Asphyxiation: 50
Ion: 50
- type: CosmicCultExamine
cultistText: cosmic-examine-glyph-warding

Expand All @@ -160,6 +155,5 @@
activationDamage:
types:
Asphyxiation: 25
Ion: 25
- type: CosmicCultExamine
cultistText: cosmic-examine-glyph-projection
2 changes: 0 additions & 2 deletions Resources/Prototypes/_DV/CosmicCult/projectiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,12 @@
types:
Cold: 15
Asphyxiation: 10
Ion: 15
- type: Projectile
impactEffect: BulletImpactEffectCosmic
damage:
types:
Cold: 10
Asphyxiation: 5
Ion: 8

- type: entity
id: BulletImpactEffectCosmic
Expand Down
5 changes: 0 additions & 5 deletions Resources/Prototypes/_DV/Damage/groups.yml
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
- type: damageGroup
id: Electronic
name: damage-group-electronic
damageTypes:
- Ion
4 changes: 2 additions & 2 deletions Resources/Prototypes/_DV/Damage/types.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- type: damageType
id: Ion
name: damage-type-ion
id: Shadow
name: damage-type-shadow
armorCoefficientPrice: 1
armorFlatPrice: 1

Expand Down
Loading