minor Derelict Cyborg code changes.

This commit is contained in:
The Canned One
2024-10-04 08:31:55 +02:00
parent d863e3c5ca
commit 581a4d14fc
4 changed files with 6 additions and 6 deletions

View File

@@ -59,8 +59,10 @@ public sealed class IonStormSystem : EntitySystem
[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;

View File

@@ -24,14 +24,12 @@ public sealed class StartIonStormedSystem : EntitySystem
{
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);

View File

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

View File

@@ -540,7 +540,7 @@
- type: entity
id: PlayerBorgDerelictGhostRole
parent: PlayerBorgDerelict
suffix: Battery, Ghost role
suffix: Ghost role
components:
- type: GhostRole
name: ghost-role-information-derelict-cyborg-name