Ice bow artifact (#1200)

* pvs

* fix tradepost

* ice bow artifact
This commit is contained in:
Ed
2025-04-19 17:24:57 +03:00
committed by GitHub
parent 000a064140
commit f787bb5ea4
23 changed files with 103 additions and 36 deletions

View File

@@ -2,6 +2,7 @@ using System.Linq;
using Content.Shared._CP14.UniqueLoot;
using Content.Shared.GameTicking;
using Content.Shared.Tag;
using Robust.Client.GameObjects;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
@@ -11,6 +12,7 @@ public sealed partial class CP14UniqueLootSystem : EntitySystem
{
[Dependency] private readonly IPrototypeManager _proto = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly SharedTransformSystem _transform = default!;
private readonly Dictionary<CP14UniqueLootPrototype, int> _uniqueLootCount = new();
@@ -37,7 +39,8 @@ public sealed partial class CP14UniqueLootSystem : EntitySystem
var coords = Transform(ent).Coordinates;
EntityManager.SpawnEntity(loot, coords);
var spawned = Spawn(loot, coords);
_transform.SetWorldRotation(spawned, _transform.GetWorldRotation(ent));
}