Bows & arrows (#19771)
This commit is contained in:
@@ -64,7 +64,7 @@ public abstract class SharedDamageMarkerSystem : EntitySystem
|
||||
component.Amount <= 0 ||
|
||||
component.Whitelist?.IsValid(args.OtherEntity, EntityManager) == false ||
|
||||
!TryComp<ProjectileComponent>(uid, out var projectile) ||
|
||||
!projectile.Weapon.IsValid())
|
||||
projectile.Weapon == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -72,7 +72,7 @@ public abstract class SharedDamageMarkerSystem : EntitySystem
|
||||
// Markers are exclusive, deal with it.
|
||||
var marker = EnsureComp<DamageMarkerComponent>(args.OtherEntity);
|
||||
marker.Damage = new DamageSpecifier(component.Damage);
|
||||
marker.Marker = projectile.Weapon;
|
||||
marker.Marker = projectile.Weapon.Value;
|
||||
marker.EndTime = _timing.CurTime + component.Duration;
|
||||
component.Amount--;
|
||||
Dirty(marker);
|
||||
|
||||
Reference in New Issue
Block a user