Zone.Wormholes owns where wormholes are; the ratio moves to GameplaySettings
The renderer derived wormhole positions from GameSettings.WormholeDistanceRatio and the player's exit read them back from its instances. Zone.Wormholes (and WormholeTo) now derive them from GameplaySettings.WormholeDistanceRatio, which Settings.asset carries under GameplaySettings (0.75, unchanged); ZoneRenderer draws what the zone says. WormholesAreTheZones pins the positions, the exit gate included. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a5b7d459ef
commit
051bf201cd
7 changed files with 63 additions and 31 deletions
|
|
@ -831,7 +831,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
foreach (var zone in wormhole.Target.AdjacentZones)
|
||||
CurrentGalaxy.DiscoveredZones.Add(zone);
|
||||
SectorMap.QueueZoneReveal(wormhole.Target.AdjacentZones);
|
||||
ship.ExitWormhole(ZoneRenderer.WormholeInstances.Keys.First(w => w.Target == oldZone.GalaxyZone).Position,
|
||||
ship.ExitWormhole(Zone.WormholeTo(oldZone.GalaxyZone),
|
||||
Settings.GameplaySettings.WormholeExitVelocity * ItemManager.Random.NextFloat2Direction());
|
||||
CurrentEntity.Zone = Zone;
|
||||
SaveRun();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ public class GameSettings : ScriptableObject
|
|||
public string StartingHullName = "Longinus";
|
||||
public float HeatstrokePhasingFloor = 0;
|
||||
public float HeatstrokePhasingFrequency = 5;
|
||||
public float WormholeDistanceRatio;
|
||||
// The follow camera's distance from the hull's centre of mass, as a multiple of the hull's reach
|
||||
// (Contacts.Radius); 1.5 keeps the Longinus at about 30 m.
|
||||
public float FollowCameraDistancePerReach = 1.5f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue