Changes IonStorm related code with no gameplay changes.

This commit is contained in:
The Canned One
2024-10-03 11:34:24 +02:00
parent 08de5aeae1
commit 963009a440
3 changed files with 5 additions and 3 deletions

View File

@@ -60,8 +60,10 @@ public sealed class IonStormSystem : EntitySystem
private const string Foods = "IonStormFoods";
//Randomly alters the laws of an individual silicon.
public void IonStormTarget(EntityUid ent, SiliconLawBoundComponent lawBound, TransformComponent xform, IonStormTargetComponent target, EntityUid? chosenStation, bool adminlog = true)
public void IonStormTarget(Entity<SiliconLawBoundComponent, IonStormTargetComponent> ent, TransformComponent xform, EntityUid? chosenStation, bool adminlog = true)
{
var lawBound = ent.Comp1;
var target = ent.Comp2;
if (!_robustRandom.Prob(target.Chance))
return;

View File

@@ -31,7 +31,7 @@ public sealed class StartIonStormedSystem : EntitySystem
for (int currentIonStorm = 0; currentIonStorm < ent.Comp.IonStormAmount; currentIonStorm++)
{
_ionStorm.IonStormTarget(ent.Owner, lawBound, xform, target, null, false);
_ionStorm.IonStormTarget((ent.Owner, lawBound, target), xform, null, false);
}
var laws = _siliconLaw.GetLaws(ent.Owner, lawBound);

View File

@@ -24,7 +24,7 @@ public sealed class IonStormRule : StationEventSystem<IonStormRuleComponent>
if (CompOrNull<StationMemberComponent>(xform.GridUid)?.Station != chosenStation)
continue;
_ionStorm.IonStormTarget(ent, lawBound, xform, target, chosenStation);
_ionStorm.IonStormTarget((ent, lawBound, target), xform, chosenStation);
}
}
}