[ValidatePrototypeId<DatasetPrototype>]
private const string Foods = "IonStormFoods";
+ /// <summary>
//Randomly alters the laws of an individual silicon.
- public void IonStormTarget(Entity<SiliconLawBoundComponent, IonStormTargetComponent> ent, TransformComponent xform, EntityUid? chosenStation, bool adminlog = true)
+ /// </summary>
+ public void IonStormTarget(Entity<SiliconLawBoundComponent, IonStormTargetComponent> ent, bool adminlog = true)
{
var lawBound = ent.Comp1;
var target = ent.Comp2;
{
if (!TryComp<SiliconLawBoundComponent>(ent.Owner, out var lawBound))
return;
- if (!TryComp<TransformComponent>(ent.Owner, out var xform))
- return;
if (!TryComp<IonStormTargetComponent>(ent.Owner, out var target))
return;
for (int currentIonStorm = 0; currentIonStorm < ent.Comp.IonStormAmount; currentIonStorm++)
{
- _ionStorm.IonStormTarget((ent.Owner, lawBound, target), xform, null, false);
+ _ionStorm.IonStormTarget((ent.Owner, lawBound, target), false);
}
var laws = _siliconLaw.GetLaws(ent.Owner, lawBound);
if (CompOrNull<StationMemberComponent>(xform.GridUid)?.Station != chosenStation)
continue;
- _ionStorm.IonStormTarget((ent, lawBound, target), xform, chosenStation);
+ _ionStorm.IonStormTarget((ent, lawBound, target));
}
}
}
- type: entity
id: PlayerBorgDerelictGhostRole
parent: PlayerBorgDerelict
- suffix: Battery, Ghost role
+ suffix: Ghost role
components:
- type: GhostRole
name: ghost-role-information-derelict-cyborg-name