Open zxaos opened 1 year ago
If you replace code after row 433 in blades-alternatie-actor-sheet.js if works.
let mule_present=0;
//look for Mule ability
// @todo - fix translation.
data.items.forEach(i => {
if (i.type === "ability" && i.name === "(C) Mule") {
mule_present = 1;
}
});
//set encumbrance level
if (mule_present) {
switch (data.data.selected_load_level){
case "BITD.Light":
data.max_load = data.data.base_max_load + 5;
break;
case "BITD.Normal":
data.max_load = data.data.base_max_load + 7;
break;
case "BITD.Heavy":
data.max_load = data.data.base_max_load + 8;
break;
default:
data.data.selected_load_level = "BITD.Normal";
data.max_load = data.data.base_max_load + 7;
break;
}
}
else {
switch (data.data.selected_load_level){
case "BITD.Light":
data.max_load = data.data.base_max_load + 3;
break;
case "BITD.Normal":
data.max_load = data.data.base_max_load + 5;
break;
case "BITD.Heavy":
data.max_load = data.data.base_max_load + 6;
break;
default:
data.data.selected_load_level = "BITD.Normal";
data.max_load = data.data.base_max_load + 5;
break;
}
}
A character that takes the cutter's "Mule" ability should have increased values for light/normal/heavy loadouts, but that changes is not reflected in the sheet
This does work in the base system sheet.