HSR RELIC PLANNER
Customized HSR relic card generator
Main Stat Eligibility
HSR relics have strict restrictions on eligible main stats by slot type:
- Head: HP (Flat)
- Hands: ATK (Flat)
- Body: HP%, ATK%, DEF%, CRIT Rate, CRIT DMG, Healing Boost, EHR
- Feet: HP%, ATK%, DEF%, SPD
- Sphere: HP%, ATK%, DEF%, Elemental DMG Boosts
- Rope: HP%, ATK%, DEF%, ERR%, Break Effect%
Substat Limitations
To design a valid relic, note the following limitations:
- Max 4 substat slots can be added.
- No duplicate substats are allowed.
- Substats cannot match the active Main Stat.
- Max upgrades per substat is 5 rolls (+5).
Recommended Relic Optimizer
The Character Planner converts a build target into six relic prescriptions by minimizing expected crafting and reroll cost while respecting main-stat legality, substat legality, fixed minimums, and flexible effective-stat value.
-
1. Effective stats:
For the selected character, each useful substat
sreceives a weightw_s > 0. These weights define the effective value of a relic assum_s w_s r_s, wherer_sis the cumulative roll value on that substat. -
2. Build target:
The planner computes the maximum possible build value from
the chosen main stats. The requested score becomes
score% * maxValue. If explicit screen-stat minimums imply a higher weighted requirement, the higher value is used. - 3. Main stats: Each slot starts from the selected main stat, or the character's recommended main stat for that slot. A substat is excluded from a slot whenever it matches that slot's main stat.
-
4. Reserved minimums:
Explicit substat roll requirements are not forced to sum
exactly across all relics. For each stat, the planner
first counts only eligible relic slots. It then reserves
the minimum number of fixed substat positions needed to
satisfy a target availability confidence of
95%. - 5. Flexible pool: Any requested roll value not assigned as a fixed relic minimum remains in the build-level flexible substat pool. This means a stronger roll on one relic can compensate for a weaker or absent roll on another relic.
-
6. Target distribution:
After fixed minimums are placed, the remaining effective
value target is assigned in
0.5-value steps to the relic whose marginal expected cost increases least. A local improvement pass then transfers flexible target value between relics whenever doing so lowers total cost. - 7. Candidate substats: For each relic, the optimizer enumerates candidate substat sets containing all fixed minimum stats plus zero or more optional effective stats, up to four total substats. Empty positions are treated as unrestricted non-effective substats.
-
8. Base probability:
For a candidate base relic
X, substats are drawn without replacement from the legal weighted substat pool. The base probabilityP(X)is computed exactly over all legal draw orders, with optional conditioning for main-stat and substat locks. -
9. Upgrade probability:
For an upgrade target
Y, the simulator enumerates upgrade-roll partitions across the relic's substats and computesP(Y), including individual cutoffs and the combined weighted target. -
10. Base cost:
The optimizer evaluates the cheapest available base
acquisition path:
Cost(X)=min(1/(8P(X)), 1/P(X|L_main), 2/P(X|L_1s), 5/P(X|L_2s)). Head and Hands can only use the unlocked1/(8P(X))path. One- and two-substat locks are only considered when the candidate explicitly contains at least that many substats. -
11. Final relic cost:
For each candidate relic and upgrade target, the optimizer
compares fresh crafting against rerolling a good base:
Cost(X,Y)=min(Cost(X)/P(Y), Cost(X)+3/P(Y)-3). The first term means repeatedly crafting fresh bases until the final relic succeeds. The second means obtaining a good base once, then spending 3 Resin per reroll attempt, with the initial non-reroll attempt already included. -
12. Selection:
For every slot, line count, and candidate substat set, the
planner keeps the option with the lowest
Cost(X,Y). The displayed recommended relics are the six selected slot prescriptions plus the unassigned flexible substat pool.
Assumptions: costs are expressed in the planner's Resin-like crafting/reroll units; a substat lock also implies the main stat is fixed; a 4-line relic uses the model's four-line base probability; and the optimizer is cost-minimizing over the enumerated candidate sets rather than a proof of global optimality over every theoretically possible build.