Zwergenhort revised
This commit is contained in:
parent
8e3db3b223
commit
30eca09ae2
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { valueInArray } from "@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/data/validators.mjs";
|
|
||||||
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";
|
||||||
|
|
@ -375,11 +374,13 @@ export class M5Character extends Actor {
|
||||||
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
||||||
return ret === -1 ? M5Character.levelThreshold.length : ret;
|
return ret === -1 ? M5Character.levelThreshold.length : ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static hoardFromExp(exp: number): number {
|
static hoardFromExp(exp: number): number {
|
||||||
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
||||||
const hoard = Math.floor(exp / 2)
|
const hoard = Math.floor(exp / 2)
|
||||||
return hoard;
|
return hoard;
|
||||||
}
|
}
|
||||||
|
|
||||||
static hoardNextFromExp(exp: number): number {
|
static hoardNextFromExp(exp: number): number {
|
||||||
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
||||||
const currentLevel = ret === -1 ? M5Character.levelThreshold.length : ret;
|
const currentLevel = ret === -1 ? M5Character.levelThreshold.length : ret;
|
||||||
|
|
|
||||||
|
|
@ -65,9 +65,10 @@
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hoard {
|
.hoard {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: rgb(255, 230, 0);
|
color: rgb(255, 255, 0);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<td style="font-size: x-large; font-weigh: bold; text-align: center; text-align-vertical: middle;">
|
<td style="font-size: x-large; font-weigh: bold; text-align: center; text-align-vertical: middle;">
|
||||||
<div style="border: 2px solid black; border-radius: 10px; background-color: white; background-image: url('icons/commodities/currency/coins-wheat-stack-copper.webp');background-size: cover; background-position: center;">
|
<div style="border: 2px solid black; border-radius: 10px; background-color: white; background-image: url('icons/commodities/currency/coins-wheat-stack-copper.webp');background-size: cover; background-position: center;">
|
||||||
<span class="hoard">{{data.calc.stats.hoard}} GS</span><br>
|
<span class="hoard">{{data.calc.stats.hoard}} GS</span><br>
|
||||||
<span class="hoardNext">Hort für nächsten Grad: {{data.calc.stats.hoardNext}} GS</span>
|
<span class="hoardNext">Hort für nächsten Grad: <br>{{data.calc.stats.hoardNext}} GS</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue