- fix: your devstvennost

* - fix: AntiTroopYablyaSystem

* - add: command for penis

* - fix: Я вам починил ширинку, не благодарите
This commit is contained in:
Cinkafox
2024-03-20 09:56:22 +03:00
committed by GitHub
parent 69ef075eb6
commit 5c8304eb5c
3 changed files with 30 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ using Content.Shared.Fluids;
using Content.Shared.Humanoid;
using Content.Shared.Interaction.Events;
using Content.Shared.Mind;
using Content.Shared.Mobs.Systems;
using Content.Shared.Movement.Events;
using Content.Shared.Random.Helpers;
using Content.Shared.Verbs;
@@ -44,6 +45,7 @@ public sealed class InteractionPanelSystem : EntitySystem
[Dependency] private readonly IChatManager _chatManager = default!;
[Dependency] private readonly DoAfterSystem _doAfterSystem = default!;
[Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!;
[Dependency] private readonly MobStateSystem _mobStateSystem = default!;
public override void Initialize()
{
@@ -86,6 +88,8 @@ public sealed class InteractionPanelSystem : EntitySystem
private void OnVerb(EntityUid uid, InteractionPanelComponent component, GetVerbsEvent<Verb> args)
{
if (!_mobStateSystem.IsAlive(args.User) || !_mobStateSystem.IsAlive(uid))
return;
args.Verbs.Add(new Verb()
{
Text = Loc.GetString("interaction-open"),
@@ -100,6 +104,9 @@ public sealed class InteractionPanelSystem : EntitySystem
|| !_playerManager.TryGetSessionByEntity(panelOpener, out var session))
return;
if (!_mobStateSystem.IsAlive(user) || !_mobStateSystem.IsAlive(target))
return;
_eui.OpenEui(new InteractionPanelEui(
new Entity<InteractionPanelComponent>(user,user.Comp),
new Entity<InteractionPanelComponent>(target,target.Comp)),
@@ -119,6 +126,9 @@ public sealed class InteractionPanelSystem : EntitySystem
|| !_prototypeManager.TryIndex(protoId, out var prototype))
return;
if (!_mobStateSystem.IsAlive(user) || !_mobStateSystem.IsAlive(target))
return;
if(!Check(user!,target!,prototype, out var check))
{
if(_playerManager.TryGetSessionByEntity(user,out var session) || session is null)