Skip to content

Commit

Permalink
Mark Earth and Luna as geo-surveyed on the default start
Browse files Browse the repository at this point in the history
  • Loading branch information
behindcurtain3 committed Mar 26, 2024
1 parent e1681de commit 42831f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Pulsar4X/GameEngine/Engine/Factories/DefaultStartFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,14 @@ public static Entity DefaultHumans(Game game, string name)
//sol.ManagerSubpulses.Init(sol);
Entity solStar = solSys.GetAllEntitiesWithDataBlob<StarInfoDB>().First();
Entity earth = NameLookup.GetFirstEntityWithName(solSys, "Earth"); //should be fourth entity created
Entity luna = NameLookup.GetFirstEntityWithName(solSys, "Luna");
//Entity factionEntity = FactionFactory.CreatePlayerFaction(game, owner, name);
Entity factionEntity = FactionFactory.CreateFaction(game, name);
FactionDataStore factionDataStore = factionEntity.GetDataBlob<FactionInfoDB>().Data;
FactionInfoDB factionInfoDB = factionEntity.GetDataBlob<FactionInfoDB>();
FactionDataStore factionDataStore = factionInfoDB.Data;

earth.GetDataBlob<GeoSurveyableDB>().GeoSurveyStatus[factionEntity.Id] = 0;
luna.GetDataBlob<GeoSurveyableDB>().GeoSurveyStatus[factionEntity.Id] = 0;

Entity targetFaction = FactionFactory.CreateFaction(game, "OpFor");
FactionDataStore opForDataStore = targetFaction.GetDataBlob<FactionInfoDB>().Data;
Expand Down

0 comments on commit 42831f4

Please sign in to comment.