Skip to content

Feature/a lot#10

Merged
Mel-Raeven merged 2 commits into
mainfrom
feature/a-lot
Dec 14, 2025
Merged

Feature/a lot#10
Mel-Raeven merged 2 commits into
mainfrom
feature/a-lot

Conversation

@Mel-Raeven

Copy link
Copy Markdown
Owner

This pull request introduces several major improvements and new features, focusing on gene-based dragon type assignment, offline progress, and a more efficient save system. It also includes UI and codebase refinements to support these changes. The most important updates are summarized below.

Gene-Based Dragon Type Assignment and Display:

  • Gene-based dragons are now automatically assigned a traditional dragon type (fire, ice, forest, storm, shadow) based on their RGB color genetics, ensuring visual and gameplay consistency. This logic is implemented in Dragon._determine_type_from_color() and is documented in the new GENE_DRAGON_TYPES.md. Dragons also support optional titles, which are saved and loaded with their data. [1] [2] [3] [4] [5] docs/GENE_DRAGON_TYPES.md [6]

Offline Progress System:

  • Added an offline progress system: players earn coins while away (capped at 4 hours), but dragons do not grow or progress offline. Feed/pet cooldowns continue, and a summary popup is shown upon return. This is thoroughly documented in OFFLINE_PROGRESS.md. (docs/OFFLINE_PROGRESS.md docs/OFFLINE_PROGRESS.mdR1-R124)

Intelligent Save System and Auto-Save:

  • The game now uses a "dirty flag" system for saving: it auto-saves every 5 minutes if there are unsaved changes, and on game close, reducing unnecessary disk writes. Manual saves on every action have been removed, and visual indicators show unsaved/auto-saved status. This is documented in SAVE_SYSTEM.md, and code changes update all relevant screens and actions to use mark_dirty() instead of immediate saves. [1] [2] [3] [4] [5] [6]

UI and Gameplay Improvements:

  • The dragon pen grid now displays more dragons per row and is centered for better usability. Equipment screen updates now use the new dragon sprite API and improved slot info display. [1] [2] [3]

Technical and Visual Consistency Fixes:

  • The gene dragon color tinting now uses BLEND_RGB_MULT to correctly blend colors while preserving alpha, fixing a visual bug.

Gene Dragon Type System:

  • Gene-based dragons are assigned a traditional type (fire, ice, forest, storm, shadow) based on their color using Dragon._determine_type_from_color(), ensuring proper abilities and classification. Titles are supported and saved/loaded with each dragon. [1] [2] [3] [4] [5] docs/GENE_DRAGON_TYPES.md [6]

Offline Progress:

  • Implemented offline coin accrual (capped at 4 hours), no offline dragon growth, and a summary popup on return, with detailed documentation. (docs/OFFLINE_PROGRESS.md docs/OFFLINE_PROGRESS.mdR1-R124)

Save System Overhaul:

  • Introduced a dirty flag and periodic auto-save (every 5 minutes), removed unnecessary manual saves, and added visual indicators for unsaved/auto-saved status. All game actions now mark the state as dirty instead of saving immediately. [1] [2] [3] [4] [5] [6]

UI/UX Improvements:

  • Dragon pen grid displays more dragons per row and is horizontally centered; equipment screen uses improved sprite and slot info rendering. [1] [2] [3]

Technical Fixes:

  • Fixed color tinting for gene dragons to use correct blend mode, preserving alpha channel.

@Mel-Raeven Mel-Raeven self-assigned this Dec 14, 2025
@Mel-Raeven
Mel-Raeven merged commit ca193e8 into main Dec 14, 2025
7 checks passed
@Mel-Raeven
Mel-Raeven deleted the feature/a-lot branch December 14, 2025 22:23
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.

1 participant