Revs (the spooky ones) (#9842)

This commit is contained in:
Nemanja
2022-08-13 09:49:41 -04:00
committed by GitHub
parent ab4e2ef74f
commit 3e1cf73469
68 changed files with 1976 additions and 34 deletions

View File

@@ -64,10 +64,9 @@ namespace Content.Server.Ghost
var booCounter = 0;
foreach (var ent in ents)
{
var ghostBoo = new GhostBooEvent();
RaiseLocalEvent(ent, ghostBoo, true);
var handled = DoGhostBooEvent(ent);
if (ghostBoo.Handled)
if (handled)
booCounter++;
if (booCounter >= component.BooMaxTargets)
@@ -272,5 +271,13 @@ namespace Content.Server.Ghost
{
args.Cancel();
}
public bool DoGhostBooEvent(EntityUid target)
{
var ghostBoo = new GhostBooEvent();
RaiseLocalEvent(target, ghostBoo, true);
return ghostBoo.Handled;
}
}
}