26 perception drinking all abilities (#56)

* Innate abilities

+ Added Perception as fixed innate ability
+ Added Drinking as fixed innate ability
+ Set Luckpoints to 0

* Duration Update

+ Added Duration to Effects
+ Added Perception to Eye & Ear Injury

* Fixed like recommended

+ Fixed M5Base
+Fixed M5Character
+ Fixed M5Rolls
+ Fixed Skills HBS
+ Fixed BrawlFw
+ Fixed Effect (not saved already)

* fix minor issues

---------

Co-authored-by: Byroks <byroks@gmail.com>
This commit is contained in:
LeFrique 2023-12-13 18:45:35 +01:00 committed by GitHub
parent 1e27e135cf
commit fed1175987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
83 changed files with 188 additions and 18 deletions

View File

@ -197,6 +197,8 @@
"midgard5.enduranceBonus": "Ausdauerbonus",
"midgard5.lpProtection": "Rüstungsschutz (LP)",
"midgard5.apProtection": "Rüstungsschutz (AP)",
"midgard5.perception" : "Wahrnehmung",
"midgard5.drinking" : "Trinken",
"midgard5.new-skill": "Neue Fertigkeit",
"midgard5.special": "Spezial",
@ -305,6 +307,8 @@
"midgard5.mod-stat-ap": "Ausdauerpunkte",
"midgard5.mod-stat-lpProtection": "Rüstungsschutz (LP)",
"midgard5.mod-stat-apProtection": "Rüstungsschutz (AP)",
"midgard5.mod-stat-perception": "Wahrnehmung",
"midgard5.mod-stat-drinking": "Trinken",
"midgard5.mod-type": "Typ der Modifikation",
"midgard5.mod-id": "Was soll modifiziert werden",

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 2, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 2, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "KOD. S96",
"equippable": false,
"equipped": true,
"duration": { "time": 360, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 2, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 2, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 1, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "",
"equippable": false,
"equipped": true,
"duration": { "time": 2, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -9,7 +9,7 @@
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },
"mods": { "0": { "type": "skill", "id": "Sehen", "operation": "subtract", "value": 2 } },
"mods": { "0": { "type": "stat", "id": "perception", "operation": "subtract", "value": 2 } },
"calc": {}
},
"effects": [],

View File

@ -9,7 +9,7 @@
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },
"mods": { "0": { "type": "skill", "id": "Hören", "operation": "subtract", "value": 2 } },
"mods": { "0": { "type": "stat", "id": "perception", "operation": "subtract", "value": 2 } },
"calc": {}
},
"effects": [],

View File

