ENH: Treasure localization
parent
b253bea1c7
commit
3b394323a9
|
@ -36,6 +36,8 @@
|
||||||
"OSE.roll.type.above": "Above",
|
"OSE.roll.type.above": "Above",
|
||||||
"OSE.roll.type.below": "Below",
|
"OSE.roll.type.below": "Below",
|
||||||
|
|
||||||
|
"OSE.table.treasure.roll": "Roll Treasure",
|
||||||
|
|
||||||
"OSE.details.name": "Name",
|
"OSE.details.name": "Name",
|
||||||
"OSE.details.class": "Class",
|
"OSE.details.class": "Class",
|
||||||
"OSE.details.title": "Title",
|
"OSE.details.title": "Title",
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
"OSE.roll.type.above": "Encima",
|
"OSE.roll.type.above": "Encima",
|
||||||
"OSE.roll.type.below": "Debajo",
|
"OSE.roll.type.below": "Debajo",
|
||||||
|
|
||||||
|
"OSE.table.treasure.roll": "Roll Treasure",
|
||||||
|
|
||||||
"OSE.details.name": "Nombre",
|
"OSE.details.name": "Nombre",
|
||||||
"OSE.details.class": "Clase",
|
"OSE.details.class": "Clase",
|
||||||
"OSE.details.title": "Titulo",
|
"OSE.details.title": "Titulo",
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
"OSE.roll.type.above": "Au-Dessus",
|
"OSE.roll.type.above": "Au-Dessus",
|
||||||
"OSE.roll.type.below": "En-Dessous",
|
"OSE.roll.type.below": "En-Dessous",
|
||||||
|
|
||||||
|
"OSE.table.treasure.roll": "Trésor Aléatoire",
|
||||||
|
|
||||||
"OSE.details.name": "Nom",
|
"OSE.details.name": "Nom",
|
||||||
"OSE.details.class": "Classe",
|
"OSE.details.class": "Classe",
|
||||||
"OSE.details.title": "Titre",
|
"OSE.details.title": "Titre",
|
||||||
|
|
|
@ -262,6 +262,7 @@ export class OseItem extends Item {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Toggle default roll mode
|
// Toggle default roll mode
|
||||||
|
let rollMode = game.settings.get("core", "rollMode");
|
||||||
if (["gmroll", "blindroll"].includes(rollMode))
|
if (["gmroll", "blindroll"].includes(rollMode))
|
||||||
chatData["whisper"] = ChatMessage.getWhisperRecipients("GM");
|
chatData["whisper"] = ChatMessage.getWhisperRecipients("GM");
|
||||||
if (rollMode === "selfroll") chatData["whisper"] = [game.user._id];
|
if (rollMode === "selfroll") chatData["whisper"] = [game.user._id];
|
||||||
|
|
|
@ -21,7 +21,7 @@ export const augmentTable = (table, html, data) => {
|
||||||
html.find(".result-weight").first().text("Chance");
|
html.find(".result-weight").first().text("Chance");
|
||||||
|
|
||||||
// Replace Roll button
|
// Replace Roll button
|
||||||
const roll = `<button class="roll-treasure" type="button"><i class="fas fa-gem"></i> Roll Treasure</button>`;
|
const roll = `<button class="roll-treasure" type="button"><i class="fas fa-gem"></i> ${game.i18n.localize('OSE.table.treasure.roll')}</button>`;
|
||||||
html.find(".sheet-footer .roll").replaceWith(roll);
|
html.find(".sheet-footer .roll").replaceWith(roll);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ async function rollTreasure(table, options = {}) {
|
||||||
sound: "/systems/ose/assets/coins.mp3"
|
sound: "/systems/ose/assets/coins.mp3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let rollMode = game.settings.get("core", "rollMode");
|
||||||
if (["gmroll", "blindroll"].includes(rollMode)) chatData["whisper"] = ChatMessage.getWhisperRecipients("GM");
|
if (["gmroll", "blindroll"].includes(rollMode)) chatData["whisper"] = ChatMessage.getWhisperRecipients("GM");
|
||||||
if (rollMode === "selfroll") chatData["whisper"] = [game.user._id];
|
if (rollMode === "selfroll") chatData["whisper"] = [game.user._id];
|
||||||
if (rollMode === "blindroll") chatData["blind"] = true;
|
if (rollMode === "blindroll") chatData["blind"] = true;
|
||||||
|
|
Loading…
Reference in New Issue