feat: offline gains — courbe inversée 2h, cap 25%, écran résumé
offlineEfficiency() : 100% (0-15min) → 25% (1h) → 0% (2h). computeOfflineGains() intègre la courbe par tranches de 1min. GameState.lastOnline ajouté, store hydrate avec offline report. OfflineReport.tsx affiché au retour si absence > 60s. 13 nouveaux tests (66 total, tous passent).
This commit is contained in:
@@ -5,6 +5,7 @@ import Navbar from "./components/navbar";
|
||||
import Footer from "./components/footer";
|
||||
import { GameTick } from "./components/GameTick";
|
||||
import { GameSync } from "./components/GameSync";
|
||||
import { OfflineReport } from "./components/OfflineReport";
|
||||
|
||||
import navData from "./data/NavBarData.json";
|
||||
|
||||
@@ -15,6 +16,7 @@ function App() {
|
||||
<>
|
||||
<GameTick />
|
||||
<GameSync />
|
||||
<OfflineReport />
|
||||
<Navbar
|
||||
navData={navData}
|
||||
toggleRain={toggleRain}
|
||||
|
||||
Reference in New Issue
Block a user