From 6b41cc9b7593089ca53544eae7197c4f4720270a Mon Sep 17 00:00:00 2001 From: APuddle210 Date: Tue, 18 Mar 2025 15:25:28 -0400 Subject: [PATCH] =?UTF-8?q?Inversion=20of=20how=20water=20color=20was=20be?= =?UTF-8?q?ing=20set=20as=20it=20moved=20away=20from=20land=E2=80=A6=20(#2?= =?UTF-8?q?69)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. ![Before](https://github.com/user-attachments/assets/3b2d8e9a-0648-40ac-8725-c0bcbebf61ac) ![After](https://github.com/user-attachments/assets/6356758f-abbf-493b-a82b-652a9c642539) --- src/core/configuration/PastelTheme.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/core/configuration/PastelTheme.ts b/src/core/configuration/PastelTheme.ts index 2f3a43087..50c5278c4 100644 --- a/src/core/configuration/PastelTheme.ts +++ b/src/core/configuration/PastelTheme.ts @@ -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,