Dynamic anomaly scanner texture (#37585)
This commit is contained in:
@@ -36,5 +36,13 @@ public sealed class SecretDataAnomalySystem : EntitySystem
|
||||
component.Secret.Add(_random.PickAndTake(_deita));
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsSecret(EntityUid uid, AnomalySecretData item, SecretDataAnomalyComponent? component = null)
|
||||
{
|
||||
if (!Resolve(uid, ref component, logMissing: false))
|
||||
return false;
|
||||
|
||||
return component.Secret.Contains(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user