ENH: Feedback
- Added encounter movement to token data - Use signs for ability roll types - Fixed roll mode on item rollmaster
parent
3b394323a9
commit
8f0bf48d19
|
@ -32,9 +32,6 @@
|
||||||
"OSE.roll.exploration": "{exploration} test",
|
"OSE.roll.exploration": "{exploration} test",
|
||||||
"OSE.roll.details.exploration": "Roll 1d6 <= {expl} for success",
|
"OSE.roll.details.exploration": "Roll 1d6 <= {expl} for success",
|
||||||
"OSE.roll.reaction": "Reaction roll",
|
"OSE.roll.reaction": "Reaction roll",
|
||||||
"OSE.roll.type.result": "Result",
|
|
||||||
"OSE.roll.type.above": "Above",
|
|
||||||
"OSE.roll.type.below": "Below",
|
|
||||||
|
|
||||||
"OSE.table.treasure.roll": "Roll Treasure",
|
"OSE.table.treasure.roll": "Roll Treasure",
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@
|
||||||
"OSE.roll.exploration": "Prueba de {exploration}",
|
"OSE.roll.exploration": "Prueba de {exploration}",
|
||||||
"OSE.roll.details.exploration": "Tirar 1d6 <= {expl} para éxito",
|
"OSE.roll.details.exploration": "Tirar 1d6 <= {expl} para éxito",
|
||||||
"OSE.roll.reaction": "Tirada de Reacción",
|
"OSE.roll.reaction": "Tirada de Reacción",
|
||||||
"OSE.roll.type.result": "Resultado",
|
|
||||||
"OSE.roll.type.above": "Encima",
|
|
||||||
"OSE.roll.type.below": "Debajo",
|
|
||||||
|
|
||||||
"OSE.table.treasure.roll": "Roll Treasure",
|
"OSE.table.treasure.roll": "Roll Treasure",
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@
|
||||||
"OSE.roll.exploration": "Test de {exploration}",
|
"OSE.roll.exploration": "Test de {exploration}",
|
||||||
"OSE.roll.details.exploration": "Lancez 1d6 <= {expl} pour réussir",
|
"OSE.roll.details.exploration": "Lancez 1d6 <= {expl} pour réussir",
|
||||||
"OSE.roll.reaction": "Jet de Réaction",
|
"OSE.roll.reaction": "Jet de Réaction",
|
||||||
"OSE.roll.type.result": "Resultat",
|
|
||||||
"OSE.roll.type.above": "Au-Dessus",
|
|
||||||
"OSE.roll.type.below": "En-Dessous",
|
|
||||||
|
|
||||||
"OSE.table.treasure.roll": "Trésor Aléatoire",
|
"OSE.table.treasure.roll": "Trésor Aléatoire",
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ export class OseActor extends Actor {
|
||||||
} else {
|
} else {
|
||||||
data.initiative.value = 0;
|
data.initiative.value = 0;
|
||||||
}
|
}
|
||||||
|
data.movement.encounter = data.movement.base / 3;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Socket Listeners and Handlers
|
/* Socket Listeners and Handlers
|
||||||
|
@ -454,6 +455,7 @@ export class OseActor extends Actor {
|
||||||
const data = this.data.data;
|
const data = this.data.data;
|
||||||
|
|
||||||
const standard = {
|
const standard = {
|
||||||
|
0: -3,
|
||||||
3: -3,
|
3: -3,
|
||||||
4: -2,
|
4: -2,
|
||||||
6: -1,
|
6: -1,
|
||||||
|
@ -488,6 +490,7 @@ export class OseActor extends Actor {
|
||||||
);
|
);
|
||||||
|
|
||||||
const capped = {
|
const capped = {
|
||||||
|
0: -2,
|
||||||
3: -2,
|
3: -2,
|
||||||
4: -1,
|
4: -1,
|
||||||
6: -1,
|
6: -1,
|
||||||
|
@ -508,6 +511,7 @@ export class OseActor extends Actor {
|
||||||
data.scores.cha.loyalty = data.scores.cha.mod + 7;
|
data.scores.cha.loyalty = data.scores.cha.mod + 7;
|
||||||
|
|
||||||
const od = {
|
const od = {
|
||||||
|
0: 0,
|
||||||
3: 1,
|
3: 1,
|
||||||
9: 2,
|
9: 2,
|
||||||
13: 3,
|
13: 3,
|
||||||
|
@ -520,6 +524,7 @@ export class OseActor extends Actor {
|
||||||
);
|
);
|
||||||
|
|
||||||
const literacy = {
|
const literacy = {
|
||||||
|
0: "",
|
||||||
3: "OSE.Illiterate",
|
3: "OSE.Illiterate",
|
||||||
6: "OSE.LiteracyBasic",
|
6: "OSE.LiteracyBasic",
|
||||||
9: "OSE.Literate",
|
9: "OSE.Literate",
|
||||||
|
@ -530,6 +535,7 @@ export class OseActor extends Actor {
|
||||||
);
|
);
|
||||||
|
|
||||||
const spoken = {
|
const spoken = {
|
||||||
|
0: 0,
|
||||||
3: 0,
|
3: 0,
|
||||||
13: 2,
|
13: 2,
|
||||||
16: 3,
|
16: 3,
|
||||||
|
|
|
@ -41,7 +41,6 @@ export class OseActorSheetMonster extends OseActorSheet {
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
data.config.morale = game.settings.get("ose", "morale");
|
data.config.morale = game.settings.get("ose", "morale");
|
||||||
console.log(data);
|
|
||||||
data.data.details.treasure.link = TextEditor.enrichHTML(data.data.details.treasure.table);
|
data.data.details.treasure.link = TextEditor.enrichHTML(data.data.details.treasure.table);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,14 +8,9 @@ export const OSE = {
|
||||||
cha: "OSE.scores.cha.long",
|
cha: "OSE.scores.cha.long",
|
||||||
},
|
},
|
||||||
roll_type: {
|
roll_type: {
|
||||||
result: "OSE.roll.type.result",
|
result: "=",
|
||||||
above: "OSE.roll.type.above",
|
above: "≥",
|
||||||
below: "OSE.roll.type.below"
|
below: "≤"
|
||||||
},
|
|
||||||
roll_type_sign: {
|
|
||||||
result: "",
|
|
||||||
above: ">=",
|
|
||||||
below: "<="
|
|
||||||
},
|
},
|
||||||
saves_short: {
|
saves_short: {
|
||||||
death: "OSE.saves.death.short",
|
death: "OSE.saves.death.short",
|
||||||
|
|
|
@ -168,7 +168,7 @@ export class OseItem extends Item {
|
||||||
case "ability":
|
case "ability":
|
||||||
let roll = "";
|
let roll = "";
|
||||||
roll += data.roll ? data.roll : "";
|
roll += data.roll ? data.roll : "";
|
||||||
roll += data.rollType ? CONFIG.OSE.roll_type_sign[data.rollType] : "";
|
roll += data.rollType ? CONFIG.OSE.roll_type[data.rollType] : "";
|
||||||
roll += data.rollTarget ? data.rollTarget : "";
|
roll += data.rollTarget ? data.rollTarget : "";
|
||||||
return `${formatTag(data.requirements)}${formatTag(roll)}`;
|
return `${formatTag(data.requirements)}${formatTag(roll)}`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ Hooks.once("init", async function () {
|
||||||
*/
|
*/
|
||||||
Hooks.once("setup", function () {
|
Hooks.once("setup", function () {
|
||||||
// Localize CONFIG objects once up-front
|
// Localize CONFIG objects once up-front
|
||||||
const toLocalize = ["saves_short", "saves_long", "scores", "armor", "colors", "roll_type", "tags"];
|
const toLocalize = ["saves_short", "saves_long", "scores", "armor", "colors", "tags"];
|
||||||
for (let o of toLocalize) {
|
for (let o of toLocalize) {
|
||||||
CONFIG.OSE[o] = Object.entries(CONFIG.OSE[o]).reduce((obj, e) => {
|
CONFIG.OSE[o] = Object.entries(CONFIG.OSE[o]).reduce((obj, e) => {
|
||||||
obj[e[0]] = game.i18n.localize(e[1]);
|
obj[e[0]] = game.i18n.localize(e[1]);
|
||||||
|
|
|
@ -15,12 +15,10 @@
|
||||||
"max": 20
|
"max": 20
|
||||||
},
|
},
|
||||||
"ac": {
|
"ac": {
|
||||||
"value": 0,
|
"value": 0
|
||||||
"mod": 0
|
|
||||||
},
|
},
|
||||||
"aac": {
|
"aac": {
|
||||||
"value": 0,
|
"value": 0
|
||||||
"mod": 0
|
|
||||||
},
|
},
|
||||||
"thac0": {
|
"thac0": {
|
||||||
"value": 19,
|
"value": 19,
|
||||||
|
@ -48,8 +46,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"movement": {
|
"movement": {
|
||||||
"base": 120,
|
"base": 120
|
||||||
"value": ""
|
|
||||||
},
|
},
|
||||||
"initiative": {
|
"initiative": {
|
||||||
"value": 0,
|
"value": 0,
|
||||||
|
@ -93,7 +90,7 @@
|
||||||
"alignment": "",
|
"alignment": "",
|
||||||
"level": 1,
|
"level": 1,
|
||||||
"xp": {
|
"xp": {
|
||||||
"next": 0,
|
"next": 2000,
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"bonus": 0
|
"bonus": 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<input type="text" name="data.roll" value="{{data.roll}}" data-dtype="String" />
|
<input type="text" name="data.roll" value="{{data.roll}}" data-dtype="String" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group block-input">
|
<div class="form-group">
|
||||||
<label>{{localize 'OSE.items.RollType'}}</label>
|
<label>{{localize 'OSE.items.RollType'}}</label>
|
||||||
<div class="form-fields">
|
<div class="form-fields">
|
||||||
<select name="data.rollType">
|
<select name="data.rollType">
|
||||||
|
|
Loading…
Reference in New Issue