Твики (#491)
* Economy additions * Tweak implant cooldowns * Cult stuff * Random appearance aspect nuke ops fix * Auto shuttle enable on round end * Holy water threshold
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
using System.Linq;
|
||||
using Content.Server.Access.Systems;
|
||||
using Content.Server.Humanoid;
|
||||
using Content.Server.IdentityManagement;
|
||||
using Content.Server.Mind.Components;
|
||||
using Content.Server.PDA;
|
||||
using Content.Server.Roles;
|
||||
using Content.Shared.Access.Components;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.PDA;
|
||||
@@ -31,6 +34,10 @@ public sealed class RandomHumanSystem : EntitySystem
|
||||
|
||||
_humanoid.LoadProfile(uid, newProfile);
|
||||
|
||||
if (TryComp(uid, out MindContainerComponent? mindContainer) && mindContainer.HasMind &&
|
||||
mindContainer.Mind.Roles.OfType<NukeopsRole>().Any())
|
||||
return;
|
||||
|
||||
_metaData.SetEntityName(uid, newProfile.Name);
|
||||
|
||||
if (!_inventorySystem.TryGetSlotEntity(uid, "id", out var idUid))
|
||||
|
||||
Reference in New Issue
Block a user