Skip to content

Commit

Permalink
Update src/ to 0.97a-RC11
Browse files Browse the repository at this point in the history
  • Loading branch information
jaghaimo committed Feb 23, 2024
1 parent e6ada24 commit f1f911e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected void createTooltipAfterDescription(TooltipMakerAPI tooltip, boolean ex
}

public static void addConditions(TooltipMakerAPI tooltip, MarketAPI market, float opad) {
boolean madeDeal = LuddicChurchHostileActivityFactor.isMadeDeal();
boolean madeDeal = LuddicChurchHostileActivityFactor.isMadeDeal() && market.isPlayerOwned();
boolean freePort = market.isFreePort();
freePort = false;
boolean habitable = market.hasCondition(Conditions.HABITABLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected void setup() {
factors.clear();
stages.clear();

setMaxProgress(600);
setMaxProgress(MAX_PROGRESS);
addStage(Stage.START, 0);
addStage(Stage.MINOR_EVENT, 300, StageIconSize.MEDIUM);
addStage(Stage.HA_EVENT, 600, true, StageIconSize.LARGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,11 @@ public CampaignFleetAPI createFleet(StarSystemAPI system, Random random) {
m.triggerSetPirateFleet();
m.triggerMakeHostile();
m.triggerMakeNonHostileToFaction(Factions.DIKTAT);
m.triggerMakeHostileToAllTradeFleets();
m.triggerMakeNonHostileToFaction(Factions.PIRATES);
m.triggerMakeLowRepImpact();
m.triggerFleetAllowLongPursuit();
m.triggerMakeHostileToAllTradeFleets();
m.triggerMakeEveryoneJoinBattleAgainst();

m.triggerSetFleetFlag(RAIDER_FLEET);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,10 @@ public float gerSensorArrayBonusFor(MarketAPI market, float range) {
}

float bonus = Math.min(countDomain, MAX_SENSOR_ARRAYS) * RANGE_PER_DOMAIN_SENSOR_ARRAY;
bonus += Math.min(Math.max(0, countMakeshift - countDomain), MAX_SENSOR_ARRAYS) * RANGE_PER_MAKESHIFT_SENSOR_ARRAY;
float useMakeshift = Math.min(MAX_SENSOR_ARRAYS - countDomain, countMakeshift);
if (useMakeshift < 0) useMakeshift = 0;
bonus += useMakeshift * RANGE_PER_MAKESHIFT_SENSOR_ARRAY;
//bonus += Math.min(Math.max(0, countMakeshift - countDomain), MAX_SENSOR_ARRAYS) * RANGE_PER_MAKESHIFT_SENSOR_ARRAY;

return bonus;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ protected void addLOCRMinersPlanet(ThemeGenContext context) {
if (curr.getMarket().hasCondition(Conditions.WATER_SURFACE)) continue; // don't want to write around this.
if (curr.isGasGiant()) continue;
if (!( curr.getMarket().hasCondition(Conditions.VOLATILES_PLENTIFUL) ||
curr.getMarket().hasCondition(Conditions.ORGANICS_ABUNDANT) ||
curr.getMarket().hasCondition(Conditions.ORGANICS_PLENTIFUL) ||
curr.getMarket().hasCondition(Conditions.RARE_ORE_ULTRARICH) ) ) continue;
// curr.getMarket().hasCondition(Conditions.ORE_ULTRARICH) ) ) continue;

Expand Down

0 comments on commit f1f911e

Please sign in to comment.