Files
neural-hunt/V4.2.12_RARITY_PROBABILITIES_ADMIN_DROPS.md
groot 47c523dd98
release-tag / release-image (push) Successful in 3m51s
RC-14
2026-08-14 06:17:30 +02:00

68 lines
2.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# V4.2.12 – Configurable Rarity Probabilities + Admin Drop Override
## Global rarity probabilities
The Server Admin → ARTIFACT view now contains a **RARITY-CHANCEN** section.
The five percentages must add up to exactly 100%:
- Common
- Uncommon
- Rare
- Ultra Rare
- Special Illustration Rare
Defaults preserve the V4.2.11 distribution:
- Common: 58.00%
- Uncommon: 29.50%
- Rare: 9.90%
- Ultra Rare: 2.25%
- Special Illustration Rare: 0.35%
The values are stored in the existing runtime settings JSON. Existing installations therefore need no separate settings-table migration.
## Stable assigned rarity
A new `tasks.artifact_rarity` field stores the rarity actually assigned to a collectible. The worker assigns it before the image API call and keeps it for retries / later regeneration.
This is separate from `artifact_rarity_override`:
- `artifact_rarity_override`: optional Admin instruction for a gift
- `artifact_rarity`: actual permanently assigned tier for the collectible
Normal winner cards use the configured probability distribution. Once assigned, changing the distribution does not change their rarity.
## Admin gifts
ADMIN NFT DROP now offers:
- RANDOM / according to global chances
- COMMON
- UNCOMMON
- RARE
- ULTRA RARE
- SPECIAL ILLUSTRATION RARE
When a fixed tier is selected, all cards in that specific Admin-Drop request use that tier. Their artwork still receives the collector-diversity logic introduced in V4.2.10.
## APIs / gallery
The public artifact list and authenticated `MEINE NFTS` list now expose `rarity` for newly assigned collectibles. The UI displays it next to the artifact metadata.
## Environment defaults
Optional seed values:
```env
DEFAULT_ARTIFACT_RARITY_COMMON_PCT=58.00
DEFAULT_ARTIFACT_RARITY_UNCOMMON_PCT=29.50
DEFAULT_ARTIFACT_RARITY_RARE_PCT=9.90
DEFAULT_ARTIFACT_RARITY_ULTRA_RARE_PCT=2.25
DEFAULT_ARTIFACT_RARITY_SPECIAL_ILLUSTRATION_PCT=0.35
```
After settings have been saved in Admin, the stored runtime values are authoritative.
## Deployment
Only the Server image changed:
- `Dockerfile.server`
No Customer-Service or Worker image rebuild is required.