mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
Radiation Outburst Fix (#438)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Content.Server.StationEvents.Components;
|
||||
using Content.Server.Construction.Components;
|
||||
using Robust.Shared.Random;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Containers;
|
||||
@@ -8,7 +7,6 @@ using Content.Shared.GameTicking.Components;
|
||||
using Content.Shared.Item;
|
||||
using Content.Shared.Mobs.Components;
|
||||
using Content.Shared.Tag;
|
||||
using Content.Shared.Construction.Components;
|
||||
using Content.Shared.Stacks;
|
||||
using Content.Shared.Ghost;
|
||||
|
||||
@@ -23,10 +21,6 @@ public sealed partial class RadiationOutburstRuleSystem : StationEventSystem<Rad
|
||||
private EntityQuery<MobStateComponent> _mobStateQuery;
|
||||
private EntityQuery<GhostComponent> _ghostQuery;
|
||||
private static readonly ProtoId<TagPrototype> HighRiskItemTag = "HighRiskItem";
|
||||
private static readonly ProtoId<TagPrototype> OreTag = "Ore";
|
||||
private static readonly ProtoId<TagPrototype> ConstructionMaterialTag = "ConstructionMaterial";
|
||||
private static readonly ProtoId<TagPrototype> RawMaterialTag = "RawMaterial";
|
||||
private static readonly ProtoId<TagPrototype> MaterialsThrophyTag = "MaterialsThrophy";
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -58,8 +52,8 @@ public sealed partial class RadiationOutburstRuleSystem : StationEventSystem<Rad
|
||||
if (_tagSystem.HasTag(targetUid, HighRiskItemTag))
|
||||
continue;
|
||||
|
||||
//анти куча материалов чек
|
||||
if (_tagSystem.HasTag(targetUid, OreTag) || _tagSystem.HasTag(targetUid, ConstructionMaterialTag) || _tagSystem.HasTag(targetUid, RawMaterialTag) || _tagSystem.HasTag(targetUid, MaterialsThrophyTag))
|
||||
// анти стаки
|
||||
if (HasComp<StackComponent>(targetUid))
|
||||
continue;
|
||||
|
||||
// анти педали айтем
|
||||
@@ -101,7 +95,6 @@ public sealed partial class RadiationOutburstRuleSystem : StationEventSystem<Rad
|
||||
private void SetRadiation(EntityUid target, float rads)
|
||||
{
|
||||
var radiationComp = EnsureComp<RadiationSourceComponent>(target);
|
||||
// radiationComp.Intensity += rads; пока легенько
|
||||
Dirty(target, radiationComp);
|
||||
|
||||
Log.Debug($"RadiationOutburst: {target} теперь излучает +{rads} (всего: {radiationComp.Intensity})");
|
||||
|
||||
Reference in New Issue
Block a user