-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jmapgen itemgroup item default chance #72458
Merged
Maleclypse
merged 14 commits into
CleverRaven:master
from
Procyonae:JMapgenItemDefaultChance
Apr 25, 2024
Merged
jmapgen itemgroup item default chance #72458
Maleclypse
merged 14 commits into
CleverRaven:master
from
Procyonae:JMapgenItemDefaultChance
Apr 25, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
<Documentation>
Design documents, internal info, guides and help.
[JSON]
Changes (can be) made in JSON
Mods
Issues related to mods or modding
Map / Mapgen
Overmap, Mapgen, Map extras, Map display
[C++]
Changes (can be) made in C++. Previously named `Code`
[Markdown]
Markdown issues and PRs
Mods: Magiclysm
Anything to do with the Magiclysm mod
Mods: No Hope
Relating to the mod No Hope
Mods: Defense Mode
Anything to do with the Defense Mode mod
labels
Mar 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-requesting reviews from non-collaborators: @Night-Pryanik
github-actions
bot
added
astyled
astyled PR, label is assigned by github actions
json-styled
JSON lint passed, label assigned by github actions
labels
Mar 17, 2024
Procyonae
commented
Mar 25, 2024
github-actions
bot
added
<Bugfix>
This is a fix for a bug (or closes open issue)
and removed
json-styled
JSON lint passed, label assigned by github actions
labels
Mar 25, 2024
github-actions
bot
added
the
json-styled
JSON lint passed, label assigned by github actions
label
Mar 25, 2024
Maleclypse
reviewed
Mar 29, 2024
Maleclypse
reviewed
Mar 29, 2024
github-actions
bot
added
json-styled
JSON lint passed, label assigned by github actions
and removed
json-styled
JSON lint passed, label assigned by github actions
labels
Mar 29, 2024
Procyonae
force-pushed
the
JMapgenItemDefaultChance
branch
from
April 8, 2024 14:53
2fc3ae9
to
322bdad
Compare
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions
bot
added
the
BasicBuildPassed
This PR builds correctly, label assigned by github actions
label
Apr 8, 2024
Self reminder to do this with place_vehicles too once it's merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
astyled
astyled PR, label is assigned by github actions
BasicBuildPassed
This PR builds correctly, label assigned by github actions
<Bugfix>
This is a fix for a bug (or closes open issue)
[C++]
Changes (can be) made in C++. Previously named `Code`
<Documentation>
Design documents, internal info, guides and help.
[JSON]
Changes (can be) made in JSON
json-styled
JSON lint passed, label assigned by github actions
Map / Mapgen
Overmap, Mapgen, Map extras, Map display
[Markdown]
Markdown issues and PRs
Mods: Defense Mode
Anything to do with the Defense Mode mod
Mods: Magiclysm
Anything to do with the Magiclysm mod
Mods: No Hope
Relating to the mod No Hope
Mods
Issues related to mods or modding
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
Fixes #72326
Describe the solution
Changes
"items":
"chance"
field to default to 100 in 100 rather than 1 in 100 as this is very unintuitive, if you don't specify a chance you'd expect it to always spawn not almost never.Updates the docs to reflect this
Adds
"chance": 1
to the clutter groups that appear to be the only things intentionally using the old default.Throws an error if
"prob"
is used in"items":
asking for it to be replaced with chance.Attempts to replace all existing instances of this.
Describe alternatives you've considered
Ideally both
"item":
and"items":
chances would work the same and ideally be x in y imo rather than 1 in x and x in 100 respectively but that would be incredibly disruptive to the codebases git history for little gain.Short of that ideally all the now meaningless
"chance": 100
s would be removed but just in vanilla there's 1000s which again seems very disruptive for an tiny gain.Testing
Additional context