Sector Map Entity Count Bugfix + Updated Readme

Quick fix to accurately display entity counts for visited sectors
Updated readme to rewrite the introduction and move the Discord link closer to the top
This commit is contained in:
Reinier Vens 2025-07-19 05:42:57 +01:00
commit 55b55beb46
4 changed files with 36 additions and 36 deletions

View file

@ -90,12 +90,12 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
Properties.AddProperty("Stars", () => starCount);
var stationCount = zone.PackedContents.Entities
.Count(entity => ((HullData) entity.Hull.Data.Value).HullType == HullType.Ship)
.Count(entity => ((HullData) entity.Hull.Data.Value).HullType == HullType.Station)
.ToString();
Properties.AddProperty("Stations", () => stationCount);
var turretCount = zone.PackedContents.Entities
.Count(entity => ((HullData) entity.Hull.Data.Value).HullType == HullType.Ship)
.Count(entity => ((HullData) entity.Hull.Data.Value).HullType == HullType.Turret)
.ToString();
Properties.AddProperty("Turrets", () => turretCount);