Bigger Sectors & Various Bugfixes
Minimap works again Stardust density is now proportional to gravity depth Generated zones are double the size and better distributed Orbital hierarchy actually working now (!) Station start position actually orbits something now Max gravity strength remapped to infinity (zone boundary is properly impassable now)
This commit is contained in:
parent
1df7f1bc67
commit
9e88fcda95
21 changed files with 245 additions and 214 deletions
|
|
@ -203,6 +203,9 @@ public abstract class ItemData : DatabaseEntry, INamedEntry
|
|||
[InspectableField, JsonProperty("specificHeat"), Key(5)]
|
||||
public float SpecificHeat;
|
||||
|
||||
// [InspectableField, JsonProperty("conductivity"), Key(6)]
|
||||
// public float Conductivity;
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
get => Name;
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class Zone
|
|||
return new ZonePack
|
||||
{
|
||||
Data = Data,
|
||||
Entities = Entities.ToList(),
|
||||
//Entities = Entities.ToList(),
|
||||
Orbits = Orbits.Values.Select(o=>o.Data).ToList(),
|
||||
Planets = Planets.Values.ToList()
|
||||
};
|
||||
|
|
@ -126,8 +126,8 @@ public class Zone
|
|||
}
|
||||
}
|
||||
|
||||
Orbits[orbitID].Position = GetOrbitPosition(orbit.Data.Parent) + pos;
|
||||
_updatedOrbits.Add(orbitID);
|
||||
return GetOrbitPosition(orbit.Data.Parent) + pos;
|
||||
}
|
||||
|
||||
return Orbits[orbitID].Position;
|
||||
|
|
@ -219,6 +219,7 @@ public class Zone
|
|||
|
||||
var orbit = new OrbitData
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
Distance = new ReactiveProperty<float>(distance),
|
||||
Parent = parent,
|
||||
Phase = storedPhase
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ public abstract class BodyData : DatabaseEntry, INamedEntry
|
|||
public ReactiveProperty<float> GravityDepthMultiplier = new ReactiveProperty<float>(1);
|
||||
|
||||
[JsonProperty("depthExp")] [Key(8)]
|
||||
public ReactiveProperty<float> GravityDepthExponent = new ReactiveProperty<float>(8);
|
||||
public ReactiveProperty<float> GravityDepthExponent = new ReactiveProperty<float>(16);
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
|
|
|
|||
|
|
@ -262,8 +262,8 @@ public class ZoneGenerator
|
|||
root.ExpandSolar(
|
||||
ref random,
|
||||
count: random.NextInt(5, 15),
|
||||
massMulMin: 0.5f,
|
||||
massMulMax: 2.0f,
|
||||
massMulMin: 0.75f,
|
||||
massMulMax: 2.5f,
|
||||
distMulMin: 1.1f,
|
||||
distMulMax: 1.25f,
|
||||
jupiterJump: random.NextFloat() * random.NextFloat() * 10 + 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue