Enhance NobilityView with new house position and condition formatting: Introduce methods to format house position labels and house condition descriptions based on numeric values. Update requirement translations to utilize these new methods for improved clarity and localization.

This commit is contained in:
Torsten Schulz (local)
2026-03-23 10:47:54 +01:00
parent bf0dbb34d8
commit 454a9ec795
7 changed files with 181 additions and 36 deletions

View File

@@ -69,7 +69,7 @@ JOIN (
('margrave', 'money', 165000::numeric),
('margrave', 'reputation', 40::numeric),
('margrave', 'house_condition', 72::numeric),
('margrave', 'lover_count_max', 2::numeric),
('margrave', 'lover_count_min', 1::numeric),
('landgrave', 'cost', 62000::numeric),
('landgrave', 'money', 230000::numeric),
@@ -83,9 +83,9 @@ JOIN (
('elector', 'cost', 115000::numeric),
('elector', 'money', 440000::numeric),
('elector', 'office_rank_any', 4::numeric),
('elector', 'office_rank_political', 4::numeric),
('elector', 'house_position', 5::numeric),
('elector', 'lover_count_max', 2::numeric),
('elector', 'lover_count_max', 3::numeric),
('imperial-prince', 'cost', 155000::numeric),
('imperial-prince', 'money', 600000::numeric),
@@ -101,7 +101,8 @@ JOIN (
('grand-duke', 'money', 1120000::numeric),
('grand-duke', 'reputation', 64::numeric),
('grand-duke', 'house_condition', 84::numeric),
('grand-duke', 'lover_count_max', 1::numeric),
('grand-duke', 'lover_count_min', 1::numeric),
('grand-duke', 'lover_count_max', 3::numeric),
('prince-regent', 'cost', 360000::numeric),
('prince-regent', 'money', 1520000::numeric),
@@ -113,7 +114,8 @@ JOIN (
('king', 'reputation', 72::numeric),
('king', 'house_position', 8::numeric),
('king', 'house_condition', 88::numeric),
('king', 'lover_count_max', 1::numeric)
('king', 'lover_count_min', 1::numeric),
('king', 'lover_count_max', 4::numeric)
) AS req(label_tr, requirement_type, requirement_value)
ON req.label_tr = tm.label_tr
ON CONFLICT (title_id, requirement_type)