fix(ci): make release gates portable and deterministic
This commit is contained in:
parent
af9327a17b
commit
0c699240e0
4 changed files with 25 additions and 15 deletions
|
|
@ -2083,12 +2083,12 @@ public static class CharacterStatController
|
|||
long skillCost = skill.AdvancementClass >= CharacterSkillAdvancementClass.Trained
|
||||
? skill.RaiseCost
|
||||
: skill.TrainedCost;
|
||||
return skillCost > 0 ? skillCost.ToString("N0") : "Infinity!";
|
||||
return skillCost > 0 ? FormatXp(skillCost) : "Infinity!";
|
||||
}
|
||||
|
||||
if (attrSel[0] < 0) return sheet.SkillCredits.ToString();
|
||||
long cost = GetRaiseCost(sheet, attrSel[0]);
|
||||
return cost > 0 ? cost.ToString("N0") : "Infinity!";
|
||||
return cost > 0 ? FormatXp(cost) : "Infinity!";
|
||||
});
|
||||
|
||||
// Line-2 elements: pass null → keep dat font.
|
||||
|
|
@ -2114,7 +2114,7 @@ public static class CharacterStatController
|
|||
if (skill is not null && skill.AdvancementClass < CharacterSkillAdvancementClass.Trained)
|
||||
return sheet.SkillCredits.ToString();
|
||||
}
|
||||
return sheet.UnassignedXp.ToString("N0");
|
||||
return FormatXp(sheet.UnassignedXp);
|
||||
});
|
||||
|
||||
BindSelectedFooterState(stateB);
|
||||
|
|
@ -2166,12 +2166,12 @@ public static class CharacterStatController
|
|||
long skillCost = skill.AdvancementClass >= CharacterSkillAdvancementClass.Trained
|
||||
? skill.RaiseCost
|
||||
: skill.TrainedCost;
|
||||
return skillCost > 0 ? skillCost.ToString("N0") : "Infinity!";
|
||||
return skillCost > 0 ? FormatXp(skillCost) : "Infinity!";
|
||||
}
|
||||
|
||||
if (attrSel[0] < 0) return sheet.SkillCredits.ToString();
|
||||
long cost = GetRaiseCost(sheet, attrSel[0]);
|
||||
return cost > 0 ? cost.ToString("N0") : "Infinity!";
|
||||
return cost > 0 ? FormatXp(cost) : "Infinity!";
|
||||
});
|
||||
|
||||
LabelProvider(TextById(state, FooterLine2Label), null, Body, () =>
|
||||
|
|
@ -2194,7 +2194,7 @@ public static class CharacterStatController
|
|||
if (skill is not null && skill.AdvancementClass < CharacterSkillAdvancementClass.Trained)
|
||||
return sheet.SkillCredits.ToString();
|
||||
}
|
||||
return sheet.UnassignedXp.ToString("N0");
|
||||
return FormatXp(sheet.UnassignedXp);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue