Initial import with skill sheet worning
This commit is contained in:
@@ -9,11 +9,11 @@ import { SYSTEM } from "../config/system.mjs"
|
||||
*/
|
||||
export default class LethalFantasyManager extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||
static DEFAULT_OPTIONS = {
|
||||
id: "tenebris-application-manager",
|
||||
id: "lethalfantasy-application-manager",
|
||||
tag: "form",
|
||||
window: {
|
||||
contentClasses: ["tenebris-manager"],
|
||||
title: "TENEBRIS.Manager.title",
|
||||
contentClasses: ["lethalfantasy-manager"],
|
||||
title: "LETHALFANTASY.Manager.title",
|
||||
resizable: true,
|
||||
},
|
||||
position: {
|
||||
@@ -82,22 +82,22 @@ export default class LethalFantasyManager extends HandlebarsApplicationMixin(App
|
||||
}
|
||||
|
||||
static async askRollForAll(type, value, title = null, avantage = null) {
|
||||
let label = game.i18n.localize(`TENEBRIS.Manager.${value}`)
|
||||
let text = game.i18n.format("TENEBRIS.Chat.askRollForAll", { value: label })
|
||||
let label = game.i18n.localize(`LETHALFANTASY.Manager.${value}`)
|
||||
let text = game.i18n.format("LETHALFANTASY.Chat.askRollForAll", { value: label })
|
||||
|
||||
if (avantage) {
|
||||
switch (avantage) {
|
||||
case "++":
|
||||
text += ` ${game.i18n.localize("TENEBRIS.Roll.doubleAvantage")}`
|
||||
text += ` ${game.i18n.localize("LETHALFANTASY.Roll.doubleAvantage")}`
|
||||
break
|
||||
case "+":
|
||||
text += ` ${game.i18n.localize("TENEBRIS.Roll.avantage")}`
|
||||
text += ` ${game.i18n.localize("LETHALFANTASY.Roll.avantage")}`
|
||||
break
|
||||
case "-":
|
||||
text += ` ${game.i18n.localize("TENEBRIS.Roll.desavantage")}`
|
||||
text += ` ${game.i18n.localize("LETHALFANTASY.Roll.desavantage")}`
|
||||
break
|
||||
case "--":
|
||||
text += ` ${game.i18n.localize("TENEBRIS.Roll.doubleDesavantage")}`
|
||||
text += ` ${game.i18n.localize("LETHALFANTASY.Roll.doubleDesavantage")}`
|
||||
break
|
||||
default:
|
||||
break
|
||||
@@ -118,8 +118,8 @@ export default class LethalFantasyManager extends HandlebarsApplicationMixin(App
|
||||
}
|
||||
|
||||
static async askRollForOne(type, value, recipient, name) {
|
||||
let label = game.i18n.localize(`TENEBRIS.Manager.${value}`)
|
||||
const text = game.i18n.format("TENEBRIS.Chat.askRollForOne", { value: label, name: name })
|
||||
let label = game.i18n.localize(`LETHALFANTASY.Manager.${value}`)
|
||||
const text = game.i18n.format("LETHALFANTASY.Chat.askRollForOne", { value: label, name: name })
|
||||
|
||||
game.socket.emit(`system.${SYSTEM.id}`, {
|
||||
action: "askRoll",
|
||||
|
||||
Reference in New Issue
Block a user