mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-23 13:28:43 +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
e2f37bb41d
commit
fe5d7708e0
@@ -371,7 +371,7 @@ export interface RenderSettings {
|
||||
color: number[]; // RGB, each 0–1
|
||||
alpha: number; // peak opacity (0–1)
|
||||
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: {
|
||||
gridFontSize: number;
|
||||
|
||||
@@ -323,7 +323,7 @@
|
||||
"color": [1.0, 0.12, 0.1],
|
||||
"alpha": 0.9,
|
||||
"pulseSpeed": 0.003,
|
||||
"strength": 0.25
|
||||
"strength": 0.35
|
||||
},
|
||||
"altView": {
|
||||
"gridFontSize": 24,
|
||||
|
||||
@@ -399,9 +399,9 @@ describe("applyGraphicsOverrides", () => {
|
||||
).toBe(0);
|
||||
});
|
||||
|
||||
test("smallPlayerGlow strength absent → keeps default of 0.25", () => {
|
||||
expect(gen({}).smallPlayerGlow.strength).toBe(0.25);
|
||||
expect(gen({ smallPlayerGlow: {} }).smallPlayerGlow.strength).toBe(0.25);
|
||||
test("smallPlayerGlow strength absent → keeps default of 0.35", () => {
|
||||
expect(gen({}).smallPlayerGlow.strength).toBe(0.35);
|
||||
expect(gen({ smallPlayerGlow: {} }).smallPlayerGlow.strength).toBe(0.35);
|
||||
});
|
||||
|
||||
test("smallPlayerGlow override leaves other glow fields at defaults", () => {
|
||||
|
||||
Reference in New Issue
Block a user