feat(overview): enhance certificate status display with current and minimum values

This commit is contained in:
Torsten Schulz (local)
2026-08-18 07:34:32 +02:00
parent 62dc104211
commit 420af99a60
7 changed files with 94 additions and 1 deletions

View File

@@ -3096,6 +3096,9 @@ class FalukantService extends BaseService {
const highestPoliticalOfficeRank = Number(highestPoliticalOffice?.rank || 0);
const highestChurchOfficeRank = Number(highestChurchOffice?.rank || 0);
const highestOfficeRank = Math.max(highestPoliticalOfficeRank, highestChurchOfficeRank);
const highestOfficeName = highestPoliticalOfficeRank >= highestChurchOfficeRank
? highestPoliticalOffice?.name ?? null
: highestChurchOffice?.name ?? null;
const nobilityLevel = Number(title?.level || 0);
const knowledgePoints = getKnowledgePoints(avgKnowledge);
@@ -3129,9 +3132,12 @@ class FalukantService extends BaseService {
highestPoliticalOfficeName: highestPoliticalOffice?.name ?? null,
highestChurchOfficeName: highestChurchOffice?.name ?? null,
highestOfficeRank,
highestOfficeName,
nobilityLevel,
nobilityTitleLabel: title?.labelTr ?? null,
reputation,
housePosition,
houseLabel: house?.houseType?.labelTr ?? null,
knowledgePoints,
productionPoints,
officePoints,