Commit Graph
32 Commits
Author SHA1 Message Date
Doar Mihai 09c9a50e0b docs: add escape from jail design spec 2026-06-28 18:12:12 +03:00
Doar MihaiandClaude Sonnet 4.6 3e6a84503d fix: address final review findings — nerve consume ordering, character init, seeder costs, dead column
- Consume nerve before energy in CrimeService so energy is never lost when nerve is insufficient
- Initialize nerve/max_nerve from config in CharacterController::store (same pattern as energy/health)
- Add nerve_cost to all CrimeSeeder entries proportional to difficulty (1-5 range)
- Remove nerve_regen_at from Character $fillable/$casts/@property — column exists but is not yet wired up

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 17:09:21 +03:00
Doar MihaiandClaude Sonnet 4.6 439f6740c0 feat: add nerve to stats bar, gym nav link, nerve dashboard card
- Add nerve chip to stats-bar showing current/max nerve with purple brain icon
- Add Gym link to sidebar navigation with muscle emoji and active state
- Add Nerve card to dashboard with progress bar, description, and Go to Gym link

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:54:24 +03:00
Doar MihaiandClaude Sonnet 4.6 816c692eca feat: add gym page view
Create the gym training interface with stat cards showing current values,
sessions today/remaining, progress bars, and train buttons. Each stat card
includes conditional styling based on energy availability and daily cap status.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:50:31 +03:00
Doar Mihai 2941426c4e feat: add GymController and gym routes 2026-06-28 16:45:24 +03:00
Doar Mihai 2b506c0086 fix: guard against null reset_date in getSessionsToday 2026-06-28 16:39:04 +03:00
Doar MihaiandClaude Sonnet 4.6 8dbcdfd70c feat: add GymSession model and TrainingService
Implements gym training logic with daily session tracking:
- GymSession model manages training sessions per stat per day
- TrainingService handles training validation, energy consumption, and stat gains
- Lazy daily reset: session count resets when reset_date is before today
- Validates: sufficient energy, daily cap (5 sessions per stat), valid stats

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:35:42 +03:00
Doar MihaiandClaude Sonnet 4.6 310dfd4129 feat: wire nerve check and deduction into crime attempts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:25:32 +03:00
Doar Mihai 0e8ece64c3 fix: add PHPDoc blocks and remove unused import in nerve service/commands 2026-06-28 16:18:06 +03:00
Doar MihaiandClaude Sonnet 4.6 6e2ea7bcc7 feat: add NerveService and nerve regen scheduled commands
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:10:26 +03:00
Doar MihaiandClaude Sonnet 4.6 e7940d31f6 fix: correct nerve fields placement in Character $fillable array
Nerve fields should be positioned after 'max_energy' per spec, not after 'max_health'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:07:15 +03:00
Doar Mihai c47f4f302e fix: add missing @property docblock entries for nerve fields 2026-06-28 16:02:32 +03:00
Doar MihaiandClaude Sonnet 4.6 6182563fa7 feat: add nerve config and Character nerve methods
Add nerve system configuration to config/game.php with start_amount,
max, regen_rate, regen_interval, and midnight_refill settings. Add gym
configuration with energy_cost, daily_cap, and stat_gain. Add nerve
methods to Character model: hasNerve(), consumeNerve(), addNerve(), and
getNervePercentageAttribute(). Update levelUp() to increment max_nerve
by 2. Add nerve_cost to fillable arrays in Crime and CrimeAttempt models.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 15:52:41 +03:00
Doar Mihai 536269cbb5 feat: add nerve and gym_sessions migrations 2026-06-28 15:47:09 +03:00
Doar MihaiandClaude Sonnet 4.6 457c364738 docs: add nerve + gym training implementation plan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 15:34:01 +03:00
Doar MihaiandClaude Sonnet 4.6 97865f51a5 docs: add nerve stat + gym training design spec
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 15:24:36 +03:00
Doar Mihai ad91bf15e0 features planned 2026-06-28 03:29:55 +03:00
Doar Mihai a36b0b7612 some progress 2026-06-28 03:19:32 +03:00
Doar Mihai 435cef6beb fix: replace all bare latest() with latest('attempted_at') in CrimeService 2026-06-28 03:18:32 +03:00
Doar Mihai 1050d19fcc fix: pass crimeService to crimes index view 2026-06-28 03:13:20 +03:00
Doar Mihai 3b31f787a3 fix: order crime attempts by attempted_at instead of missing created_at 2026-06-28 03:10:44 +03:00
Doar Mihai ef821b8a6f feat: restyle character creation page with dark crime theme 2026-06-28 03:10:09 +03:00
Doar MihaiandClaude Sonnet 4.6 cad99125ce feat: restyle inventory, hospital, and jail pages with dark crime theme
Implement dark crime-themed redesign for three game pages using syndicate color
tokens and dark typography. Updated inventory grid, hospital recovery status
display, and jail sentence view with consistent styling.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 03:06:03 +03:00
Doar MihaiandClaude Sonnet 4.6 3326c73d10 feat: restyle crimes page with dark crime theme
Replace crimes index page with dark syndicate theme styling using:
- syndicate color tokens for backgrounds and borders
- crime color tokens for action buttons
- gold color tokens for reward displays
- Improved visual hierarchy and spacing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 03:04:41 +03:00
Doar MihaiandClaude Sonnet 4.6 0d4409b52c feat: restyle game dashboard with dark crime theme
Replace light card classes with dark syndicate theme equivalents:
- All cards now use bg-syndicate-800 with border-syndicate-700
- Primary action buttons use crime-* colors
- Stats display uses gray text for labels, color-coded values
- Quick actions use syndicate-700 borders with crime-600 hover states
- Recent activity items in syndicate-700 background

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 03:03:27 +03:00
Doar Mihai 2a384b8481 feat: restyle form components for dark crime theme 2026-06-28 03:01:48 +03:00
Doar Mihai bbcefe2366 fix: correct dropdown chevron SVG icon in game top bar 2026-06-28 03:00:20 +03:00
Doar Mihai 195688da25 feat: sidebar + top bar game layout with dark crime theme 2026-06-28 02:58:28 +03:00
Doar Mihai 2a6c495d87 fix: add trailing newlines to tailwind.config.js and guest.blade.php 2026-06-28 02:56:29 +03:00
Doar Mihai ea56dbe3ef feat: register syndicate/crime/gold color palette and Inter/Rajdhani fonts 2026-06-28 02:42:26 +03:00
Doar Mihai e0625b962e small fix 2026-06-27 14:48:43 +03:00
Doar Mihai 96d317480b first commit 2026-06-27 14:38:18 +03:00