Conditional Meat spike logging severity (#40604)
* Reduce meatspike logging level from Extreme to High on non gibbing interactions * Update butchering with some more conditionals * Update Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com> * Update Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com> --------- Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
This commit is contained in:
parent
2a9cf441f8
commit
fd98ce3581
|
|
@ -8,6 +8,7 @@ using Content.Shared.DoAfter;
|
|||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Hands;
|
||||
using Content.Shared.Humanoid;
|
||||
using Content.Shared.IdentityManagement;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Interaction.Events;
|
||||
|
|
@ -239,8 +240,11 @@ public sealed class SharedKitchenSpikeSystem : EntitySystem
|
|||
args.Target.Value,
|
||||
ent);
|
||||
|
||||
// normally medium severity, but for humanoids high severity, so new players get relay'd to admin alerts.
|
||||
var logSeverity = HasComp<HumanoidAppearanceComponent>(args.Target) ? LogImpact.High : LogImpact.Medium;
|
||||
|
||||
_logger.Add(LogType.Action,
|
||||
LogImpact.High,
|
||||
logSeverity,
|
||||
$"{ToPrettyString(args.User):user} put {ToPrettyString(args.Target):target} on the {ToPrettyString(ent):spike}");
|
||||
|
||||
_audioSystem.PlayPredicted(ent.Comp.SpikeSound, ent, args.User);
|
||||
|
|
@ -325,8 +329,10 @@ public sealed class SharedKitchenSpikeSystem : EntitySystem
|
|||
}
|
||||
// END DeltaV
|
||||
|
||||
var logSeverity = HasComp<HumanoidAppearanceComponent>(args.Target) ? LogImpact.Extreme : LogImpact.High;
|
||||
|
||||
_logger.Add(LogType.Gib,
|
||||
LogImpact.Extreme,
|
||||
logSeverity,
|
||||
$"{ToPrettyString(args.User):user} finished butchering {ToPrettyString(args.Target):target} on the {ToPrettyString(ent):spike}");
|
||||
}
|
||||
else
|
||||
|
|
@ -334,8 +340,10 @@ public sealed class SharedKitchenSpikeSystem : EntitySystem
|
|||
EnsureComp<KitchenSpikeVictimComponent>(args.Target.Value);
|
||||
|
||||
_damageableSystem.TryChangeDamage(args.Target, ent.Comp.ButcherDamage, true);
|
||||
|
||||
// Log severity for damaging other entities is normally medium.
|
||||
_logger.Add(LogType.Action,
|
||||
LogImpact.Extreme,
|
||||
LogImpact.Medium,
|
||||
$"{ToPrettyString(args.User):user} butchered {ToPrettyString(args.Target):target} on the {ToPrettyString(ent):spike}");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue