Aurora 4x

C# Aurora => C# Mechanics => Topic started by: Steve Walmsley on September 01, 2022, 08:24:09 AM

Title: v2.1.1 Changes List
Post by: Steve Walmsley on September 01, 2022, 08:24:09 AM
Changes List for 2.1.1

This post includes bug fixes or minor changes. Any more significant changes will have their own post. (DB) indicates a database-related fix.

Fixes
Changes
Title: Re: v2.1.1 Changes List
Post by: Steve Walmsley on September 04, 2022, 12:22:32 PM
Civilian Repairs

Civilian ships will instantly repair themselves if they are in orbit of a population with shipyards. NPRs do repairs in the same way as players but they have shipyards to do that. As civilian 'shipyards' are abstracted, I didn't want them to require player shipyards or have to add actual civilian shipyards and this is a rare situation anyway, I decided to abstract it.

Civilian ships in deep space with no movement capability will be abandoned by the shipping line. In this case, they will be transferred to the parent player race, which can choose to retrieve and repair for its own use, or just abandon ship.
Title: Re: v2.1.1 Changes List
Post by: Steve Walmsley on September 04, 2022, 05:00:41 PM
Avoidance of Closed Universe

I've added a check to jump point exploration to avoid a situation where the last possible exit from known space leads to an existing system.

Normally, when jump point exploration takes place, there is a small chance to link to an existing system. However, for v2.1.1, this check will be skipped if the jump point being explored is the only one in known space that does not have an existing link. This check includes jump points that the race hasn't yet discovered via survey.

Random stars games can be setup with a small number of systems and/or settings that lead to a lot of loops. Therefore, if this situation occurs in a random stars game, the code will make 20 attempts to find a new system before accepting a link to an existing system.

Any new system generated with the last un-linked jump point in known space will have a minimum of two jump points.

These changes should ensure that at least one avenue of exploration will always exist.