Skip to content
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

Inaccurate natural object spawn chances #75

Open
connorhsm opened this issue Nov 3, 2024 · 0 comments
Open

Inaccurate natural object spawn chances #75

connorhsm opened this issue Nov 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@connorhsm
Copy link
Member

Currently, Rock and Seal show equal spawn chance rarity of the highest level, "Very Rare".

Their mapChance values are:

  • Rock: 0.000015
  • Seal: 0.05
  • Ore vein: 0.005 (Comparison)

Each object has a mapChance value as well as optionally a list of biomes it can spawn in with the spawnChance of that biome.

  • mapChance equates to the true probability of the object spawning and can be compared to any other object.
  • spawnChance is the probability of the object spawning within that biome.

This rock is intended to be an outlier, but it's clear the grouping needs a tweak. This level of difference in the user experience equates to finding many seals nearby, but potentially not finding a rock after hours.

spawnText() {
if (!this.mapChanceData()) return;
const level = Math.ceil(parseFloat(this.mapChanceData())*15)-1;
if (level == 0) return "Very Rare";
if (level < 3) return "Rare";
if (level < 7) return "Uncommon";
return "Common";
}

It should be considered to review the current scale of probabilities and how we can expand the groupings to account for changes over time. We could also consider a fixed number of buckets which all objects are spread into roughly equally, similar to object crafting difficulty.

@connorhsm connorhsm added the enhancement New feature or request label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant