Reduce default icon size, fix #32
This commit is contained in:
parent
522bb08d35
commit
034a60bf19
@ -567,8 +567,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status {
|
.fvtt-cthulhu-eternal .tab.protagonist-status {
|
||||||
@ -609,8 +609,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 2rem;
|
max-width: 2rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .bonds .bond .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders {
|
||||||
@ -634,8 +634,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 14rem;
|
max-width: 14rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders .mentaldisorder .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders .mentaldisorder .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .injuries {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .injuries {
|
||||||
@ -659,8 +659,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 14rem;
|
max-width: 14rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-status .injuries .injury .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-status .injuries .injury .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment {
|
||||||
@ -702,8 +702,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment .weapons .weapon .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment .armors {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment .armors {
|
||||||
@ -736,8 +736,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment .armors .armor .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment .armors .armor .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment .gears {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment .gears {
|
||||||
@ -770,8 +770,8 @@ i.fvtt-cthulhu-eternal {
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment .gears .gear .item-img {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment .gears .gear .item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .tab.protagonist-equipment prose-mirror.inactive {
|
.fvtt-cthulhu-eternal .tab.protagonist-equipment prose-mirror.inactive {
|
||||||
|
10
lang/en.json
10
lang/en.json
@ -329,9 +329,9 @@
|
|||||||
"Fast": "Fast",
|
"Fast": "Fast",
|
||||||
"Average": "Average",
|
"Average": "Average",
|
||||||
"None": "None",
|
"None": "None",
|
||||||
"pristine": "Pristine",
|
"Pristine": "Pristine",
|
||||||
"worn": "Worn",
|
"Worn": "Worn",
|
||||||
"junk": "Junk",
|
"Junk": "Junk",
|
||||||
"resources": "Resources",
|
"resources": "Resources",
|
||||||
"resourceChecks": "Resource Checks",
|
"resourceChecks": "Resource Checks",
|
||||||
"sanBPShort": "BP",
|
"sanBPShort": "BP",
|
||||||
@ -436,6 +436,10 @@
|
|||||||
"Setting": {
|
"Setting": {
|
||||||
},
|
},
|
||||||
"Chat": {
|
"Chat": {
|
||||||
|
},
|
||||||
|
"Notitications": {
|
||||||
|
"NoWeaponSkill": "No weapon skill found for this weapon. Check Weapon definition or available skills/era",
|
||||||
|
"NoWeaponType": "No weapon type found for this weapon subtype. Check Weapon definition or available skills/era"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,10 +135,18 @@ export default class CthulhuEternalRoll extends Roll {
|
|||||||
return
|
return
|
||||||
case "weapon":
|
case "weapon":
|
||||||
let era = game.settings.get("fvtt-cthulhu-eternal", "settings-era")
|
let era = game.settings.get("fvtt-cthulhu-eternal", "settings-era")
|
||||||
|
if (!SYSTEM.WEAPON_SKILL_MAPPING[era] || !SYSTEM.WEAPON_SKILL_MAPPING[era][options.rollItem.system.weaponType]) {
|
||||||
|
ui.notifications.error(game.i18n.localize("CTHULHUETERNAL.Notifications.NoWeaponType") )
|
||||||
|
return
|
||||||
|
}
|
||||||
let skillName = game.i18n.localize(SYSTEM.WEAPON_SKILL_MAPPING[era][options.rollItem.system.weaponType])
|
let skillName = game.i18n.localize(SYSTEM.WEAPON_SKILL_MAPPING[era][options.rollItem.system.weaponType])
|
||||||
let actor = game.actors.get(options.actorId)
|
let actor = game.actors.get(options.actorId)
|
||||||
options.weapon = options.rollItem
|
options.weapon = options.rollItem
|
||||||
options.rollItem = actor.items.find(i => i.type === "skill" && i.name.toLowerCase() === skillName.toLowerCase())
|
options.rollItem = actor.items.find(i => i.type === "skill" && i.name.toLowerCase() === skillName.toLowerCase())
|
||||||
|
if (!options.rollItem) {
|
||||||
|
ui.notifications.error(game.i18n.localize("CTHULHUETERNAL.Notifications.NoWeaponSkill") )
|
||||||
|
return
|
||||||
|
}
|
||||||
options.initialScore = options.rollItem.system.computeScore()
|
options.initialScore = options.rollItem.system.computeScore()
|
||||||
console.log("WEAPON", skillName, era, options.rollItem)
|
console.log("WEAPON", skillName, era, options.rollItem)
|
||||||
break
|
break
|
||||||
|
@ -1 +1 @@
|
|||||||
MANIFEST-000044
|
MANIFEST-000048
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
2025/01/09-15:36:12.923109 7f0aba7fc6c0 Recovering log #42
|
2025/01/09-15:39:16.704802 7f0abb7fe6c0 Recovering log #46
|
||||||
2025/01/09-15:36:12.933058 7f0aba7fc6c0 Delete type=3 #40
|
2025/01/09-15:39:16.715860 7f0abb7fe6c0 Delete type=3 #44
|
||||||
2025/01/09-15:36:12.933138 7f0aba7fc6c0 Delete type=0 #42
|
2025/01/09-15:39:16.715933 7f0abb7fe6c0 Delete type=0 #46
|
||||||
2025/01/09-15:36:31.742879 7f0ab9bff6c0 Level-0 table #47: started
|
|
||||||
2025/01/09-15:36:31.742910 7f0ab9bff6c0 Level-0 table #47: 0 bytes OK
|
|
||||||
2025/01/09-15:36:31.749117 7f0ab9bff6c0 Delete type=0 #45
|
|
||||||
2025/01/09-15:36:31.749289 7f0ab9bff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
|
||||||
2025/01/09-15:36:31.759629 7f0ab9bff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
2025/01/09-15:17:55.539834 7f0abb7fe6c0 Recovering log #38
|
2025/01/09-15:36:12.923109 7f0aba7fc6c0 Recovering log #42
|
||||||
2025/01/09-15:17:55.549829 7f0abb7fe6c0 Delete type=3 #36
|
2025/01/09-15:36:12.933058 7f0aba7fc6c0 Delete type=3 #40
|
||||||
2025/01/09-15:17:55.549903 7f0abb7fe6c0 Delete type=0 #38
|
2025/01/09-15:36:12.933138 7f0aba7fc6c0 Delete type=0 #42
|
||||||
2025/01/09-15:18:10.246814 7f0ab9bff6c0 Level-0 table #43: started
|
2025/01/09-15:36:31.742879 7f0ab9bff6c0 Level-0 table #47: started
|
||||||
2025/01/09-15:18:10.246843 7f0ab9bff6c0 Level-0 table #43: 0 bytes OK
|
2025/01/09-15:36:31.742910 7f0ab9bff6c0 Level-0 table #47: 0 bytes OK
|
||||||
2025/01/09-15:18:10.253720 7f0ab9bff6c0 Delete type=0 #41
|
2025/01/09-15:36:31.749117 7f0ab9bff6c0 Delete type=0 #45
|
||||||
2025/01/09-15:18:10.253834 7f0ab9bff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
2025/01/09-15:36:31.749289 7f0ab9bff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||||
2025/01/09-15:18:10.253873 7f0ab9bff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
2025/01/09-15:36:31.759629 7f0ab9bff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||||
|
@ -344,8 +344,8 @@
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -389,8 +389,8 @@
|
|||||||
max-width: 2rem;
|
max-width: 2rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -414,8 +414,8 @@
|
|||||||
max-width: 14rem;
|
max-width: 14rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -439,8 +439,8 @@
|
|||||||
max-width: 14rem;
|
max-width: 14rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -485,8 +485,8 @@
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -519,8 +519,8 @@
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -553,8 +553,8 @@
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
}
|
}
|
||||||
.item-img {
|
.item-img {
|
||||||
width: 32px;
|
width: 24px;
|
||||||
height: 32px;
|
height: 24px;
|
||||||
margin: 4px 0 0 0;
|
margin: 4px 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
{{formField systemFields.settings value=system.settings localize=true}}
|
{{formField systemFields.settings value=system.settings localize=true}}
|
||||||
{{formField systemFields.resourceLevel value=system.resourceLevel}}
|
{{formField systemFields.resourceLevel value=system.resourceLevel}}
|
||||||
{{formField systemFields.state value=system.state}}
|
{{formField systemFields.state value=system.state localize=true}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
{{formField systemFields.weaponSubtype value=system.weaponSubtype localize=true}}
|
{{formField systemFields.weaponSubtype value=system.weaponSubtype localize=true}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{formField systemFields.state value=system.state}}
|
{{formField systemFields.state value=system.state localize=true}}
|
||||||
|
|
||||||
{{formField systemFields.damage value=system.damage}}
|
{{formField systemFields.damage value=system.damage}}
|
||||||
{{formField systemFields.baseRange value=system.baseRange}}
|
{{formField systemFields.baseRange value=system.baseRange}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user