Skip to content

Commit

Permalink
откат (AdventureTimeSS14#861)
Browse files Browse the repository at this point in the history
🆑 Inconnu
- tweak: Хедрева вновь ломает мш, а обычный революционер
деконвертируется
  • Loading branch information
Inconnu1337 authored Dec 1, 2024
2 parents 2a6af13 + 7e1bba7 commit c43939c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions Content.Server/Mindshield/MindShieldSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public void ImplantCheck(EntityUid uid, SubdermalImplantComponent comp, ref Impl
if (_tag.HasTag(ev.Implant, MindShieldTag) && ev.Implanted != null)
{
EnsureComp<MindShieldComponent>(ev.Implanted.Value);
//MindShieldRemovalCheck(ev.Implanted.Value, ev.Implant); // ADT TWEAK
MindShieldRemovalCheck(ev.Implanted.Value, ev.Implant);
}
}
/* ADT TWEAK START

/// <summary>
/// Checks if the implanted person was a Rev or Head Rev and remove role or destroy mindshield respectively.
/// </summary>
Expand All @@ -61,6 +61,4 @@ public void MindShieldRemovalCheck(EntityUid implanted, EntityUid implant)
_adminLogManager.Add(LogType.Mind, LogImpact.Medium, $"{ToPrettyString(implanted)} was deconverted due to being implanted with a Mindshield.");
}
}
*/// ADT TWEAK END
}
7 changes: 2 additions & 5 deletions Content.Shared/Revolutionary/SharedRevolutionarySystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Shared.IdentityManagement;
using Content.Shared.Mindshield.Components;
// using Content.Shared.Popups; // ADT TWEAK
using Content.Shared.Popups;
using Content.Shared.Revolutionary.Components;
using Content.Shared.Stunnable;
using Robust.Shared.GameStates;
Expand All @@ -12,7 +12,7 @@ namespace Content.Shared.Revolutionary;

public abstract class SharedRevolutionarySystem : EntitySystem
{
//[Dependency] private readonly SharedPopupSystem _popupSystem = default!; // ADT TWEAK: лишнее так как попап закомментирован
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
[Dependency] private readonly SharedStunSystem _sharedStun = default!;

public override void Initialize()
Expand All @@ -32,8 +32,6 @@ public override void Initialize()
/// </summary>
private void MindShieldImplanted(EntityUid uid, MindShieldComponent comp, MapInitEvent init)
{

/* - ADT TWEAK START
if (HasComp<HeadRevolutionaryComponent>(uid))
{
RemCompDeferred<MindShieldComponent>(uid);
Expand All @@ -48,7 +46,6 @@ private void MindShieldImplanted(EntityUid uid, MindShieldComponent comp, MapIni
_sharedStun.TryParalyze(uid, stunTime, true);
_popupSystem.PopupEntity(Loc.GetString("rev-break-control", ("name", name)), uid);
}
*/// - ADT TWEAK END

// who and why have done it THIS way
// ADT phantom start
Expand Down

0 comments on commit c43939c

Please sign in to comment.