mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 23:22:08 +00:00
Inversion of how water color was being set as it moved away from land… (#269)
Inversion of the way water values on the light palette get set as the tile is further from land. Was previously resulting in the darkest water being the closest to land.  
This commit is contained in:
@@ -285,14 +285,12 @@ export const pastelTheme = new (class implements Theme {
|
||||
if (gm.isShoreline(tile) && gm.isWater(tile)) {
|
||||
return this.shorelineWater;
|
||||
}
|
||||
if (gm.magnitude(tile) < 10) {
|
||||
return colord({
|
||||
r: Math.max(w.r - 10 + mag, 0),
|
||||
g: Math.max(w.g - 10 + mag, 0),
|
||||
b: Math.max(w.b - 10 + mag, 0),
|
||||
});
|
||||
}
|
||||
return this.water;
|
||||
return colord({
|
||||
r: Math.max(w.r - 10 + (11 - Math.min(mag, 10)), 0),
|
||||
g: Math.max(w.g - 10 + (11 - Math.min(mag, 10)), 0),
|
||||
b: Math.max(w.b - 10 + (11 - Math.min(mag, 10)), 0),
|
||||
});
|
||||
|
||||
case TerrainType.Plains:
|
||||
return colord({
|
||||
r: 190,
|
||||
|
||||
Reference in New Issue
Block a user