Skip to content

Commit

Permalink
[Fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
NameLunar committed Jan 7, 2025
1 parent 3b6d165 commit 53117a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Content.Server/ADT/Abilities/XenoQueen/XenoQueenSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public override void Initialize()
SubscribeLocalEvent<XenoQueenComponent, MapInitEvent>(OnMapInit);
SubscribeLocalEvent<XenoQueenComponent, ComponentStartup>(OnStartup);
SubscribeLocalEvent<XenoQueenComponent, ComponentShutdown>(OnShutdown);
SubscribeLocalEvent<XenoQueenComponent, InvisibleWallActionEvent>(OnCreateTurret);
SubscribeLocalEvent<XenoQueenComponent, SpawnWallActionEvent>(OnCreateTurret);
SubscribeLocalEvent<XenoQueenComponent, SpawnXenoQueenEvent>(OnWorldSpawn);
}

Expand Down Expand Up @@ -98,7 +98,7 @@ private void OnShutdown(EntityUid uid, XenoQueenComponent component, ComponentSh
_actionsSystem.RemoveAction(uid, component.ActionSpawnXenoRavager);
_actionsSystem.RemoveAction(uid, component.ActionSpawnXenoQueen);
}
private void OnCreateTurret(EntityUid uid, XenoQueenComponent component, InvisibleWallActionEvent args)
private void OnCreateTurret(EntityUid uid, XenoQueenComponent component, SpawnWallActionEvent args)
{
if (!component.XenoCreatTurretEnabled)
return;
Expand Down
7 changes: 7 additions & 0 deletions Content.Shared/ADT/Actions/SpawnWallActionEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Content.Shared.Actions;

namespace Content.Shared.ADT.Events;

public sealed partial class SpawnWallActionEvent : InstantActionEvent
{
}
2 changes: 1 addition & 1 deletion Resources/Prototypes/ADT/Actions/XenoQueen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
icon:
sprite: Objects/Weapons/Guns/Turrets/xenoturret.rsi
state: icon
event: !type:InvisibleWallActionEvent
event: !type:SpawnWallActionEvent
# Я не смог сделать отдельный ивент для спавнта турели. Он не видел прототип ивента.

- type: entity
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/xeno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
50: 0.7
# Start ADT: Xeno Buff
- type: StaminaDamageOnHit
damage: 60
damage: 45 # 60
# End ADT
- type: Fixtures
fixtures:
Expand Down

0 comments on commit 53117a4

Please sign in to comment.