From bc85b354a0af415862c30c63ba8dcf26b5e57f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 17 Feb 2024 10:52:21 -0600 Subject: [PATCH] feat: new lighting --- src/app/tools/tankopedia/[id]/components/Lighting.tsx | 9 ++++++++- src/stores/tankopedia.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/Lighting.tsx b/src/app/tools/tankopedia/[id]/components/Lighting.tsx index 520c8d343..f6916a9f5 100644 --- a/src/app/tools/tankopedia/[id]/components/Lighting.tsx +++ b/src/app/tools/tankopedia/[id]/components/Lighting.tsx @@ -3,7 +3,14 @@ import { useModel } from '../../../../../hooks/useModel'; import { useDuel } from '../../../../../stores/duel'; import { useTankopediaPersistent } from '../../../../../stores/tankopedia'; -export const ENVIRONMENTS = ['warehouse', 'dawn', 'sunset'] as const; +export const ENVIRONMENTS = [ + 'lobby', + 'apartment', + 'warehouse', + 'dawn', + 'sunset', + 'night', +] as const; export function Lighting() { const protagonist = useDuel((state) => state.protagonist!); diff --git a/src/stores/tankopedia.ts b/src/stores/tankopedia.ts index e64d6bb87..da7e5067b 100644 --- a/src/stores/tankopedia.ts +++ b/src/stores/tankopedia.ts @@ -131,7 +131,7 @@ export const useTankopediaPersistent = create()( subscribeWithSelector(() => ({ model: { visual: { - environment: 'warehouse', + environment: ENVIRONMENTS[0], controlsEnabled: true, showGrid: true, greenPenetration: false,