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;
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);
if (CompOrNull<StationMemberComponent>(xform.GridUid)?.Station != chosenStation)
continue;
- _ionStorm.IonStormTarget(ent, lawBound, xform, target, chosenStation);
+ _ionStorm.IonStormTarget((ent, lawBound, target), xform, chosenStation);
}
}
}