Entbehrungen (#89)
Ich habe die Entbehrungswerte für Zähigkeit unter den Grundwerten abgelegt und werde die Tage noch Entbehrungseffekte und ein Macro in der Extension dafür anlegen. Die Boni für die Klassen wie zB Barbar +10 könnten wir dann da direkt mit in der jeweilige Klasse berücksichtigen. Grundsätzlich kann man das aber jetzt schonmal nutzen und der Grundwertebogen war mir zu leer ;)  Co-authored-by: Byroks <byroks@gmail.com> Reviewed-on: #89 Co-authored-by: LeFrique <lefrique@live.de> Co-committed-by: LeFrique <lefrique@live.de>
This commit was merged in pull request #89.
This commit is contained in:
@@ -13,6 +13,7 @@ export class M5Item extends Item {
|
||||
const character = actor as M5Character;
|
||||
const itemData = (this as any).system;
|
||||
const calc = itemData.calc;
|
||||
const name = (this as any).name;
|
||||
|
||||
if (itemType === "item") {
|
||||
calc.containers = null;
|
||||
@@ -45,6 +46,29 @@ export class M5Item extends Item {
|
||||
},
|
||||
];
|
||||
|
||||
// Adjust attribute Aussehen based on Athletik skill
|
||||
if (name === "Athletik") {
|
||||
itemData.mods[0] = { type: "attribute", id: "au", operation: "add100", value: Math.floor(calc.fw / 3) };
|
||||
}
|
||||
// Adjust stat Bewegungsweite based on Laufen skill
|
||||
if (name === "Laufen") {
|
||||
itemData.mods[0] = { type: "stat", id: "movement", operation: "add", value: Math.floor(calc.fw / 3) };
|
||||
}
|
||||
|
||||
// Adjust stat Kälte based on Überleben (Gebirge) skill
|
||||
if (name === "Überleben (Gebirge)") {
|
||||
itemData.mods[0] = { type: "stat", id: "deprivationCold", operation: "add", value: Math.floor(calc.fw * 5) };
|
||||
}
|
||||
|
||||
// // Adjust stat Kälte based on Überleben (Steppe) skill
|
||||
if (name === "Überleben (Steppe)") {
|
||||
itemData.mods[0] = { type: "stat", id: "deprivationHeat", operation: "add", value: Math.floor(calc.fw * 5) };
|
||||
}
|
||||
// // Adjust stat Durst & Hunger based on Robustheit skill
|
||||
if (name === "Robustheit") {
|
||||
itemData.mods[0] = { type: "stat", id: "deprivationFood", operation: "add", value: Math.floor(calc.fw * 5) };
|
||||
}
|
||||
|
||||
if (character) {
|
||||
const actorCalc = character.derivedData({
|
||||
containers: true,
|
||||
|
||||
Reference in New Issue
Block a user