Skip to content

Commit

Permalink
Обновление режима крушения (#547)
Browse files Browse the repository at this point in the history
* pinpointer code

* more time for tts speak

* rand commit

* tag system on unlocks

* oops

* commit-weh

* upd

* upd-shuttles-and-someother

* pinpointer

---------

Co-authored-by: Kirillcas <[email protected]>
  • Loading branch information
Rxup and Kirillcas authored Apr 6, 2024
1 parent ef2b00c commit a57092c
Show file tree
Hide file tree
Showing 30 changed files with 1,333 additions and 1,346 deletions.
8 changes: 8 additions & 0 deletions Content.Client/Backmen/HardPacifiedModeSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Content.Shared.Backmen;

namespace Content.Client.Backmen;

public sealed class HardPacifiedModeSystem : SharedHardPacifiedModeSystem
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Content.Server.Bible.Components;
using Content.Server.Popups;
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Psionics;
using Content.Shared.Backmen.Psionics.Events;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Prototypes;
Expand Down Expand Up @@ -63,6 +64,11 @@ private void OnShutdown(EntityUid uid, DispelPowerComponent component, Component

private void OnPowerUsed(DispelPowerActionEvent args)
{
if (HasComp<PsionicallyInvisibleComponent>(args.Performer))
{
_popupSystem.PopupCursor(Loc.GetString("cant-use-in-invisible"),args.Performer);
return;
}
if (HasComp<PsionicInsulationComponent>(args.Target))
return;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Server.Backmen.Psionics;
using Content.Shared.Actions;
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Psionics;
using Content.Shared.Backmen.Psionics.Events;
using Content.Shared.Backmen.Species.Shadowkin.Components;
using Content.Shared.Eye;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Blob;
using Content.Shared.Backmen.Blob.Components;
using Content.Shared.Backmen.Psionics;
using Content.Shared.Backmen.Psionics.Events;
using Content.Shared.Mind.Components;
using Content.Shared.Mindshield.Components;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using Content.Shared.StatusEffect;
using Content.Server.Stunnable;
using Content.Server.Beam;
using Content.Server.Popups;
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Psionics;
using Content.Shared.Backmen.Psionics.Events;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
Expand All @@ -12,7 +14,7 @@ namespace Content.Server.Backmen.Abilities.Psionics;

public sealed class NoosphericZapPowerSystem : EntitySystem
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly SharedActionsSystem _actions = default!;
[Dependency] private readonly SharedPsionicAbilitiesSystem _psionics = default!;
[Dependency] private readonly StunSystem _stunSystem = default!;
Expand Down Expand Up @@ -49,6 +51,11 @@ private void OnShutdown(EntityUid uid, NoosphericZapPowerComponent component, Co

private void OnPowerUsed(NoosphericZapPowerActionEvent args)
{
if (HasComp<PsionicallyInvisibleComponent>(args.Performer))
{
_popupSystem.PopupCursor(Loc.GetString("cant-use-in-invisible"),args.Performer);
return;
}
if (!HasComp<PotentialPsionicComponent>(args.Target))
return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Content.Shared.Stealth;
using Content.Shared.Stealth.Components;
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Psionics;
using Content.Shared.Backmen.Psionics.Events;
using Robust.Shared.Prototypes;
using Robust.Shared.Audio.Systems;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Content.Server.Atmos.EntitySystems;
using Content.Server.Popups;
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Psionics;
using Content.Shared.Backmen.Psionics.Events;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
Expand Down Expand Up @@ -46,6 +47,13 @@ private void OnShutdown(EntityUid uid, PyrokinesisPowerComponent component, Comp

private void OnPowerUsed(PyrokinesisPowerActionEvent args)
{
if (HasComp<PsionicallyInvisibleComponent>(args.Performer))
{
_popupSystem.PopupCursor(Loc.GetString("cant-use-in-invisible"),args.Performer);
return;
}
if (HasComp<PsionicInsulationComponent>(args.Target))
return;
if (!TryComp<FlammableComponent>(args.Target, out var flammableComponent))
return;

Expand Down
8 changes: 8 additions & 0 deletions Content.Server/Backmen/HardPacifiedModeSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Content.Shared.Backmen;

namespace Content.Server.Backmen;

public sealed class HardPacifiedModeSystem : SharedHardPacifiedModeSystem
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Server.Backmen.Eye;
using Content.Server.NPC.Systems;
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.Psionics;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.Eye;
using Content.Shared.Interaction.Events;
Expand Down Expand Up @@ -35,14 +36,6 @@ public override void Initialize()
// PVS Stuff
SubscribeLocalEvent<PsionicallyInvisibleComponent, EntInsertedIntoContainerMessage>(OnEntInserted);
SubscribeLocalEvent<PsionicallyInvisibleComponent, EntRemovedFromContainerMessage>(OnEntRemoved);

SubscribeLocalEvent<PsionicallyInvisibleComponent, AttackAttemptEvent>(OnAttackAttempt);
}

private void OnAttackAttempt(Entity<PsionicallyInvisibleComponent> ent, ref AttackAttemptEvent args)
{
if(HasComp<PacifiedComponent>(ent))
args.Cancel();
}

private void OnInit(EntityUid uid, PotentialPsionicComponent component, ComponentInit args)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Shared.Backmen.Psionics;
using Content.Shared.Stealth;
using Content.Shared.Stealth.Components;
using Robust.Shared.Physics.Events;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Content.Server.Backmen.Shipwrecked.Components;

[RegisterComponent]
public sealed partial class ShipwreckPinPointerComponent : Component
{
[ViewVariables(VVAccess.ReadOnly)]
public ShipwreckedRuleComponent? Rule;
}

This file was deleted.

Loading

0 comments on commit a57092c

Please sign in to comment.