Skip to content

Add celestial body exploration missions for starships - #17

Open
bsproger with Copilot wants to merge 5 commits into
mainfrom
copilot/enhance-starship-exploration
Open

Add celestial body exploration missions for starships#17
bsproger with Copilot wants to merge 5 commits into
mainfrom
copilot/enhance-starship-exploration

Conversation

Copilot AI commented Jan 31, 2026

Copy link
Copy Markdown
Contributor

Adds mission system allowing starships to explore 8 Saturn moons (Titan, Enceladus, Rhea, Iapetus, Dione, Tethys, Mimas, Hyperion). Each mission requires specific ships/research level, takes 1-3 days, and grants metal, unstable elements, and permanent bonuses.

Implementation

Mission mechanics

  • Validates requirements: ship count, exploration research level, not already explored/in-progress
  • Tracks active missions with start/completion days
  • Ships occupied during missions (unavailable for other use)
  • Auto-completes on day counter tick via checkMissionCompletion()

Reward system

  • Immediate: 500-1500 metal, 0-150 unstable elements
  • Permanent: +5-15% production or exploration effectiveness
  • Bonuses merge into activeRewards.productionBonus / explorationBonus

UI integration

  • New celestial bodies panel (visible when ships > 0)
  • Status indicators: Unexplored / In Progress (%) / Explored
  • Grid layout with launch buttons, requirement validation

State management

  • Added exploredBodies: string[] and activeMissions: Mission[] to game state
  • Backward compatible: initializes empty arrays for old saves
  • Persists across save/load
const celestialBodies = [
  {
    id: 'titan',
    name: 'Titan',
    distance: 1, // days
    requiredShips: 1,
    requiredExplorationLevel: 0,
    rewards: {
      metal: 500,
      bonus: { type: 'production', value: 0.05 }
    }
  },
  // ... 7 more moons
];

Screenshots

Exploration panel with mission status
Celestial Bodies

Completed mission with rewards applied
Mission Complete

Files Modified

  • game.js: Mission functions, celestial body definitions, UI updates, game loop integration
  • index.html: New exploration section
  • style.css: Panel styling with grid layout, status indicators
  • test_exploration_system.html: Integration test suite (37 tests)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits January 31, 2026 20:21
Co-authored-by: bsproger <3499822+bsproger@users.noreply.github.com>
Co-authored-by: bsproger <3499822+bsproger@users.noreply.github.com>
… mapping

Co-authored-by: bsproger <3499822+bsproger@users.noreply.github.com>
Co-authored-by: bsproger <3499822+bsproger@users.noreply.github.com>
Copilot AI changed the title [WIP] Enhance exploration with starships for moons and planets Add celestial body exploration missions for starships Jan 31, 2026
Copilot AI requested a review from bsproger January 31, 2026 20:27
@bsproger
bsproger marked this pull request as ready for review January 31, 2026 20:46
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants