Remove events system entirely
CI / build-and-push (push) Successful in 36s

The random events (GPU shortages, regulatory hearings, PR crises, etc.)
added interruption without enough gameplay value. Removed all event
types, definitions (~1800 lines of event data), the event processor,
EventModal UI, store actions, and tick integration. Updated docs to
reflect the removal. Bundle size drops ~47kB.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-24 19:54:44 -04:00
parent 0005e580a7
commit 95f2f97121
16 changed files with 16 additions and 2191 deletions
+1 -3
View File
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
import { GameEngine, setEventDefinitions, setAchievementDefinitions, EVENT_DEFINITIONS, ACHIEVEMENT_DEFINITIONS } from '@ai-tycoon/game-engine';
import { GameEngine, setAchievementDefinitions, ACHIEVEMENT_DEFINITIONS } from '@ai-tycoon/game-engine';
import type { TickNotification } from '@ai-tycoon/game-engine';
import { useGameStore } from '@/store';
@@ -11,7 +11,6 @@ export function useGameLoop(skip = false) {
useEffect(() => {
if (!companyName || skip) return;
setEventDefinitions(EVENT_DEFINITIONS);
setAchievementDefinitions(ACHIEVEMENT_DEFINITIONS);
const engine = new GameEngine({
@@ -29,7 +28,6 @@ export function useGameLoop(skip = false) {
talent: state.talent,
data: state.data,
reputation: state.reputation,
events: state.events,
achievements: state.achievements,
};
},