Anpassung-des-Character-Sheet-Headers-#13 #28
|
|
@ -0,0 +1,13 @@
|
||||||
|
name: Adds all issues to project board
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-to-project:
|
||||||
|
name: Add issue to project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/add-to-project@v0.5.0
|
||||||
|
with:
|
||||||
|
project-url: https://git.byroks.de/MidgardVTT-Entwicklung/-/projects/3
|
||||||
|
github-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
labeled: bug, enhancement
|
||||||
|
label-operator: OR
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"moduleName": "Midgard 5. Edition",
|
"moduleName": "Midgard 5. Edition",
|
||||||
"repository": "https://git.byroks.de/Byroks/foundry-vtt-system-midgard5"
|
"repository": "https://github.com/Byroks/foundry-vtt-system-midgard5",
|
||||||
|
"rawURL": "https://raw.githubusercontent.com/Byroks/foundry-vtt-system-midgard5"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@
|
||||||
"midgard5.item-quantity": "Menge",
|
"midgard5.item-quantity": "Menge",
|
||||||
"midgard5.item-onbody": "Am Körper",
|
"midgard5.item-onbody": "Am Körper",
|
||||||
"midgard5.item-ismagic": "Ist Magisch",
|
"midgard5.item-ismagic": "Ist Magisch",
|
||||||
|
"midgard5.item-wealth": "Vermögenswert",
|
||||||
|
|
||||||
"midgard5.actor-lp": "Lebenspunkte",
|
"midgard5.actor-lp": "Lebenspunkte",
|
||||||
"midgard5.actor-lp-short": "LP",
|
"midgard5.actor-lp-short": "LP",
|
||||||
|
|
@ -99,6 +100,12 @@
|
||||||
"midgard5.currency-gold": "Gold",
|
"midgard5.currency-gold": "Gold",
|
||||||
"midgard5.currency-silver": "Silber",
|
"midgard5.currency-silver": "Silber",
|
||||||
"midgard5.currency-copper": "Kupfer",
|
"midgard5.currency-copper": "Kupfer",
|
||||||
|
"midgard5.currency-wealth": "Vermögen in GS",
|
||||||
|
"midgard5.currency-available": "verfügbares Vermögen",
|
||||||
|
"midgard5.hoard": "aktueller Hort",
|
||||||
|
"midgard5.hoardMin": "benötigter Mindesthort",
|
||||||
|
"midgard5.hoard-next": "Hort für nächsten Grad",
|
||||||
|
"midgard5.hoarded": "Hort",
|
||||||
|
|
||||||
"midgard5.no-container": "Ohne",
|
"midgard5.no-container": "Ohne",
|
||||||
|
|
||||||
|
|
@ -223,6 +230,7 @@
|
||||||
"midgard5.defensive-weapon": "Verteidigungswaffe",
|
"midgard5.defensive-weapon": "Verteidigungswaffe",
|
||||||
"midgard5.no-skill": "Keine Fertigkeit",
|
"midgard5.no-skill": "Keine Fertigkeit",
|
||||||
"midgard5.magic": "magisch",
|
"midgard5.magic": "magisch",
|
||||||
|
"midgard5.valuable": "Vermögen",
|
||||||
"midgard5.equipped": "Ausgerüstet",
|
"midgard5.equipped": "Ausgerüstet",
|
||||||
"midgard5.active": "Aktiv",
|
"midgard5.active": "Aktiv",
|
||||||
"midgard5.rangedWeapon": "Schusswaffe",
|
"midgard5.rangedWeapon": "Schusswaffe",
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ const preloadTemplates = async (): Promise<Handlebars.TemplateDelegate<any>[]> =
|
||||||
const templates: Array<string> = [
|
const templates: Array<string> = [
|
||||||
"sheets/character/attribute.hbs",
|
"sheets/character/attribute.hbs",
|
||||||
"sheets/character/base_values.hbs",
|
"sheets/character/base_values.hbs",
|
||||||
|
"sheets/character/main.hbs",
|
||||||
"sheets/character/skills.hbs",
|
"sheets/character/skills.hbs",
|
||||||
"sheets/character/gear.hbs",
|
"sheets/character/gear.hbs",
|
||||||
"sheets/character/spells.hbs",
|
"sheets/character/spells.hbs",
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,10 @@ export enum M5Stats {
|
||||||
PROTECTION_AP = "apProtection",
|
PROTECTION_AP = "apProtection",
|
||||||
PERCEPTION = "perception",
|
PERCEPTION = "perception",
|
||||||
DRINKING = "drinking",
|
DRINKING = "drinking",
|
||||||
|
HOARD = "hoard",
|
||||||
|
HOARD_NEXT = "hoardNext",
|
||||||
|
HOARD_MIN = "hoardMin",
|
||||||
|
WEALTH = "wealth",
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum M5ModType {
|
export enum M5ModType {
|
||||||
|
|
@ -173,6 +177,10 @@ export interface M5CharacterCalculatedData {
|
||||||
perceptionFW: number;
|
perceptionFW: number;
|
||||||
drinking: M5ModResult;
|
drinking: M5ModResult;
|
||||||
drinkingFW: number;
|
drinkingFW: number;
|
||||||
|
hoard: number;
|
||||||
|
hoardNext: number;
|
||||||
|
hoardMin: number;
|
||||||
|
wealth: number;
|
||||||
};
|
};
|
||||||
skillMods: {};
|
skillMods: {};
|
||||||
skills: {
|
skills: {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { M5Item } from "../items/M5Item";
|
import { M5Item } from "../items/M5Item";
|
||||||
import { M5Attribute, M5CharacterCalculatedData, M5ItemMod, M5ModOperation, M5ModResult, M5RollData, M5Skill, M5SkillCalculated, M5SkillLearned } from "../M5Base";
|
import { M5Attribute, M5CharacterCalculatedData, M5ItemMod, M5ModOperation, M5ModResult, M5RollData, M5Skill, M5SkillCalculated, M5SkillLearned } from "../M5Base";
|
||||||
import M5ModAggregate from "./M5ModAggregate";
|
import M5ModAggregate from "./M5ModAggregate";
|
||||||
|
|
||||||
export class M5Character extends Actor {
|
export class M5Character extends Actor {
|
||||||
// constructor(
|
// constructor(
|
||||||
// data: ConstructorParameters<typeof foundry.documents.BaseActor>[0],
|
// data: ConstructorParameters<typeof foundry.documents.BaseActor>[0],
|
||||||
|
|
@ -72,6 +71,7 @@ export class M5Character extends Actor {
|
||||||
perceptionFW: 0,
|
perceptionFW: 0,
|
||||||
drinking: { value: 0, mods: [] },
|
drinking: { value: 0, mods: [] },
|
||||||
drinkingFW: 0,
|
drinkingFW: 0,
|
||||||
|
hoard: 0,
|
||||||
},
|
},
|
||||||
skillMods: {},
|
skillMods: {},
|
||||||
skills: {
|
skills: {
|
||||||
|
|
@ -99,7 +99,7 @@ export class M5Character extends Actor {
|
||||||
const data = (this as any).system;
|
const data = (this as any).system;
|
||||||
if (!data) return null;
|
if (!data) return null;
|
||||||
|
|
||||||
ret.level = M5Character.levelFromExp(data.es);
|
ret.level = M5Character.levelFromExp(data.info.race === "Zwerg" ? Math.min(data.calc.stats?.hoard * 2 || 0, data.es) : data.es);
|
||||||
|
|
||||||
ret.attributes.st.value = M5Character.attributeMinMax(data.attributes.st); // TODO item effects
|
ret.attributes.st.value = M5Character.attributeMinMax(data.attributes.st); // TODO item effects
|
||||||
ret.attributes.gs.value = M5Character.attributeMinMax(data.attributes.gs);
|
ret.attributes.gs.value = M5Character.attributeMinMax(data.attributes.gs);
|
||||||
|
|
@ -145,6 +145,11 @@ export class M5Character extends Actor {
|
||||||
ret.stats.perceptionFW = 6;
|
ret.stats.perceptionFW = 6;
|
||||||
ret.stats.drinking = this.modResult(0);
|
ret.stats.drinking = this.modResult(0);
|
||||||
ret.stats.drinkingFW = Math.floor(ret.attributes.ko.value / 10);
|
ret.stats.drinkingFW = Math.floor(ret.attributes.ko.value / 10);
|
||||||
|
ret.stats.hoardMin = M5Character.levelThreshold.at (ret.level - 1)/2;
|
||||||
|
ret.stats.hoardNext = M5Character.levelThreshold.at (ret.level)/2;
|
||||||
|
ret.stats.wealth = data.info.gold + data.info.silver/10 + data.info.copper/100;
|
||||||
|
ret.stats.hoard = 0;
|
||||||
|
|
||||||
|
|
||||||
if (!skip?.mods) {
|
if (!skip?.mods) {
|
||||||
const aggregate = new M5ModAggregate(data, ret);
|
const aggregate = new M5ModAggregate(data, ret);
|
||||||
|
|
@ -172,7 +177,14 @@ export class M5Character extends Actor {
|
||||||
let label = item.name;
|
let label = item.name;
|
||||||
if (item.system.magic) {
|
if (item.system.magic) {
|
||||||
label += "*";
|
label += "*";
|
||||||
|
};
|
||||||
|
if (item.system.valuable) {
|
||||||
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
ret.stats.hoard += item.system.value || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
let icon = item.img;
|
let icon = item.img;
|
||||||
let rollable = false;
|
let rollable = false;
|
||||||
|
|
||||||
|
|
@ -183,12 +195,15 @@ export class M5Character extends Actor {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.gear.items[item.id] = {
|
ret.gear.items[item.id] = {
|
||||||
label: label,
|
label: label,
|
||||||
icon: icon,
|
icon: icon,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
equipped: item.system?.equipped,
|
equipped: item.system?.equipped,
|
||||||
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
weight: item.system.weight || 0,
|
weight: item.system.weight || 0,
|
||||||
containerId: item.system.containerId || "",
|
containerId: item.system.containerId || "",
|
||||||
value: item.system.value || 0,
|
value: item.system.value || 0,
|
||||||
|
|
@ -223,6 +238,8 @@ export class M5Character extends Actor {
|
||||||
label: label,
|
label: label,
|
||||||
icon: icon,
|
icon: icon,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
equipped: item.system?.equipped,
|
equipped: item.system?.equipped,
|
||||||
weight: item.system.weight || 0,
|
weight: item.system.weight || 0,
|
||||||
|
|
@ -232,6 +249,7 @@ export class M5Character extends Actor {
|
||||||
quantity: item.system.quantity || 0,
|
quantity: item.system.quantity || 0,
|
||||||
rollExist: rollable,
|
rollExist: rollable,
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -244,7 +262,7 @@ export class M5Character extends Actor {
|
||||||
let label = item.name;
|
let label = item.name;
|
||||||
if (item.system.magic) {
|
if (item.system.magic) {
|
||||||
label += "*";
|
label += "*";
|
||||||
}
|
};
|
||||||
|
|
||||||
ret.gear.effects[item.id] = {
|
ret.gear.effects[item.id] = {
|
||||||
label: label,
|
label: label,
|
||||||
|
|
@ -288,12 +306,21 @@ export class M5Character extends Actor {
|
||||||
(item.system.stats.damageBonus < 0 ? "" : "+") +
|
(item.system.stats.damageBonus < 0 ? "" : "+") +
|
||||||
item.system.stats.damageBonus +
|
item.system.stats.damageBonus +
|
||||||
")";
|
")";
|
||||||
|
};
|
||||||
|
if (item.system.valuable) {
|
||||||
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
ret.stats.hoard += item.system.value || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.gear.weapons[item.id] = {
|
ret.gear.weapons[item.id] = {
|
||||||
label: label,
|
label: label,
|
||||||
skillId: item.system.skillId,
|
skillId: item.system.skillId,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
|
value: item.system.value || 0,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
@ -308,12 +335,21 @@ export class M5Character extends Actor {
|
||||||
let label = item.name;
|
let label = item.name;
|
||||||
if (item.system.magic) {
|
if (item.system.magic) {
|
||||||
label += "*(" + (item.system.stats.defenseBonus < 0 ? "" : "+") + item.system.stats.defenseBonus + ")";
|
label += "*(" + (item.system.stats.defenseBonus < 0 ? "" : "+") + item.system.stats.defenseBonus + ")";
|
||||||
|
};
|
||||||
|
if (item.system.valuable) {
|
||||||
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
ret.stats.hoard += item.system.value || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.gear.defensiveWeapons[item.id] = {
|
ret.gear.defensiveWeapons[item.id] = {
|
||||||
label: label,
|
label: label,
|
||||||
skillId: item.system.skillId,
|
skillId: item.system.skillId,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
|
value: item.system.value || 0,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
@ -328,11 +364,20 @@ export class M5Character extends Actor {
|
||||||
let label = item.name;
|
let label = item.name;
|
||||||
if (item.system.magic) {
|
if (item.system.magic) {
|
||||||
label += "*";
|
label += "*";
|
||||||
|
};
|
||||||
|
if (item.system.valuable) {
|
||||||
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
ret.stats.hoard += item.system.value || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.gear.armor[item.id] = {
|
ret.gear.armor[item.id] = {
|
||||||
label: label,
|
label: label,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
|
value: item.system.value || 0,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
equipped: item.system?.equipped,
|
equipped: item.system?.equipped,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
"verified": "11",
|
"verified": "11",
|
||||||
"maximum": "11"
|
"maximum": "11"
|
||||||
},
|
},
|
||||||
"authors": [{ "name": "Byroks" }],
|
"authors": [{"name": "Byroks"}],
|
||||||
"scripts": ["bundle.js"],
|
"scripts": ["bundle.js"],
|
||||||
"styles": ["bundle.css"],
|
"styles": ["bundle.css"],
|
||||||
"packs": [
|
"packs": [
|
||||||
|
|
@ -103,25 +103,41 @@
|
||||||
"name": "Midgard 5",
|
"name": "Midgard 5",
|
||||||
"sorting": "a",
|
"sorting": "a",
|
||||||
"color": "#0000FF",
|
"color": "#0000FF",
|
||||||
"packs": ["blaupause-spielfiguren", "tabellen-kritische-ereignisse", "makros-kritische-ereignisse", "makros-standardwurfel"],
|
"packs": [
|
||||||
|
"blaupause-spielfiguren",
|
||||||
|
"tabellen-kritische-ereignisse",
|
||||||
|
"makros-kritische-ereignisse",
|
||||||
|
"makros-standardwurfel"
|
||||||
|
],
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"name": "Ausrüstung",
|
"name": "Ausrüstung",
|
||||||
"sorting": "a",
|
"sorting": "a",
|
||||||
"color": "#008000",
|
"color": "#008000",
|
||||||
"packs": ["ausruestung", "ruestkammer", "waffenkammer"]
|
"packs": [
|
||||||
|
"ausruestung",
|
||||||
|
"ruestkammer",
|
||||||
|
"waffenkammer"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Effekte",
|
"name": "Effekte",
|
||||||
"sorting": "a",
|
"sorting": "a",
|
||||||
"color": "#800080",
|
"color": "#800080",
|
||||||
"packs": ["kampfzustaende", "verletzungen", "zauberwirkungen"]
|
"packs": [
|
||||||
|
"kampfzustaende",
|
||||||
|
"verletzungen",
|
||||||
|
"zauberwirkungen"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Fähigkeiten",
|
"name": "Fähigkeiten",
|
||||||
"sorting": "a",
|
"sorting": "a",
|
||||||
"color": "#800000",
|
"color": "#800000",
|
||||||
"packs": ["fertigkeiten", "kampf"]
|
"packs": [
|
||||||
|
"fertigkeiten",
|
||||||
|
"kampf"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -137,9 +153,9 @@
|
||||||
"gridUnits": "m",
|
"gridUnits": "m",
|
||||||
"primaryTokenAttribute": "lp",
|
"primaryTokenAttribute": "lp",
|
||||||
"secondaryTokenAttribute": "ap",
|
"secondaryTokenAttribute": "ap",
|
||||||
"url": "https://git.byroks.de/Byroks/foundry-vtt-system-midgard5",
|
"url": "https://github.com/Byroks/foundry-vtt-system-midgard5",
|
||||||
"manifest": "https://git.byroks.de/Byroks/foundry-vtt-system-midgard5/releases/download/v2.3.1/system.json",
|
"manifest": "https://github.com/Byroks/foundry-vtt-system-midgard5/releases/download/v2.3.1/system.json",
|
||||||
"download": "https://git.byroks.de/Byroks/foundry-vtt-system-midgard5/releases/download/v2.3.1/midgard5-v2.3.1.zip",
|
"download": "https://github.com/Byroks/foundry-vtt-system-midgard5/releases/download/v2.3.1/midgard5-v2.3.1.zip",
|
||||||
"initiative": "@c.calc.attributes.gw.value",
|
"initiative": "@c.calc.attributes.gw.value",
|
||||||
"license": "LICENSE.txt"
|
"license": "LICENSE.txt"
|
||||||
}
|
}
|
||||||
|
|
@ -205,6 +205,14 @@
|
||||||
"equippable": false,
|
"equippable": false,
|
||||||
"equipped": true
|
"equipped": true
|
||||||
},
|
},
|
||||||
|
"valuable": {
|
||||||
|
"valuable": false,
|
||||||
|
"item-wealth": true
|
||||||
|
},
|
||||||
|
"hoarded": {
|
||||||
|
"hoarded": false,
|
||||||
|
"inHoard": true
|
||||||
|
},
|
||||||
"physical": {
|
"physical": {
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
|
|
@ -304,7 +312,7 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"item": {
|
"item": {
|
||||||
"templates": ["itemDescription", "equippable", "physical"],
|
"templates": ["itemDescription", "equippable", "physical","valuable","hoarded"],
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"formulas": {},
|
"formulas": {},
|
||||||
"output": ""
|
"output": ""
|
||||||
|
|
@ -331,9 +339,11 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"weapon": {
|
"weapon": {
|
||||||
"templates": ["itemDescription", "stats", "equippable", "physical"],
|
"templates": ["itemDescription", "stats", "equippable", "physical","valuable","hoarded"],
|
||||||
"special": false,
|
"special": false,
|
||||||
"ranged": false,
|
"ranged": false,
|
||||||
|
"valuable": false,
|
||||||
|
"hoarded": false,
|
||||||
"skillId": "",
|
"skillId": "",
|
||||||
"damageBase": "1d6",
|
"damageBase": "1d6",
|
||||||
"rolls": {
|
"rolls": {
|
||||||
|
|
@ -354,8 +364,10 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"defensiveWeapon": {
|
"defensiveWeapon": {
|
||||||
"templates": ["itemDescription", "stats", "equippable", "physical"],
|
"templates": ["itemDescription", "stats", "equippable", "physical","valuable","hoarded"],
|
||||||
"special": false,
|
"special": false,
|
||||||
|
"valuable": false,
|
||||||
|
"hoarded": false,
|
||||||
"skillId": "",
|
"skillId": "",
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"formulas": {
|
"formulas": {
|
||||||
|
|
@ -370,9 +382,11 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"armor": {
|
"armor": {
|
||||||
"templates": ["itemDescription", "stats", "equippable", "attributeMod", "physical"],
|
"templates": ["itemDescription", "stats", "equippable", "attributeMod", "physical","valuable","hoarded"],
|
||||||
"lpProtection": 0,
|
"lpProtection": 0,
|
||||||
"apProtection": 0,
|
"apProtection": 0,
|
||||||
|
"valuable": false,
|
||||||
|
"hoarded": false,
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"formulas": {},
|
"formulas": {},
|
||||||
"output": ""
|
"output": ""
|
||||||
|
|
|
||||||
|
|
@ -109,17 +109,21 @@
|
||||||
<td>{{localize "midgard5.resistanceBody"}}</td>
|
<td>{{localize "midgard5.resistanceBody"}}</td>
|
||||||
<td class="fixed-value">{{data.calc.stats.resistanceBody.value}}</td>
|
<td class="fixed-value">{{data.calc.stats.resistanceBody.value}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>{{localize "midgard5.resistanceMind"}}</td>
|
|
||||||
<td class="fixed-value">{{data.calc.stats.resistanceMind.value}}</td>
|
|
||||||
<td>{{localize "midgard5.resistanceBody"}}</td>
|
|
||||||
<td class="fixed-value">{{data.calc.stats.resistanceBody.value}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{localize "midgard5.movementRange"}}</td>
|
<td>{{localize "midgard5.movementRange"}}</td>
|
||||||
<td class="fixed-value">{{data.calc.stats.movement.value}}</td>
|
<td class="fixed-value">{{data.calc.stats.movement.value}}</td>
|
||||||
<td>{{localize "midgard5.actor-git-long"}}</td>
|
{{#if (eq data.info.race "Zwerg")}}
|
||||||
<td class="fixed-value">{{data.calc.stats.poisonResistance.value}}</td>
|
<td>{{localize "midgard5.hoard"}}</td>
|
||||||
|
<td class="fixed-value">{{data.calc.stats.hoard}}</td>
|
||||||
|
{{/if}}
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
{{#if (eq data.info.race "Zwerg")}}
|
||||||
|
<td>{{localize "midgard5.hoardMin"}}</td>
|
||||||
|
<td class="fixed-value">{{data.calc.stats.hoardMin}}</td>
|
||||||
|
<td>{{localize "midgard5.hoard-next"}}</td>
|
||||||
|
<td class="fixed-value">{{data.calc.stats.hoardNext}}</td>
|
||||||
|
{{/if}}
|
||||||
</tr>
|
</tr>
|
||||||
<tr height = 10px></tr>
|
<tr height = 10px></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,25 @@
|
||||||
<table>
|
<table>
|
||||||
<thead class="theader">
|
<thead class="theader">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th class="title" style="text-align: center">{{localize "midgard5.currency-wealth"}}</th>
|
||||||
<th class="title" style="text-align: center">{{localize "midgard5.currency-gold"}}</th>
|
<th class="title" style="text-align: center">{{localize "midgard5.currency-gold"}}</th>
|
||||||
<th class="title" style="text-align: center">{{localize "midgard5.currency-silver"}}</th>
|
<th class="title" style="text-align: center">{{localize "midgard5.currency-silver"}}</th>
|
||||||
<th class="title" style="text-align: center">{{localize "midgard5.currency-copper"}}</th>
|
<th class="title" style="text-align: center">{{localize "midgard5.currency-copper"}}</th>
|
||||||
|
{{#if (eq data.info.race "Zwerg")}}
|
||||||
|
<th class="title" style="text-align: center">{{localize "midgard5.hoard"}}</th>
|
||||||
|
{{/if}}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr height = 10px></tr>
|
<tr height = 10px></tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="fixed-value"><input type="number" name="data.info.wealth" value="{{data.calc.stats.wealth}}"></td>
|
||||||
<td class="fixed-value"><input type="number" name="data.info.gold" value="{{data.info.gold}}"></td>
|
<td class="fixed-value"><input type="number" name="data.info.gold" value="{{data.info.gold}}"></td>
|
||||||
<td class="fixed-value"><input type="number" name="data.info.silver" value="{{data.info.silver}}"></td>
|
<td class="fixed-value"><input type="number" name="data.info.silver" value="{{data.info.silver}}"></td>
|
||||||
<td class="fixed-value"><input type="number" name="data.info.copper" value="{{data.info.copper}}"></td>
|
<td class="fixed-value"><input type="number" name="data.info.copper" value="{{data.info.copper}}"></td>
|
||||||
|
{{#if (eq data.info.race "Zwerg")}}
|
||||||
|
<td class="fixed-value"><input type="number" name="midgard5.hoard" value="{{data.calc.stats.hoard}}"></td>
|
||||||
|
{{/if}}
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,34 @@
|
||||||
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}} />
|
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}} />
|
||||||
<label for="data.magic">{{localize "midgard5.magic"}}</label>
|
<label for="data.magic">{{localize "midgard5.magic"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{{#if (eq item.parent.system.info.race "Zwerg")}}
|
||||||
|
<span>
|
||||||
|
<input id="data.hoarded" type="checkbox" name="data.hoarded" {{checked data.hoarded}}>
|
||||||
|
<label for="data.hoarded">{{localize "midgard5.hoarded"}}</label>
|
||||||
|
</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>{{localize "midgard5.item-value"}}</span>
|
||||||
|
<input name="data.value" type="number" value="{{data.value}}" data-dtype="Number" />
|
||||||
|
<select class="select-mod-operation" name="data.currency" data-type="String">
|
||||||
|
{{#select data.currency}}
|
||||||
|
<option value=""></option>
|
||||||
|
<option value="copper">{{localize "midgard5.currency-copper"}}</option>
|
||||||
|
<option value="silver">{{localize "midgard5.currency-silver"}}</option>
|
||||||
|
<option value="gold">{{localize "midgard5.currency-gold"}}</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=4>
|
<td colspan="4">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span>
|
<span>
|
||||||
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
||||||
|
|
@ -18,6 +18,34 @@
|
||||||
<input id="data.special" type="checkbox" name="data.special" {{checked data.special}}>
|
<input id="data.special" type="checkbox" name="data.special" {{checked data.special}}>
|
||||||
<label for="data.special">{{localize "midgard5.special"}}</label>
|
<label for="data.special">{{localize "midgard5.special"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{{#if (eq item.parent.system.info.race "Zwerg")}}
|
||||||
|
<span>
|
||||||
|
<input id="data.hoarded" type="checkbox" name="data.hoarded" {{checked data.hoarded}}>
|
||||||
|
<label for="data.hoarded">{{localize "midgard5.hoarded"}}</label>
|
||||||
|
</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>{{localize "midgard5.item-value"}}</span>
|
||||||
|
<input name="data.value" type="number" value="{{data.value}}" data-dtype="Number" />
|
||||||
|
<select class="select-mod-operation" name="data.currency" data-type="String">
|
||||||
|
{{#select data.currency}}
|
||||||
|
<option value=""></option>
|
||||||
|
<option value="copper">{{localize "midgard5.currency-copper"}}</option>
|
||||||
|
<option value="silver">{{localize "midgard5.currency-silver"}}</option>
|
||||||
|
<option value="gold">{{localize "midgard5.currency-gold"}}</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="sheet-content">
|
<div class="sheet-content">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=4>
|
<td colspan="4">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span>
|
<span>
|
||||||
<input id="data.equipped" type="checkbox" name="data.equipped" {{checked data.equipped}}>
|
<input id="data.equipped" type="checkbox" name="data.equipped" {{checked data.equipped}}>
|
||||||
|
|
@ -16,6 +16,17 @@
|
||||||
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
||||||
<label for="data.magic">{{localize "midgard5.magic"}}</label>
|
<label for="data.magic">{{localize "midgard5.magic"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
<span>
|
||||||
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{{#if (eq item.parent.system.info.race "Zwerg")}}
|
||||||
|
<span>
|
||||||
|
<input id="data.hoarded" type="checkbox" name="data.hoarded" {{checked data.hoarded}}>
|
||||||
|
<label for="data.hoarded">{{localize "midgard5.hoarded"}}</label>
|
||||||
|
</span>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -28,7 +39,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td colspan="4">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span>{{localize "midgard5.item-value"}}</span>
|
<span>{{localize "midgard5.item-value"}}</span>
|
||||||
<input name="data.value" type="number" value="{{data.value}}" data-dtype="Number" />
|
<input name="data.value" type="number" value="{{data.value}}" data-dtype="Number" />
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<td>{{localize "midgard5.skill"}}</td>
|
<td>{{localize "midgard5.skill"}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{!-- {{#if data.calc.skills.general}} --}}
|
{{#if data.calc.generalSkills}}
|
||||||
<select class="select-skill" name="data.skillId" data-type="String">
|
<select class="select-skill" name="data.skillId" data-type="String">
|
||||||
{{#select data.skillId}}
|
{{#select data.skillId}}
|
||||||
<option value="">{{localize "midgard5.no-skill"}}</option>
|
<option value="">{{localize "midgard5.no-skill"}}</option>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=4>
|
<td colspan="5">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span>
|
<span>
|
||||||
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
<input id="data.magic" type="checkbox" name="data.magic" {{checked data.magic}}>
|
||||||
|
|
@ -23,6 +23,34 @@
|
||||||
<input id="data.special" type="checkbox" name="data.special" {{checked data.special}}>
|
<input id="data.special" type="checkbox" name="data.special" {{checked data.special}}>
|
||||||
<label for="data.special">{{localize "midgard5.special"}}</label>
|
<label for="data.special">{{localize "midgard5.special"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{{#if (eq item.parent.system.info.race "Zwerg")}}
|
||||||
|
<span>
|
||||||
|
<input id="data.hoarded" type="checkbox" name="data.hoarded" {{checked data.hoarded}}>
|
||||||
|
<label for="data.hoarded">{{localize "midgard5.hoarded"}}</label>
|
||||||
|
</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>{{localize "midgard5.item-value"}}</span>
|
||||||
|
<input name="data.value" type="number" value="{{data.value}}" data-dtype="Number" />
|
||||||
|
<select class="select-mod-operation" name="data.currency" data-type="String">
|
||||||
|
{{#select data.currency}}
|
||||||
|
<option value=""></option>
|
||||||
|
<option value="copper">{{localize "midgard5.currency-copper"}}</option>
|
||||||
|
<option value="silver">{{localize "midgard5.currency-silver"}}</option>
|
||||||
|
<option value="gold">{{localize "midgard5.currency-gold"}}</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue