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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue