Assembly is the maker's: lot quality drawn from Faction.AssemblyMean/Deviation, roles read min(part, assembly)
Deletes ItemManager.RollQuality and RarityTier.Rarity. Faction keys 19 and 20 (18 is reserved for Livery). AetherDb assembly-from-maker derives the fields. Builds AetherDb on the CultLib 45c2f400 / CultMath 9c1b06cd pins; Shared.Tests not yet run; the shipped-catalog test fails until the catalog commit follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ae300c6a84
commit
c5905c3b7f
60 changed files with 367 additions and 84 deletions
|
|
@ -72,18 +72,20 @@ public class Lot
|
|||
// (console give, presets, extracted), which brand their maker only.
|
||||
[Key(4)] public CultRecordRef<FactionProductData> Product;
|
||||
|
||||
// The quality a stat reads for one of the design's roles. An unnamed role, a design without roles, and a lot
|
||||
// minted before roles existed all fall back to the lot's own workmanship.
|
||||
// The quality a stat reads for one of the design's roles: the part's, capped by the lot's own final assembly
|
||||
// (quality-lean-assembly-hard-ceiling), so a part better than its assembly is worth the assembly. An unnamed role, a
|
||||
// design without roles, and a lot minted before roles existed all fall back to the lot's own workmanship.
|
||||
public float QualityForRole(string role)
|
||||
{
|
||||
if (string.IsNullOrEmpty(role) || Roles == null) return Quality;
|
||||
foreach (var fill in Roles)
|
||||
if (fill.Role == role) return fill.Quality;
|
||||
if (fill.Role == role) return Math.Min(fill.Quality, Quality);
|
||||
return Quality;
|
||||
}
|
||||
}
|
||||
|
||||
// One filled slot: the design's role name and how good the part that went into it turned out to be.
|
||||
// One filled slot: the design's role name and how good the part that went into it turned out to be. Stats read it through
|
||||
// Lot.QualityForRole, capped by the lot's assembly; the raw value is kept for disassembly (named-components-after-demo).
|
||||
[MessagePackObject]
|
||||
public class RoleFill
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue