Magic staves + wands (#9070)
This commit is contained in:
@@ -15,6 +15,9 @@ namespace Content.Server.Projectiles.Components
|
||||
[DataField("deleteOnCollide")]
|
||||
public bool DeleteOnCollide { get; } = true;
|
||||
|
||||
[DataField("ignoreResistances")]
|
||||
public bool IgnoreResistances { get; } = false;
|
||||
|
||||
// Get that juicy FPS hit sound
|
||||
[DataField("soundHit")] public SoundSpecifier? SoundHit;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Content.Server.Projectiles
|
||||
|
||||
var otherEntity = args.OtherFixture.Body.Owner;
|
||||
|
||||
var modifiedDamage = _damageableSystem.TryChangeDamage(otherEntity, component.Damage);
|
||||
var modifiedDamage = _damageableSystem.TryChangeDamage(otherEntity, component.Damage, component.IgnoreResistances);
|
||||
component.DamagedEntity = true;
|
||||
|
||||
if (modifiedDamage is not null && EntityManager.EntityExists(component.Shooter))
|
||||
|
||||
Reference in New Issue
Block a user