Delete the aether drive: behaviour, union 12, hardpoint type, aggregates, settings, presenters, prefab
AetherDriveData and AetherDrive, Union(12) (now a retired-do-not-reuse comment, as 26 is), HardpointType.AetherDrive (last member, nothing shifts), Ship's drive sets, aggregates and Axis write, the five request-field rows, GameplaySettings Aether multipliers, ShipInstance's drive particles, SchematicDisplay's RPM display and AetherDriveUi, the undock refusal's drive clause, the drive prefab and material, and AetherDb's drive roles and brownout row. The design is kept at parked/aether-drive. Adds EveryShippedShipHullHasATopSpeed. ARPG.unity still holds stale serialized references to the removed SchematicDisplay fields and the RPM Display object; the next commit removes them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4656857420
commit
2cfdc72853
21 changed files with 36 additions and 5234 deletions
|
|
@ -18,16 +18,7 @@ public class ShipInstance : EntityInstance
|
|||
public int MaxParticleCount;
|
||||
}
|
||||
|
||||
private class AetherDriveInstance
|
||||
{
|
||||
public AetherDrive Drive;
|
||||
public ParticleSystem Particles;
|
||||
public float BaseEmission;
|
||||
public float BaseForce;
|
||||
}
|
||||
|
||||
private ThrusterInstance[] _thrusters;
|
||||
private AetherDriveInstance _aetherDrive;
|
||||
|
||||
public Ship Ship { get; private set; }
|
||||
|
||||
|
|
@ -47,20 +38,6 @@ public class ShipInstance : EntityInstance
|
|||
return;
|
||||
}
|
||||
Ship = ship;
|
||||
var drive = ship.GetBehavior<AetherDrive>();
|
||||
if (drive != null)
|
||||
{
|
||||
var particles = Instantiate(EngineAssets.Load<ParticleSystem>(drive.DriveData.Particles), transform, false);
|
||||
var main = particles.main;
|
||||
main.customSimulationSpace = LocalSpace;
|
||||
_aetherDrive = new AetherDriveInstance
|
||||
{
|
||||
Drive = drive,
|
||||
BaseEmission = particles.emission.rateOverTimeMultiplier,
|
||||
Particles = particles,
|
||||
BaseForce = particles.forceOverLifetime.z.curveMultiplier
|
||||
};
|
||||
}
|
||||
_thrusters = ship.GetBehaviors<Thruster>().Select(thruster =>
|
||||
{
|
||||
var effectData = (ThrusterData) thruster.Data;
|
||||
|
|
@ -115,19 +92,6 @@ public class ShipInstance : EntityInstance
|
|||
TractorBeam.Power = Entity.TractorPower;
|
||||
TractorBeam.Direction = Entity.Aim.ToUnity();
|
||||
|
||||
if (_aetherDrive != null)
|
||||
{
|
||||
var thrust = length(_aetherDrive.Drive.ThrustDirection);
|
||||
var forceOverLifetime = _aetherDrive.Particles.forceOverLifetime;
|
||||
forceOverLifetime.xMultiplier = _aetherDrive.Drive.ThrustDirection.x * _aetherDrive.BaseForce;
|
||||
forceOverLifetime.zMultiplier = _aetherDrive.Drive.ThrustDirection.y * _aetherDrive.BaseForce;
|
||||
var emissionModule = _aetherDrive.Particles.emission;
|
||||
// Cut 8 (operator ask 2026-09-19): intent (thrust) times condition -- presentation reads the
|
||||
// simulation's own ratio rather than recomputing any part of it. AetherDrive.Condition is the
|
||||
// equivalent of Thruster.Condition below (Torque in place of Thrust).
|
||||
emissionModule.rateOverTimeMultiplier = _aetherDrive.BaseEmission * thrust * _aetherDrive.Drive.Condition;
|
||||
}
|
||||
|
||||
foreach (var thrusterInstance in _thrusters)
|
||||
{
|
||||
var emissionModule = thrusterInstance.System.emission;
|
||||
|
|
|
|||
Loading…
Reference in a new issue