Exit gate: the exit zone shows a gate that ends the run as won once RunGoal says the boss is dead
ZoneRenderer adds an exit wormhole at RunGoal.ExitGatePosition; Interact asks RunGoal.ExitOpen and either calls Win or names the boss that seals it. Die and Win share one EndRun. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
db4617d832
commit
9883d08dcd
2 changed files with 38 additions and 2 deletions
|
|
@ -233,6 +233,14 @@ public class ZoneRenderer : MonoBehaviour
|
|||
Position = dir * zone.Pack.Radius * Settings.WormholeDistanceRatio
|
||||
});
|
||||
}
|
||||
|
||||
// The run's exit gate is presentation only: whether it opens is RunGoal.ExitOpen, read when it is used.
|
||||
if (zone.GalaxyZone == zone.Galaxy.Exit)
|
||||
AddWormhole(new Wormhole
|
||||
{
|
||||
Exit = true,
|
||||
Position = RunGoal.ExitGatePosition(zone, Settings.WormholeDistanceRatio)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue