if (!_minds.TryGetSession(targetMindComp.Mind, out var session))
return;
- _thief.MakeThief(session);
+ _thief.MakeThief(session, false); //Midround add pacific is bad
},
Impact = LogImpact.High,
Message = Loc.GetString("admin-verb-make-thief"),
[RegisterComponent, Access(typeof(ThiefRuleSystem))]
public sealed partial class ThiefRuleComponent : Component
{
+ /// <summary>
+ /// Add a Pacified comp to thieves
+ /// </summary>
+ public bool PacifistThieves = true;
+
/// <summary>
/// A chance for this mode to be added to the game.
/// </summary>
using Content.Shared.Humanoid;
using Content.Server.Antag;
using Robust.Server.Audio;
+using Content.Shared.CombatMode.Pacification;
namespace Content.Server.GameTicking.Rules;
foreach(var thief in selectedThieves)
{
- MakeThief(thief);
+ MakeThief(thief, component.PacifistThieves);
}
}
- public bool MakeThief(ICommonSession thief)
+ public bool MakeThief(ICommonSession thief, bool AddPacified)
{
var thiefRule = EntityQuery<ThiefRuleComponent>().FirstOrDefault();
if (thiefRule == null)
PrototypeId = thiefRule.ThiefPrototypeId
});
+ //Add Pacified
+ if (AddPacified)
+ EnsureComp<PacifiedComponent>(mind.OwnedEntity.Value);
+
// Notificate player about new role assignment
if (_mindSystem.TryGetSession(mindId, out var session))
{