Zwergenhort vorhanden, ganz oder gar nicht verborgen?
This commit is contained in:
parent
4429252752
commit
cc34a51202
|
|
@ -100,6 +100,7 @@
|
||||||
"midgard5.hoard": "aktueller Hort",
|
"midgard5.hoard": "aktueller Hort",
|
||||||
"midgard5.hoardMin": "benötigter Mindesthort",
|
"midgard5.hoardMin": "benötigter Mindesthort",
|
||||||
"midgard5.hoard-next": "Hort für nächsten Grad",
|
"midgard5.hoard-next": "Hort für nächsten Grad",
|
||||||
|
"midgard5.hoarded": "Hort",
|
||||||
|
|
||||||
"midgard5.exp-overall": "Erfahrungsschatz",
|
"midgard5.exp-overall": "Erfahrungsschatz",
|
||||||
"midgard5.exp-available": "Erfahrungspunkte",
|
"midgard5.exp-available": "Erfahrungspunkte",
|
||||||
|
|
@ -222,7 +223,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ögenswert",
|
"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",
|
||||||
|
|
|
||||||
|
|
@ -145,8 +145,8 @@ export class M5Character extends Actor {
|
||||||
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.hoardMin = M5Character.levelThreshold.at (ret.level - 1)/2;
|
||||||
ret.stats.hoardNext = M5Character.levelThreshold.at (ret.level)/2;
|
ret.stats.hoardNext = M5Character.levelThreshold.at (ret.level)/2;
|
||||||
ret.stats.wealth = data.info.gold + data.info.silver/10 + data.info.copper/100 - (data.info.race === "Zwerg" ? (ret.stats.hoardMin) : 0);
|
ret.stats.wealth = data.info.gold + data.info.silver/10 + data.info.copper/100;
|
||||||
ret.stats.hoard = ret.stats.wealth + (data.info.race === "Zwerg" ? (ret.stats.hoardMin) : 0);
|
ret.stats.hoard = 0;
|
||||||
|
|
||||||
|
|
||||||
if (!skip?.mods) {
|
if (!skip?.mods) {
|
||||||
|
|
@ -177,8 +177,11 @@ export class M5Character extends Actor {
|
||||||
label += "*";
|
label += "*";
|
||||||
};
|
};
|
||||||
if (item.system.valuable) {
|
if (item.system.valuable) {
|
||||||
label += "€";
|
label += " € ";
|
||||||
ret.stats.wealth += item.system.value || 0;
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
label += " $ ";
|
||||||
ret.stats.hoard += item.system.value || 0;
|
ret.stats.hoard += item.system.value || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -196,6 +199,7 @@ export class M5Character extends Actor {
|
||||||
label: label,
|
label: label,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
valuable: item.system?.valuable,
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
equipped: item.system?.equipped,
|
equipped: item.system?.equipped,
|
||||||
value: item.system.value || 0,
|
value: item.system.value || 0,
|
||||||
|
|
@ -262,16 +266,20 @@ export class M5Character extends Actor {
|
||||||
")";
|
")";
|
||||||
};
|
};
|
||||||
if (item.system.valuable) {
|
if (item.system.valuable) {
|
||||||
label += "€";
|
label += " € ";
|
||||||
ret.stats.wealth += item.system.value || 0;
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
label += " $ ";
|
||||||
ret.stats.hoard += item.system.value || 0;
|
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,
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
value: item.system.value || 0,
|
value: item.system.value || 0,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
};
|
};
|
||||||
|
|
@ -289,8 +297,11 @@ export class M5Character extends Actor {
|
||||||
label += "*(" + (item.system.stats.defenseBonus < 0 ? "" : "+") + item.system.stats.defenseBonus + ")";
|
label += "*(" + (item.system.stats.defenseBonus < 0 ? "" : "+") + item.system.stats.defenseBonus + ")";
|
||||||
};
|
};
|
||||||
if (item.system.valuable) {
|
if (item.system.valuable) {
|
||||||
label += "€";
|
label += " € ";
|
||||||
ret.stats.wealth += item.system.value || 0;
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
label += " $ ";
|
||||||
ret.stats.hoard += item.system.value || 0;
|
ret.stats.hoard += item.system.value || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -299,6 +310,7 @@ export class M5Character extends Actor {
|
||||||
skillId: item.system.skillId,
|
skillId: item.system.skillId,
|
||||||
magic: item.system.magic,
|
magic: item.system.magic,
|
||||||
valuable: item.system?.valuable,
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
value: item.system.value || 0,
|
value: item.system.value || 0,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
};
|
};
|
||||||
|
|
@ -316,15 +328,19 @@ export class M5Character extends Actor {
|
||||||
label += "*";
|
label += "*";
|
||||||
};
|
};
|
||||||
if (item.system.valuable) {
|
if (item.system.valuable) {
|
||||||
label += "€";
|
label += " € ";
|
||||||
ret.stats.wealth += item.system.value || 0;
|
ret.stats.wealth += item.system.value || 0;
|
||||||
|
};
|
||||||
|
if (item.system.hoarded) {
|
||||||
|
label += " $ ";
|
||||||
ret.stats.hoard += item.system.value || 0;
|
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,
|
valuable: item.system?.valuable,
|
||||||
|
hoarded: item.system?.hoarded,
|
||||||
value: item.system.value || 0,
|
value: item.system.value || 0,
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
equipped: item.system?.equipped,
|
equipped: item.system?.equipped,
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,10 @@
|
||||||
"valuable": false,
|
"valuable": false,
|
||||||
"item-wealth": true
|
"item-wealth": true
|
||||||
},
|
},
|
||||||
|
"hoarded": {
|
||||||
|
"hoarded": false,
|
||||||
|
"inHoard": true
|
||||||
|
},
|
||||||
"physical": {
|
"physical": {
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"magic": false
|
"magic": false
|
||||||
|
|
@ -301,7 +305,7 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"item": {
|
"item": {
|
||||||
"templates": ["itemDescription", "equippable", "physical","valuable"],
|
"templates": ["itemDescription", "equippable", "physical","valuable","hoarded"],
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"formulas": {},
|
"formulas": {},
|
||||||
"output": ""
|
"output": ""
|
||||||
|
|
@ -319,10 +323,11 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"weapon": {
|
"weapon": {
|
||||||
"templates": ["itemDescription", "stats", "equippable", "physical","valuable"],
|
"templates": ["itemDescription", "stats", "equippable", "physical","valuable","hoarded"],
|
||||||
"special": false,
|
"special": false,
|
||||||
"ranged": false,
|
"ranged": false,
|
||||||
"valuable": false,
|
"valuable": false,
|
||||||
|
"hoarded": false,
|
||||||
"skillId": "",
|
"skillId": "",
|
||||||
"damageBase": "1d6",
|
"damageBase": "1d6",
|
||||||
"rolls": {
|
"rolls": {
|
||||||
|
|
@ -343,9 +348,10 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"defensiveWeapon": {
|
"defensiveWeapon": {
|
||||||
"templates": ["itemDescription", "stats", "equippable", "physical","valuable"],
|
"templates": ["itemDescription", "stats", "equippable", "physical","valuable","hoarded"],
|
||||||
"special": false,
|
"special": false,
|
||||||
"valuable": false,
|
"valuable": false,
|
||||||
|
"hoarded": false,
|
||||||
"skillId": "",
|
"skillId": "",
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"formulas": {
|
"formulas": {
|
||||||
|
|
@ -360,10 +366,11 @@
|
||||||
"calc": {}
|
"calc": {}
|
||||||
},
|
},
|
||||||
"armor": {
|
"armor": {
|
||||||
"templates": ["itemDescription", "stats", "equippable", "attributeMod", "physical","valuable"],
|
"templates": ["itemDescription", "stats", "equippable", "attributeMod", "physical","valuable","hoarded"],
|
||||||
"lpProtection": 0,
|
"lpProtection": 0,
|
||||||
"apProtection": 0,
|
"apProtection": 0,
|
||||||
"valuable": false,
|
"valuable": false,
|
||||||
|
"hoarded": false,
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"formulas": {},
|
"formulas": {},
|
||||||
"output": ""
|
"output": ""
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,13 @@
|
||||||
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{{#unless (eq data.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>
|
||||||
|
{{/unless}}
|
||||||
</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}}>
|
||||||
|
|
@ -23,6 +23,13 @@
|
||||||
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{{#if (eq data.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>
|
||||||
|
|
|
||||||
|
|
@ -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}}>
|
||||||
|
|
@ -20,6 +20,13 @@
|
||||||
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{{#unless (eq data.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>
|
||||||
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -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}}>
|
||||||
|
|
@ -28,6 +28,13 @@
|
||||||
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
<input id="data.valuable" type="checkbox" name="data.valuable" {{checked data.valuable}}>
|
||||||
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
<label for="data.valuable">{{localize "midgard5.valuable"}}</label>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{{#if (eq data.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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue