minor Derelict Cyborg code changes.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user