mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-19 02:04:39 +00:00
chore(glow): raise default small-player glow strength to 35%
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
4544e18ce6
commit
eee7d793f8
@@ -389,7 +389,7 @@ export interface RenderSettings {
|
|||||||
color: number[]; // RGB, each 0–1
|
color: number[]; // RGB, each 0–1
|
||||||
alpha: number; // peak opacity (0–1)
|
alpha: number; // peak opacity (0–1)
|
||||||
pulseSpeed: number; // breath animation speed
|
pulseSpeed: number; // breath animation speed
|
||||||
strength: number; // opacity fade: 0 = off, 1 = full brightness (default 0.25)
|
strength: number; // opacity fade: 0 = off, 1 = full brightness (default 0.35)
|
||||||
};
|
};
|
||||||
altView: {
|
altView: {
|
||||||
gridFontSize: number;
|
gridFontSize: number;
|
||||||
|
|||||||
@@ -336,7 +336,7 @@
|
|||||||
"color": [1.0, 0.12, 0.1],
|
"color": [1.0, 0.12, 0.1],
|
||||||
"alpha": 0.9,
|
"alpha": 0.9,
|
||||||
"pulseSpeed": 0.003,
|
"pulseSpeed": 0.003,
|
||||||
"strength": 0.25
|
"strength": 0.35
|
||||||
},
|
},
|
||||||
"altView": {
|
"altView": {
|
||||||
"gridFontSize": 24,
|
"gridFontSize": 24,
|
||||||
|
|||||||
@@ -399,9 +399,9 @@ describe("applyGraphicsOverrides", () => {
|
|||||||
).toBe(0);
|
).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("smallPlayerGlow strength absent → keeps default of 0.25", () => {
|
test("smallPlayerGlow strength absent → keeps default of 0.35", () => {
|
||||||
expect(gen({}).smallPlayerGlow.strength).toBe(0.25);
|
expect(gen({}).smallPlayerGlow.strength).toBe(0.35);
|
||||||
expect(gen({ smallPlayerGlow: {} }).smallPlayerGlow.strength).toBe(0.25);
|
expect(gen({ smallPlayerGlow: {} }).smallPlayerGlow.strength).toBe(0.35);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("smallPlayerGlow override leaves other glow fields at defaults", () => {
|
test("smallPlayerGlow override leaves other glow fields at defaults", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user