Zwergenhort revised
This commit is contained in:
parent
8e3db3b223
commit
30eca09ae2
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"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 { M5Attribute, M5CharacterCalculatedData, M5ItemMod, M5ModOperation, M5ModResult, M5RollData, M5Skill, M5SkillCalculated, M5SkillLearned } from "../M5Base";
|
||||
import M5ModAggregate from "./M5ModAggregate";
|
||||
|
|
@ -375,11 +374,13 @@ export class M5Character extends Actor {
|
|||
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
||||
return ret === -1 ? M5Character.levelThreshold.length : ret;
|
||||
}
|
||||
|
||||
static hoardFromExp(exp: number): number {
|
||||
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
||||
const hoard = Math.floor(exp / 2)
|
||||
return hoard;
|
||||
}
|
||||
|
||||
static hoardNextFromExp(exp: number): number {
|
||||
const ret = M5Character.levelThreshold.findIndex((val) => val > exp);
|
||||
const currentLevel = ret === -1 ? M5Character.levelThreshold.length : ret;
|
||||
|
|
|
|||
|
|
@ -65,9 +65,10 @@
|
|||
text-align: right;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hoard {
|
||||
text-align: center;
|
||||
color: rgb(255, 230, 0);
|
||||
color: rgb(255, 255, 0);
|
||||
font-weight: bold;
|
||||
font-size: larger;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"verified": "11",
|
||||
"maximum": "11"
|
||||
},
|
||||
"authors": [{ "name": "Byroks" }],
|
||||
"authors": [{"name": "Byroks"}],
|
||||
"scripts": ["bundle.js"],
|
||||
"styles": ["bundle.css"],
|
||||
"packs": [
|
||||
|
|
@ -103,25 +103,41 @@
|
|||
"name": "Midgard 5",
|
||||
"sorting": "a",
|
||||
"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": [
|
||||
{
|
||||
"name": "Ausrüstung",
|
||||
"sorting": "a",
|
||||
"color": "#008000",
|
||||
"packs": ["ausruestung", "ruestkammer", "waffenkammer"]
|
||||
"packs": [
|
||||
"ausruestung",
|
||||
"ruestkammer",
|
||||
"waffenkammer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Effekte",
|
||||
"sorting": "a",
|
||||
"color": "#800080",
|
||||
"packs": ["kampfzustaende", "verletzungen", "zauberwirkungen"]
|
||||
"packs": [
|
||||
"kampfzustaende",
|
||||
"verletzungen",
|
||||
"zauberwirkungen"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Fähigkeiten",
|
||||
"sorting": "a",
|
||||
"color": "#800000",
|
||||
"packs": ["fertigkeiten", "kampf"]
|
||||
"packs": [
|
||||
"fertigkeiten",
|
||||
"kampf"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -137,9 +153,9 @@
|
|||
"gridUnits": "m",
|
||||
"primaryTokenAttribute": "lp",
|
||||
"secondaryTokenAttribute": "ap",
|
||||
"url": "https://git.byroks.de/Byroks/foundry-vtt-system-midgard5",
|
||||
"manifest": "https://git.byroks.de/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",
|
||||
"url": "https://github.com/Byroks/foundry-vtt-system-midgard5",
|
||||
"manifest": "https://github.com/Byroks/foundry-vtt-system-midgard5/releases/download/v2.3.1/system.json",
|
||||
"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",
|
||||
"license": "LICENSE.txt"
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<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;">
|
||||
<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>
|
||||
</td>
|
||||
{{/if}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue