Skip to content

Commit

Permalink
Fix stability overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
VDuchauffour committed May 27, 2024
1 parent fede9f2 commit 5954d26
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Assets/Python/utils/RFCUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1451,11 +1451,14 @@ def StabilityOverlayCiv(iChoice):
# apply the highlight
for plot in plots().all().land().entities():
if gc.getGame().isDebugMode() or plot.isRevealed(iHumanTeam, False):
szColor = colors[getProvinceStabilityLevel(iChoice, plot.getProvince())]
engine.fillAreaBorderPlotAlt(
if PROVINCES_MAP[plot.getY()][plot.getX()] == -1: # ocean and non-province tiles
szColor = "COLOR_GREY"
else:
szColor = colors[getProvinceStabilityLevel(iChoice, plot.getProvince())]
engine.addColoredPlotAlt(
plot.getX(),
plot.getY(),
int(PlotStyles.PLOT_STYLE_TARGET),
int(PlotStyles.PLOT_STYLE_BOX_FILL),
int(PlotLandscapeLayers.PLOT_LANDSCAPE_LAYER_WORLD_BUILDER),
szColor,
0.2,
Expand Down

0 comments on commit 5954d26

Please sign in to comment.