From e6e6de35dfd4d68e7706ee97058c579ab275c8f7 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 6 Feb 2025 21:10:15 +0100 Subject: [PATCH] Fix #39 - Display cured/uncured for mental disorder --- css/fvtt-cthulhu-eternal.css | 16 +++++++++------ lang/en.json | 2 ++ .../skills/{000105.log => 000106.log} | 0 packs-system/skills/LOG | 5 +++++ packs-system/skills/MANIFEST-000104 | Bin 123 -> 139 bytes styles/protagonist.less | 19 ++++++++++++------ templates/protagonist-status.hbs | 9 ++++++++- 7 files changed, 38 insertions(+), 13 deletions(-) rename packs-system/skills/{000105.log => 000106.log} (100%) diff --git a/css/fvtt-cthulhu-eternal.css b/css/fvtt-cthulhu-eternal.css index 3738a30..79d8f9a 100644 --- a/css/fvtt-cthulhu-eternal.css +++ b/css/fvtt-cthulhu-eternal.css @@ -605,8 +605,8 @@ i.fvtt-cthulhu-eternal { display: flex; align-items: center; gap: 4px; - min-width: 16rem; - max-width: 16rem; + min-width: 18rem; + max-width: 18rem; } .fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .controls { min-width: 2rem; @@ -617,8 +617,8 @@ i.fvtt-cthulhu-eternal { max-width: 12rem; } .fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .type { - min-width: 5rem; - max-width: 5rem; + min-width: 6rem; + max-width: 6rem; } .fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .level { min-width: 2rem; @@ -638,8 +638,8 @@ i.fvtt-cthulhu-eternal { display: flex; align-items: center; gap: 4px; - min-width: 16rem; - max-width: 16rem; + min-width: 18rem; + max-width: 18rem; } .fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders .mentaldisorder .controls { min-width: 2rem; @@ -649,6 +649,10 @@ i.fvtt-cthulhu-eternal { min-width: 14rem; max-width: 14rem; } +.fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders .mentaldisorder .cured { + min-width: 5rem; + max-width: 5rem; +} .fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders .mentaldisorder .item-img { width: 24px; height: 24px; diff --git a/lang/en.json b/lang/en.json index ed40156..573f253 100644 --- a/lang/en.json +++ b/lang/en.json @@ -325,6 +325,8 @@ "veryHarsh": "Very Harsh" }, "Label": { + "Cured": "Cured", + "Uncured": "Uncured", "nudgedRoll": "Nudged Roll", "selectNewValue": "Select the new value", "wpCost": "WP Cost", diff --git a/packs-system/skills/000105.log b/packs-system/skills/000106.log similarity index 100% rename from packs-system/skills/000105.log rename to packs-system/skills/000106.log diff --git a/packs-system/skills/LOG b/packs-system/skills/LOG index e352fba..3f76b3f 100644 --- a/packs-system/skills/LOG +++ b/packs-system/skills/LOG @@ -1,3 +1,8 @@ 2025/02/06-20:25:16.737126 7ffae77fe6c0 Recovering log #102 2025/02/06-20:25:16.746805 7ffae77fe6c0 Delete type=3 #100 2025/02/06-20:25:16.746880 7ffae77fe6c0 Delete type=0 #102 +2025/02/06-21:09:49.042911 7ffae6bff6c0 Level-0 table #107: started +2025/02/06-21:09:49.042956 7ffae6bff6c0 Level-0 table #107: 0 bytes OK +2025/02/06-21:09:49.048918 7ffae6bff6c0 Delete type=0 #105 +2025/02/06-21:09:49.049103 7ffae6bff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end) +2025/02/06-21:09:49.049145 7ffae6bff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end) diff --git a/packs-system/skills/MANIFEST-000104 b/packs-system/skills/MANIFEST-000104 index 127b09f7207998271dac9e34e1fafb7d69c58e3a..4f6d069ff5ead1614c3b36a0b718de2634ba6d75 100644 GIT binary patch delta 22 dcmb>KW}Hwh5P58W5+?&AQx+!!a}LWpCIC|321Nh> delta 5 McmeBXte#K}00qnf6951J diff --git a/styles/protagonist.less b/styles/protagonist.less index 1cf1f32..c171909 100644 --- a/styles/protagonist.less +++ b/styles/protagonist.less @@ -370,6 +370,7 @@ padding-left: 5px; } } + .bonds { display: grid; grid-template-columns: repeat(2, 1fr); @@ -378,8 +379,8 @@ display: flex; align-items: center; gap: 4px; - min-width: 16rem; - max-width: 16rem; + min-width: 18rem; + max-width: 18rem; .controls { min-width: 2rem; max-width: 2rem; @@ -389,8 +390,8 @@ max-width: 12rem; } .type { - min-width: 5rem; - max-width: 5rem; + min-width: 6rem; + max-width: 6rem; } .level { min-width: 2rem; @@ -403,6 +404,7 @@ } } } + .mentaldisorders { display: grid; grid-template-columns: repeat(2, 1fr); @@ -411,8 +413,8 @@ display: flex; align-items: center; gap: 4px; - min-width: 16rem; - max-width: 16rem; + min-width: 18rem; + max-width: 18rem; .controls { min-width: 2rem; max-width: 2rem; @@ -421,6 +423,10 @@ min-width: 14rem; max-width: 14rem; } + .cured { + min-width: 5rem; + max-width: 5rem; + } .item-img { width: 24px; height: 24px; @@ -428,6 +434,7 @@ } } } + .injuries { display: grid; grid-template-columns: repeat(2, 1fr); diff --git a/templates/protagonist-status.hbs b/templates/protagonist-status.hbs index 034f873..8c4f5c7 100644 --- a/templates/protagonist-status.hbs +++ b/templates/protagonist-status.hbs @@ -12,7 +12,7 @@ {{item.name}}
- {{item.system.bondType}} + {{upperFirst item.system.bondType}}
{{item.system.value}} @@ -56,6 +56,13 @@
{{item.name}}
+
+ {{#if item.system.cured}} + {{localize 'CTHULHUETERNAL.Label.Cured'}} + {{else}} + {{localize 'CTHULHUETERNAL.Label.Uncured'}} + {{/if}} +