diff --git a/src/lang/en.json b/src/lang/en.json index a7ff5c8..5d63ab1 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -2,6 +2,7 @@ "OSE.Edit": "Edit", "OSE.Delete": "Delete", "OSE.Add": "Add", + "OSE.Ok": "Ok", "OSE.Cancel": "Cancel", "OSE.Roll": "Roll", @@ -63,7 +64,7 @@ "OSE.MovementEncounterShort": "ENC", "OSE.MovementOverland": "Overland Movement Rate", "OSE.MovementOverlandShort": "OVE", - "OSE.MovementShort": "MR", + "OSE.MovementShort": "MV", "OSE.ArmorClass": "Armor Class", "OSE.ArmorClassShort": "AC", "OSE.AscArmorClassShort": "AAC", diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index 6c4f2ba..de6c976 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -44,7 +44,24 @@ export class OseActor extends Actor { rollAttack(attack, options={}) { const label = game.i18n.localize(`OSE.${attack}`); - const rollParts = ['1d20']; + const rollParts = ['1d20',]; + + const mods = this.computeModifiers(); + if (attack == 'Missile') { + rollParts.push( + '+', + mods.dex.toString(), + '+', + this.data.data.thac0.mod.missile.toString() + ); + } else if (attack == 'Melee') { + rollParts.push( + '+', + mods.str.toString(), + '+', + this.data.data.thac0.mod.melee.toString() + ); + } // Roll and return return OseDice.Roll({ diff --git a/src/scss/actor-base.scss b/src/scss/actor-base.scss index a3282b4..445b6d0 100644 --- a/src/scss/actor-base.scss +++ b/src/scss/actor-base.scss @@ -89,7 +89,9 @@ border-top-left-radius: 80px; box-shadow: 0 0 6px 1px $colorDark; font-size: 12px; + filter: brightness(0.9); &.active { + filter: none; z-index: 1; font-weight: bold; text-shadow: none; @@ -128,6 +130,10 @@ .attribute-value { text-align: center; padding: 4px; + .sep { + flex: 0 0 5px; + line-height: 24px; + } } .attribute-mod { position: absolute; @@ -160,6 +166,9 @@ .attribute-value { width: 45px; flex-grow: 0; + input { + padding: 0; + } } } } diff --git a/src/scss/monster.scss b/src/scss/monster.scss index 5cd0557..75f0482 100644 --- a/src/scss/monster.scss +++ b/src/scss/monster.scss @@ -5,5 +5,19 @@ .editor { height: 300px; } + .attributes .attribute.health { + min-width: 75px; + } + } + .attribute-group { + .attacks-description { + margin: 2px; + padding: 0; + text-align: center; + label { + color: $colorTan; + font-size: 10px; + } + } } } diff --git a/src/template.json b/src/template.json index e9aebb5..c4688e6 100644 --- a/src/template.json +++ b/src/template.json @@ -133,9 +133,7 @@ "appearing": "", "morale": 0 }, - "attacks": { - "value": 1 - } + "attacks": "" } }, "Item": { @@ -155,7 +153,7 @@ "qualities": "", "slow": false, "missile": true, - "ranged": true, + "melee": true, "cost": 0, "equipped": false, "weight": 0 diff --git a/src/templates/actors/dialogs/tweaks-dialog.html b/src/templates/actors/dialogs/tweaks-dialog.html index 42fff28..a6284f3 100644 --- a/src/templates/actors/dialogs/tweaks-dialog.html +++ b/src/templates/actors/dialogs/tweaks-dialog.html @@ -43,6 +43,7 @@ name="data.thac0.mod.melee" id="melee" value="{{data.thac0.mod.melee}}" + data-dtype="Number" /> @@ -54,6 +55,7 @@ name="data.thac0.mod.missile" id="missile" value="{{data.thac0.mod.missile}}" + data-dtype="Number" /> diff --git a/src/templates/actors/partials/character-attributes-tab.html b/src/templates/actors/partials/character-attributes-tab.html index df6db7a..2dbaaec 100644 --- a/src/templates/actors/partials/character-attributes-tab.html +++ b/src/templates/actors/partials/character-attributes-tab.html @@ -121,8 +121,8 @@ -