@ -5,6 +5,7 @@
"system": {
"description": "<p>ARK S. 64</p>",
"equippable": false,
"duration": { "time": 6, "unit": "hour" },
"equipped": true,
"value": 0,
"magic": false,

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 67</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 69</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>MYS S. 44</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 1, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1,5 +1,5 @@
{
"name": "B\u00e4renwut",
"name": "Bärenwut",
"type": "effect",
"img": "icons/magic/lightning/fist-unarmed-strike-blue-green.webp",
"system": {

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 133</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 133</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 135</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 136</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 137</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 137</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARS S. 137</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 170</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -0,0 +1,23 @@
{
"name": "Der verunsichernde Gesang",
"type": "effect",
"img": "icons/magic/sonic/scream-wail-shout-teal.webp",
"system": {
"description": "<p>ARK S. 170</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },
"mods": { "0": { "type": "attribute", "id": "", "operation": "subtract", "value": 5 }, "1": { "type": "skill", "id": "", "operation": "subtract", "value": 1 } },
"calc": {}
},
"effects": [],
"flags": { "core": { "sourceId": "Compendium.midgard5.zauberwirkungen.lEqFJcDY9QCh4Gmd" } },
"_stats": { "systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1677860239164, "modifiedTime": 1700353901250, "lastModifiedBy": "cb3PEvEU0kHkMdjb" },
"_id": "KneY9z7Jdjh1xWZc",
"folder": null,
"sort": 0,
"ownership": { "default": 0, "cb3PEvEU0kHkMdjb": 3 }
}

View File

@ -1,11 +1,12 @@
{
"name": "Die St\u00e4hlende Ballade",
"name": "Die Stählende Ballade",
"type": "effect",
"img": "icons/tools/instruments/drum-standing-glowing-green.webp",
"system": {
"description": "<p>ARK S. 171</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 171 Auf alle Bewegungsfertigkeiten anwendbar!</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1 +1 @@
{"name": "Eisenhaut", "type": "armor", "img": "icons/equipment/chest/breastplate-helmet-metal.webp", "system": {"description": "<p>ARK S. 74</p>", "stats": { "damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 5, "apProtection": 5, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700346498452, "modifiedTime": 1700353901245, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "RiUYfceWEkRkKm0h", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}
{"name": "Eisenhaut", "effect": "armor", "img": "icons/equipment/chest/breastplate-helmet-metal.webp", "system": {"description": "<p>ARK S. 74</p>", "stats": { "damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "duration": { "time": 12, "unit": "round" }, "equipped": true, "attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 5, "apProtection": 5, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700346498452, "modifiedTime": 1700353901245, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "RiUYfceWEkRkKm0h", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 150</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 76</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>DUM S. 83</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 999, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 85</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 175</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 1, "unit": "hour" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 87</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 141</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1 +1 @@
{"name": "Goldener Panzer", "type": "armor", "img": "icons/equipment/chest/breastplate-layered-gilded-orange.webp", "system": {"description": "<p>ARK S. 88</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 2, "apProtection": 0, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700347046024, "modifiedTime": 1700353901246, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "xql3yvtFlgU0TE8n", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}
{"name": "Goldener/Strahlender Panzer", "type": "effect", "img": "icons/equipment/chest/breastplate-layered-gilded-orange.webp", "system": {"description": "<p>ARK S. 88</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "duration": { "time": 12, "unit": "round" },"attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 2, "apProtection": 0, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700347046024, "modifiedTime": 1700353901246, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "xql3yvtFlgU0TE8n", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 143</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1,11 +1,12 @@
{
"name": "G\u00f6tterarme",
"name": "Götterarme",
"type": "effect",
"img": "icons/magic/unholy/hands-circle-light-green.webp",
"system": {
"description": "<p>RAW S. 105</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1,11 +1,12 @@
{
"name": "G\u00f6ttlicher Schutz vor Magie",
"name": "Göttlicher Schutz vor Magie",
"type": "effect",
"img": "icons/magic/holy/barrier-shield-winged-cross.webp",
"system": {
"description": "<p>ARK S. 142</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 1, "unit": "hour" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 144</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 93</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 149</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 176</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 1, "unit": "hour" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>MYS S. 48</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 154</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 166</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 180, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 168</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 180, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1 +1 @@
{"name": "Marmorhaut", "type": "armor", "img": "icons/equipment/chest/breastplate-gorget-steel-white.webp", "system": {"description": "<p>ARK S. 102</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 4, "apProtection": 4, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700347338839, "modifiedTime": 1700353901246, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "wqS82FP9pAxLb5bn", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}
{"name": "Marmorhaut", "type": "effect", "img": "icons/equipment/chest/breastplate-gorget-steel-white.webp", "system": {"description": "<p>ARK S. 102</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "duration": { "time": 60, "unit": "round" },"attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 4, "apProtection": 4, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700347338839, "modifiedTime": 1700353901246, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "wqS82FP9pAxLb5bn", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}

View File

@ -6,6 +6,7 @@
"description": "<p>MYS S. 48</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 105</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -1 +1 @@
{"name": "Rindenhaut", "type": "armor", "img": "icons/equipment/chest/breastplate-leather-brown-belted.webp", "system": {"description": "<p>ARK S. 157</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 3, "apProtection": 3, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700349427856, "modifiedTime": 1700353901248, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "fiyvORwl1F1PLZOD", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}
{"name": "Rindenhaut", "type": "effect", "img": "icons/equipment/chest/breastplate-leather-brown-belted.webp", "system": {"description": "<p>ARK S. 157</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "duration": { "time": 60, "unit": "round" },"attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 3, "apProtection": 3, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700349427856, "modifiedTime": 1700353901248, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "fiyvORwl1F1PLZOD", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}

View File

@ -1 +1 @@
{"name": "R\u00fcstung des Rechtschaffenen", "type": "armor", "img": "icons/equipment/chest/breastplate-layered-leather-green.webp", "system": {"description": "<p>ARK S. 145</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 5, "apProtection": 5, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700349062247, "modifiedTime": 1700353901247, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "a49UmucuWJL3tXbM", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}
{"name": "R\u00fcstung des Rechtschaffenen", "type": "effect", "img": "icons/equipment/chest/breastplate-layered-leather-green.webp", "system": {"description": "<p>ARK S. 145</p>", "stats": {"damageBonus": 0, "attackBonus": 0, "defenseBonus": 0, "movementBonus": 0, "resistanceMind": 0, "resistanceBody": 0, "spellBonus": 0}, "equippable": false, "equipped": true, "duration": { "time": 12, "unit": "round" },"attributeMod": {"st": 0, "gs": 0, "gw": 0, "ko": 0, "in": 0, "zt": 0, "au": 0, "pa": 0, "wk": 0}, "value": 0, "magic": false, "lpProtection": 5, "apProtection": 5, "rolls": {"formulas": {}, "output": ""}, "calc": {}}, "effects": [], "flags": {}, "_stats": {"systemId": "midgard5", "systemVersion": "1.2.1", "coreVersion": "10.312", "createdTime": 1700349062247, "modifiedTime": 1700353901247, "lastModifiedBy": "cb3PEvEU0kHkMdjb"}, "_id": "a49UmucuWJL3tXbM", "folder": null, "sort": 0, "ownership": {"default": 0, "cb3PEvEU0kHkMdjb": 3}}

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 108</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 108</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 157</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 157</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>MYS S. 49</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 8, "unit": "hour" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 109</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 110</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>Arkanum Seite 146, 147</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p><p>ARK S. 49</p></p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p><p>ARK S. 49</p></p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 115</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 147</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 122</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 6, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 147</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 180, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 148</p></p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 148</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 12, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p><p>ARK S. 160</p></p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 127</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 8, "unit": "hour" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 161</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 180, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 72</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": true,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 132</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 161</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 1, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -6,6 +6,7 @@
"description": "<p>ARK S. 133</p>",
"equippable": false,
"equipped": true,
"duration": { "time": 60, "unit": "round" },
"value": 0,
"magic": false,
"rolls": { "formulas": {}, "output": "" },

View File

@ -84,6 +84,8 @@ export enum M5Stats {
AP = "ap",
PROTECTION_LP = "lpProtection",
PROTECTION_AP = "apProtection",
PERCEPTION = "perception",
DRINKING = "drinking"
}
export enum M5ModType {
@ -163,9 +165,13 @@ export interface M5CharacterCalculatedData {
resistanceBody: M5ModResult;
spellCasting: M5ModResult;
brawl: M5ModResult;
brawlEw: number;
brawlFw: number;
poisonResistance: M5ModResult;
enduranceBonus: number;
perception: M5ModResult;
perceptionFW: number;
drinking: M5ModResult;
drinkingFW: number;
};
skillMods: {};
skills: {

View File

@ -64,9 +64,13 @@ export class M5Character extends Actor {
resistanceBody: { value: 0, mods: [] },
spellCasting: { value: 0, mods: [] },
brawl: { value: 0, mods: [] },
brawlEw: 0,
brawlFw: 0,
poisonResistance: { value: 0, mods: [] },
enduranceBonus: 0,
perception: {value: 0, mods: []},
perceptionFW: 0,
drinking: {value: 0, mods: []},
drinkingFW: 0,
},
skillMods: {},
skills: {
@ -132,9 +136,13 @@ export class M5Character extends Actor {
);
ret.stats.spellCasting = this.modResult((data.info.magicUsing ? M5Character.spellCastingFromLevel(ret.level) : 3) + ret.attributes.zt.bonus);
ret.stats.brawl = this.modResult(Math.floor((ret.attributes.st.value + ret.attributes.gw.value) / 20));
ret.stats.brawlEw = ret.stats.brawl.value + ret.stats.attackBonus.value + (data.info.race === "Zwerg" ? 1 : 0);
ret.stats.brawlFw = ret.stats.brawl.value + ret.stats.attackBonus.value + (data.info.race === "Zwerg" ? 1 : 0);
ret.stats.poisonResistance = this.modResult(30 + Math.floor(ret.attributes.ko.value / 2));
ret.stats.enduranceBonus = Math.floor(ret.attributes.ko.value / 10) + Math.floor(ret.attributes.st.value / 20);
ret.stats.perception = this.modResult(0);
ret.stats.perceptionFW = 6;
ret.stats.drinking = this.modResult(0);
ret.stats.drinkingFW = Math.floor(ret.attributes.ko.value / 10);
if (!skip?.mods) {
const aggregate = new M5ModAggregate(data, ret);

View File

@ -41,6 +41,8 @@ export default class M5ModAggregate {
this.push({ type: M5ModType.STAT, id: M5Stats.AP, operation: M5ModOperation.SET, value: calc.stats.ap.value }, characterString);
this.push({ type: M5ModType.STAT, id: M5Stats.PROTECTION_LP, operation: M5ModOperation.SET, value: calc.stats.lpProtection.value }, characterString);
this.push({ type: M5ModType.STAT, id: M5Stats.PROTECTION_AP, operation: M5ModOperation.SET, value: calc.stats.apProtection.value }, characterString);
this.push({ type: M5ModType.STAT, id: M5Stats.PERCEPTION, operation: M5ModOperation.SET, value: calc.stats.perception.value }, characterString);
this.push({ type: M5ModType.STAT, id: M5Stats.DRINKING, operation: M5ModOperation.SET, value: calc.stats.drinking.value }, characterString);
}
push(mod: M5ItemMod, source: string) {

View File

@ -1,6 +1,7 @@
import { Evaluated } from "@league-of-foundry-developers/foundry-vtt-types/src/foundry/client/dice/roll";
import { M5Character } from "../actors/M5Character";
import { M5EwResult, M5RollData, M5RollResult, M5SkillUnlearned } from "../M5Base";
import { M5EwResult, M5RollData, M5RollResult, M5SkillUnlearned, M5Stats } from "../M5Base";
import { stat } from "fs";
export class M5Roll {
// extends Roll<M5RollData>
@ -181,7 +182,7 @@ export class M5Roll {
};
rollData.rolls["0"] = {
formula: "1d20 + @c.calc.stats.brawlEw",
formula: "1d20 + @c.calc.stats.brawlFw",
enabled: true,
label: (game as Game).i18n.localize("midgard5.attack"),
result: "",
@ -205,6 +206,40 @@ export class M5Roll {
return new M5Roll(rollData, actor, (game as Game).i18n.localize("midgard5.brawl"));
}
static perception(actor: any) {
const rollData = actor.getRollData() as M5RollData;
rollData.rolls["0"] = {
formula: "1d20 + @c.calc.stats.perception.value + @c.calc.stats.perceptionFW",
enabled: true,
label: (game as Game).i18n.localize("midgard5.perception"),
result: "",
total: 0,
totalStr: "",
dice: {},
css: "",
} as M5RollResult;
return new M5Roll(rollData, actor, (game as Game).i18n.localize("midgard5.perception"));
}
static drinking(actor: any) {
const rollData = actor.getRollData() as M5RollData;
rollData.rolls["0"] = {
formula: "1d20 + @c.calc.stats.drinking.value + @c.calc.stats.drinkingFW",
enabled: true,
label: (game as Game).i18n.localize("midgard5.drinking"),
result: "",
total: 0,
totalStr: "",
dice: {},
css: "",
} as M5RollResult;
return new M5Roll(rollData, actor, (game as Game).i18n.localize("midgard5.drinking"));
}
static defense(actor: any) {
const rollData = actor.getRollData() as M5RollData;
rollData.i = {

View File

@ -168,6 +168,16 @@ export default class M5CharacterSheet extends ActorSheet {
await roll.toMessage();
});
html.find(".roll-perception-button").on("click", async (event) => {
const roll = M5Roll.perception(this.actor);
await roll.toMessage();
});
html.find(".roll-drinking-button").on("click", async (event) => {
const roll = M5Roll.drinking(this.actor);
await roll.toMessage();
});
html.find(".roll-defense-button").on("click", async (event) => {
const roll = M5Roll.defense(this.actor);
await roll.toMessage();

View File

@ -36,7 +36,7 @@
"ep": 0,
"gg": 0,
"sg": 0,
"gp": 2
"gp": 0
},
"attributes": {
"attributes": {

View File

@ -19,7 +19,7 @@
<tr data-item="{{itemId}}">
<td class="padding edit-item">{{localize "midgard5.brawl"}}</td>
<td class="center">{{data.calc.stats.brawlEw}}</td>
<td class="center">{{data.calc.stats.brawlFw}}</td>
<td class="fixed-value"><button class="roll-button roll-brawl-button"></button></td>
<td class="fixed-value"></td>
</tr>

View File

@ -74,6 +74,23 @@
<td class="fixed-value"><a class="item-delete" title="Delete Item"><i class="fas fa-trash"></i></a></td>
</tr>
{{/each}}
<tr data-item="{{itemId}}">
<td class="padding edit-item">{{localize "midgard5.perception"}}</td>
<td class="fixed-value">{{data.calc.stats.perceptionFW}}</td>
<td class="fixed-value">{{data.calc.stats.perception.value}}</td>
<td class="fixed-value">{{add data.calc.stats.perception.value data.calc.stats.perceptionFW}}</td>
<td class="fixed-value"><button class="roll-button roll-perception-button"></button></td>
<td class="fixed-value"></td>
</tr>
<tr data-item="{{itemId}}">
<td class="padding edit-item">{{localize "midgard5.drinking"}}</td>
<td class="fixed-value">{{data.calc.stats.drinkingFW}}</td>
<td class="fixed-value">{{data.calc.stats.drinking.value}}</td>
<td class="fixed-value">{{add data.calc.stats.drinking.value data.calc.stats.drinkingFW}}</td>
<td class="fixed-value"><button class="roll-button roll-drinking-button"></button></td>
<td class="fixed-value"></td>
</tr>
</tbody>
</table>