Skip to content

fix: Honor chapter point limits - #1491

Merged
EttyKitty merged 1 commit into
Adeptus-Dominus:mainfrom
The-Real-Nyx:chapter_points_fix
Aug 29, 2026
Merged

fix: Honor chapter point limits#1491
EttyKitty merged 1 commit into
Adeptus-Dominus:mainfrom
The-Real-Nyx:chapter_points_fix

Conversation

@The-Real-Nyx

@The-Real-Nyx The-Real-Nyx commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Summary by cubic

Fixes chapter creation to respect each chapter's defined point limit instead of using hardcoded values. Premade chapters now use their points field (all set to 250), while custom chapters keep a 100-point default. Also saves the active point limit when a chapter is saved, so it persists.

Written for commit 25e1bda. Summary will update on new commits.

Review in cubic

@github-actions github-actions Bot added Area: JSON Changes to external JSON files or their under-the-hood functionality Size: Small Type: Fix This is a fix for a bug labels Aug 29, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 28 files

Confidence score: 5/5

  • In scripts/scr_chapter_new/scr_chapter_new.gml, duplicated chapter-points validation and flooring logic could drift between the normal and custom paths over time; extract the shared calculation into a helper while preserving their distinct fallback values.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="scripts/scr_chapter_new/scr_chapter_new.gml">

<violation number="1" location="scripts/scr_chapter_new/scr_chapter_new.gml:249">
P2: Custom agent: **Code Quality Review**

The normal and custom chapter paths duplicate the same chapter-points validation and flooring logic, differing only in the fallback value. Extract this calculation into a helper that accepts the fallback so future validation changes stay consistent.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread scripts/scr_chapter_new/scr_chapter_new.gml
@EttyKitty
EttyKitty merged commit 6e651f0 into Adeptus-Dominus:main Aug 29, 2026
7 checks passed
@The-Real-Nyx
The-Real-Nyx deleted the chapter_points_fix branch August 29, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: JSON Changes to external JSON files or their under-the-hood functionality Size: Small Type: Fix This is a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants