From 611582f22856628ce0cd48f095bad623b8f81b39 Mon Sep 17 00:00:00 2001 From: U~man Date: Tue, 30 Jun 2020 21:58:03 +0200 Subject: [PATCH] ENH: Items --- src/lang/en.json | 17 +++++++- src/scss/item.scss | 16 ++++++- src/template.json | 4 +- src/templates/items/ability-sheet.html | 19 +++++---- src/templates/items/armor-sheet.html | 43 +++++++++++++++---- src/templates/items/spell-sheet.html | 49 ++++++++++++++++++---- src/templates/items/weapon-sheet.html | 58 ++++++++++++++++++++++---- 7 files changed, 166 insertions(+), 40 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 5e36dbf..015f470 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -89,5 +89,20 @@ "OSE.Setting.THAC0Attacks": "Attacks with THAC0", "OSE.Setting.THAC0AttacksHint": "Attacks are resolved using the THAC0 value, not compatible with AAC", "OSE.Setting.VariableWeaponDamage": "Variable Weapon Damage", - "OSE.Setting.VariableWeaponDamageHint": "Weapons have different damage dice" + "OSE.Setting.VariableWeaponDamageHint": "Weapons have different damage dice", + + "OSE.ItemWeight": "Weight", + "OSE.ItemCost": "Cost", + "OSE.ItemQuantity": "Quantity", + "OSE.ItemRoll": "Roll", + "OSE.WeaponDamage": "Damage", + "OSE.WeaponMelee": "Melee", + "OSE.WeaponMissile": "Missile", + "OSE.WeaponSlow": "Slow", + "OSE.SpellRange": "Range", + "OSE.SpellClass": "Class", + "OSE.SpellDuration": "Duration", + "OSE.SpellLevel": "Level", + "OSE.ArmorAC": "AC", + "OSE.ArmorAAC": "AAC" } \ No newline at end of file diff --git a/src/scss/item.scss b/src/scss/item.scss index c1deb83..3639051 100644 --- a/src/scss/item.scss +++ b/src/scss/item.scss @@ -1,5 +1,17 @@ .ose.sheet.item { - .editor { - height: 255px; + .profile-img { + border: none; } + .sheet-body { + .stats { + flex: 0 0 70px; + border-right: 1px groove rgba(0, 0, 0, 0.2); + } + .editor { + height: 255px; + } + .weapon-editor .editor { + height: 230px; + } + } } \ No newline at end of file diff --git a/src/template.json b/src/template.json index e4951c2..1c5a2c2 100644 --- a/src/template.json +++ b/src/template.json @@ -144,7 +144,7 @@ "damage": "1d6", "qualities": "", "slow": false, - "melee": true, + "missile": true, "ranged": true, "cost": 0, "weight": 0 @@ -161,10 +161,12 @@ "class": "Magic-User", "duration": "", "range": "", + "roll": "", "description": "" }, "ability": { "requirements": "", + "roll": "", "description": "" } } diff --git a/src/templates/items/ability-sheet.html b/src/templates/items/ability-sheet.html index 2704d00..e2c2f77 100644 --- a/src/templates/items/ability-sheet.html +++ b/src/templates/items/ability-sheet.html @@ -3,17 +3,18 @@

- +

- {{editor content=data.description target="data.description" - button=true owner=owner editable=editable}} +
+ +
+
+ {{editor content=data.description target="data.description" button=true + owner=owner editable=editable}} +
+
- + \ No newline at end of file diff --git a/src/templates/items/armor-sheet.html b/src/templates/items/armor-sheet.html index 2704d00..23874f9 100644 --- a/src/templates/items/armor-sheet.html +++ b/src/templates/items/armor-sheet.html @@ -3,17 +3,42 @@

- +

- {{editor content=data.description target="data.description" - button=true owner=owner editable=editable}} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ {{editor content=data.description target="data.description" button=true + owner=owner editable=editable}} +
+
- + \ No newline at end of file diff --git a/src/templates/items/spell-sheet.html b/src/templates/items/spell-sheet.html index 2704d00..ce4e1d0 100644 --- a/src/templates/items/spell-sheet.html +++ b/src/templates/items/spell-sheet.html @@ -3,17 +3,48 @@

- +

- {{editor content=data.description target="data.description" - button=true owner=owner editable=editable}} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ {{editor content=data.description target="data.description" button=true + owner=owner editable=editable}} +
+
- + \ No newline at end of file diff --git a/src/templates/items/weapon-sheet.html b/src/templates/items/weapon-sheet.html index 2704d00..c4fe94f 100644 --- a/src/templates/items/weapon-sheet.html +++ b/src/templates/items/weapon-sheet.html @@ -3,17 +3,57 @@

- +

- {{editor content=data.description target="data.description" - button=true owner=owner editable=editable}} +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ {{editor content=data.description target="data.description" button=true + owner=owner editable=editable}} +
+
- + \ No newline at end of file