Add and fix Tier names in level up (#1142)

Co-authored-by: Chris Ryan <chrisr@blackhole>
This commit is contained in:
Chris Ryan 2025-09-05 23:47:12 +10:00 committed by GitHub
parent 2d92576121
commit ec54da4e23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -475,18 +475,21 @@
}, },
"takeLevelUp": "Finish Level Up", "takeLevelUp": "Finish Level Up",
"tier2": { "tier2": {
"name": "Tier 2",
"label": "Levels 2-4", "label": "Levels 2-4",
"infoLabel": "At Level 2, gain an additional Experience at +2 and gain a +1 bonus to your Proficiency.", "infoLabel": "At Level 2, gain an additional Experience at +2 and gain a +1 bonus to your Proficiency.",
"pretext": "Choose two options from the list below", "pretext": "Choose two options from the list below",
"posttext": "Take an additional domain card of your level or lower from a domain you have access to." "posttext": "Take an additional domain card of your level or lower from a domain you have access to."
}, },
"tier3": { "tier3": {
"name": "Tier 3",
"label": "Levels 5-7", "label": "Levels 5-7",
"infoLabel": "At Level 5, take an additional Experience and clear all marks on Character Traits.", "infoLabel": "At Level 5, take an additional Experience and clear all marks on Character Traits.",
"pretext": "When you level up, record it on your character sheet, then choose two from the list below or any unmarked from the previous tier.", "pretext": "When you level up, record it on your character sheet, then choose two from the list below or any unmarked from the previous tier.",
"posttext": "Take an additional domain card of your level or lower from a domain you have access to." "posttext": "Take an additional domain card of your level or lower from a domain you have access to."
}, },
"tier4": { "tier4": {
"name": "Tier 4",
"label": "Levels 8-10", "label": "Levels 8-10",
"infoLabel": "At Level 8, take an additional Experience and clear all marks on Character Traits.", "infoLabel": "At Level 8, take an additional Experience and clear all marks on Character Traits.",
"pretext": "When you level up, record it on your character sheet, then choose two from the list below or any unmarked from the previous tier.", "pretext": "When you level up, record it on your character sheet, then choose two from the list below or any unmarked from the previous tier.",

View file

@ -169,7 +169,7 @@ export const defaultLevelTiers = {
tiers: { tiers: {
2: { 2: {
tier: 2, tier: 2,
name: 'Tier 2', name: 'DAGGERHEART.APPLICATIONS.Levelup.tier2.name',
levels: { levels: {
start: 2, start: 2,
end: 4 end: 4
@ -232,7 +232,7 @@ export const defaultLevelTiers = {
}, },
3: { 3: {
tier: 3, tier: 3,
name: 'Tier 3', name: 'DAGGERHEART.APPLICATIONS.Levelup.tier3.name',
levels: { levels: {
start: 5, start: 5,
end: 7 end: 7
@ -313,7 +313,7 @@ export const defaultLevelTiers = {
}, },
4: { 4: {
tier: 4, tier: 4,
name: 'Tier 4', name: 'DAGGERHEART.APPLICATIONS.Levelup.tier4.name',
levels: { levels: {
start: 8, start: 8,
end: 10 end: 10

View file

@ -234,7 +234,7 @@ export class DhLevelup extends foundry.abstract.DataModel {
const subclassInTier = subclasses.some(x => x.tier === Number(tierKey)); const subclassInTier = subclasses.some(x => x.tier === Number(tierKey));
return { return {
name: tier.name, name: game.i18n.localize(tier.name),
active: this.currentLevel >= Math.min(...tier.belongingLevels), active: this.currentLevel >= Math.min(...tier.belongingLevels),
groups: Object.keys(tier.options).map(optionKey => { groups: Object.keys(tier.options).map(optionKey => {
const option = tier.options[optionKey]; const option = tier.options[optionKey];