Parroting Parrots part 1: Help maints! SQUAWK! Maints! (#38243)
* parrots have ears. add poly * high tech parrot functionality * adjust times * add accent to radio message * don't spam everything all at once probably * learn about the existence of prob(float) * actually use Prob(float) correctly * newline * add pet spawner for poly * move chance to talk on radio to component * missing comment * minor edits and doc additions * the reviewerrrrrrr * parrot can't learn when crit or dead * increase default memory * rename poly to polly * crude way to ignore whispers. chatcode please * This is Polly. It is set to broadcast over the engineering frequency * add missing initialize * add displacement map for parrot ears * review comments - Errant * minor things * large rework * fix attempting to talk when entity has no channels * use list of active radios again to track channels * fix bad return, some comments * fix long learn cooldown * minor adjustments * use FromMinutes * the voices told me to make these changes * remove default reassignment * Review changes * remove polly's accent * decouple radio stuff from parrotsystem * minor stuff * split vocalization and parroting * minor review work * re-add missing check * add admin verb for clearing parrot messages * minor action icon update * oops * increase icon number text size * Admin erase parrot messages associated with players * part 1 beck review * add whitelist and blacklist for parrots * Downgrade missing component error to warning * Add comment * add some missing comments * Remove active radio entity tracking, use all inventory slots * Minor changes * small review stuff * review radio stuff * swap ears displacement to invisible death displacement * remove syncsprite * vscode why do yo have to hurt my feelings * review changes * use checkboth
This commit is contained in:
@@ -383,8 +383,13 @@ public sealed class AdminSystem : EntitySystem
|
||||
{
|
||||
_chat.DeleteMessagesBy(uid);
|
||||
|
||||
var eraseEvent = new EraseEvent(uid);
|
||||
|
||||
if (!_minds.TryGetMind(uid, out var mindId, out var mind) || mind.OwnedEntity == null || TerminatingOrDeleted(mind.OwnedEntity.Value))
|
||||
{
|
||||
RaiseLocalEvent(ref eraseEvent);
|
||||
return;
|
||||
}
|
||||
|
||||
var entity = mind.OwnedEntity.Value;
|
||||
|
||||
@@ -444,6 +449,8 @@ public sealed class AdminSystem : EntitySystem
|
||||
|
||||
if (_playerManager.TryGetSessionById(uid, out var session))
|
||||
_gameTicker.SpawnObserver(session);
|
||||
|
||||
RaiseLocalEvent(ref eraseEvent);
|
||||
}
|
||||
|
||||
private void OnSessionPlayTimeUpdated(ICommonSession session)
|
||||
@@ -451,3 +458,10 @@ public sealed class AdminSystem : EntitySystem
|
||||
UpdatePlayerList(session);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event fired after a player is erased by an admin
|
||||
/// </summary>
|
||||
/// <param name="PlayerNetUserId">NetUserId of the player that was the target of the Erase</param>
|
||||
[ByRefEvent]
|
||||
public record struct EraseEvent(NetUserId PlayerNetUserId);
|
||||
|
||||
Reference in New Issue
Block a user