Skip to content

Literal Number Max+Min Values#8008

Merged
sovdeeth merged 7 commits intoSkriptLang:dev/featurefrom
Absolutionism:dev/LiteralNumberValues
Aug 30, 2025
Merged

Literal Number Max+Min Values#8008
sovdeeth merged 7 commits intoSkriptLang:dev/featurefrom
Absolutionism:dev/LiteralNumberValues

Conversation

@Absolutionism
Copy link
Copy Markdown
Contributor

@Absolutionism Absolutionism commented Jul 5, 2025

Problem

No expression/literal to easily grab the max/min value of a number type when needed for tests ensuring expression changer capped the final value to the specific values.

Solution

Adds literals for each number type and both max and min values.
Updates tests using the actual number representation.

Adds a new literals package to store the newly created literals and existing ones.
Adds literals in the loadClasses method call

Testing Completed

quickTest

Supporting Information

N/A

Other

These literals are only made for the testing environment. But if anyone believes it should be available outside of the testing environment, I have no problem with that.
Edit: Are now available outside of test environment.


Completes: none
Related: none

@Absolutionism Absolutionism requested review from a team as code owners July 5, 2025 05:31
@Absolutionism Absolutionism requested review from UnderscoreTud and cheeezburga and removed request for a team July 5, 2025 05:31
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jul 5, 2025
@Absolutionism Absolutionism added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jul 5, 2025
@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Jul 6, 2025
@Absolutionism Absolutionism requested a review from sovdeeth July 7, 2025 15:07
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.13 Releases Jul 8, 2025
@skriptlang-automation skriptlang-automation bot added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jul 8, 2025
Copy link
Copy Markdown
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

Examples could be better, though I'm not sure what they should be

@sovdeeth sovdeeth merged commit b8e805b into SkriptLang:dev/feature Aug 30, 2025
5 checks passed
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. labels Aug 30, 2025
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.13 Releases Aug 30, 2025
@sovdeeth sovdeeth moved this from Done - Awaiting Release to Done - Released in 2.13 Releases Oct 15, 2025
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
* Initial Commit

* Update Tests

* literals package

* Add "[the] "
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
* Initial Commit

* Update Tests

* literals package

* Add "[the] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Projects

No open projects
Status: Done - Released

Development

Successfully merging this pull request may close these issues.

4 participants