ENH: Disable encumbrance, ability roll tags

master
U~man 2020-07-12 16:30:39 +02:00
parent 9b8dc1211d
commit 46573d0f43
7 changed files with 15 additions and 1 deletions

View File

@ -153,6 +153,7 @@
"OSE.Setting.VariableWeaponDamageHint": "Weapons have different damage dice",
"OSE.Setting.Encumbrance": "Encumbrance",
"OSE.Setting.EncumbranceHint": "Choose the way encumbrance is calculated",
"OSE.Setting.EncumbranceDisabled": "Disabled",
"OSE.Setting.EncumbranceBasic": "Basic",
"OSE.Setting.EncumbranceDetailed": "Detailed",
"OSE.Setting.MovementAuto": "Calculate Movement",

View File

@ -151,6 +151,7 @@
"OSE.Setting.VariableWeaponDamageHint": "Las armas tienen diferente dado de daño",
"OSE.Setting.Encumbrance": "Carga",
"OSE.Setting.EncumbranceHint": "Elige como se calcula la Carga",
"OSE.Setting.EncumbranceDisabled": "Disabled",
"OSE.Setting.EncumbranceBasic": "Básica",
"OSE.Setting.EncumbranceDetailed": "Detallada",
"OSE.Setting.MovementAuto": "Calcular Movimiento",

View File

@ -151,6 +151,7 @@
"OSE.Setting.VariableWeaponDamageHint": "Les Armes peuvent avoir des dégâts d'arme différents",
"OSE.Setting.Encumbrance": "Encombrement",
"OSE.Setting.EncumbranceHint": "Choisissez comment l'encombrement est calculé",
"OSE.Setting.EncumbranceDisabled": "Désactivé",
"OSE.Setting.EncumbranceBasic": "Basique",
"OSE.Setting.EncumbranceDetailed": "Detaillé",
"OSE.Setting.MovementAuto": "Calculer Déplacement",

View File

@ -104,6 +104,7 @@ export class OseActorSheetCharacter extends OseActorSheet {
}
_calculateMovement(data, weight) {
if (data.config.encumbrance == "disabled") return;
let delta = data.encumbrance.max - 1600;
if (data.config.encumbrance == "detailed") {
if (weight > data.encumbrance.max) {

View File

@ -12,6 +12,11 @@ export const OSE = {
above: "OSE.roll.type.above",
below: "OSE.roll.type.below"
},
roll_type_sign: {
result: "",
above: ">=",
below: "<="
},
saves_short: {
death: "OSE.saves.death.short",
wand: "OSE.saves.wand.short",

View File

@ -166,7 +166,11 @@ export class OseItem extends Item {
data.roll
)}`;
case "ability":
return `${formatTag(data.requirements)}${formatTag(data.roll)}`;
let roll = "";
roll += data.roll ? data.roll : "";
roll += data.rollType ? CONFIG.OSE.roll_type_sign[data.rollType] : "";
roll += data.rollTarget ? data.rollTarget : "";
return `${formatTag(data.requirements)}${formatTag(roll)}`;
}
return "";
}

View File

@ -45,6 +45,7 @@ export const registerSettings = function () {
type: String,
config: true,
choices: {
disabled: "OSE.Setting.EncumbranceDisabled",
basic: "OSE.Setting.EncumbranceBasic",
detailed: "OSE.Setting.EncumbranceDetailed",
},