Various fixes for v13
All checks were successful
Release Creation / build (release) Successful in 53s
All checks were successful
Release Creation / build (release) Successful in 53s
This commit is contained in:
@ -59,18 +59,15 @@ export default class LethalFantasyItemSheet extends HandlebarsApplicationMixin(f
|
||||
/** @override */
|
||||
async _prepareContext() {
|
||||
let context = await super._prepareContext()
|
||||
const contextLocal = {
|
||||
fields: this.document.schema.fields,
|
||||
systemFields: this.document.system.schema.fields,
|
||||
item: this.document,
|
||||
system: this.document.system,
|
||||
source: this.document.toObject(),
|
||||
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true }),
|
||||
isEditMode: this.isEditMode,
|
||||
isPlayMode: this.isPlayMode,
|
||||
isEditable: this.isEditable,
|
||||
}
|
||||
context = mergeObject(context, contextLocal)
|
||||
context.fields = this.document.schema.fields
|
||||
context.systemFields = this.document.system.schema.fields
|
||||
context.item = this.document
|
||||
context.system = this.document.system
|
||||
context.source = this.document.toObject()
|
||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||
context.isEditMode = this.isEditMode
|
||||
context.isPlayMode = this.isPlayMode
|
||||
context.isEditable = this.isEditable
|
||||
return context
|
||||
}
|
||||
|
||||
@ -97,7 +94,7 @@ export default class LethalFantasyItemSheet extends HandlebarsApplicationMixin(f
|
||||
dragover: this._onDragOver.bind(this),
|
||||
drop: this._onDrop.bind(this),
|
||||
}
|
||||
return new DragDrop(d)
|
||||
return new foundry.applications.ux.DragDrop.implementation(d)
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -19,10 +19,4 @@ export default class LethalFantasyGiftSheet extends LethalFantasyItemSheet {
|
||||
},
|
||||
}
|
||||
|
||||
/** @override */
|
||||
async _prepareContext() {
|
||||
const context = await super._prepareContext()
|
||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||
return context
|
||||
}
|
||||
}
|
||||
|
@ -60,17 +60,16 @@ export const FAVOR_CHOICES = {
|
||||
}
|
||||
|
||||
export const MOVEMENT_CHOICES = {
|
||||
"none": {label: "None (D8E)", value: "D8"},
|
||||
"walk": {label: "Walk (D10E)", value: "D10"},
|
||||
"jog": {label: "Jog (D12E)", value: "D12"},
|
||||
"run": {label: "Run (D20E)", value: "D20"},
|
||||
"incombat": {label: "In Combat (D12E)", value: "D12"}
|
||||
"none": {label: "None (D20E Disfavor)", disfavor: true, value: "2D20kl"},
|
||||
"walk": {label: "Walk (D20E Disfavor)", disfavor: true, value: "2D20kl"},
|
||||
"run": {label: "Jog/Run/Sprint (D20E Favor)", favor: true, value: "2D20kh"},
|
||||
"incombat": {label: "In Combat (D20E)", favor: false, value: "D20"}
|
||||
}
|
||||
|
||||
export const MOVE_DIRECTION_CHOICES = {
|
||||
"none": {label: "None (+0)", value: "0"},
|
||||
"away": {label: "Away (+4)", value: "+4"},
|
||||
"toward": {label: "Toward (+0)", value: "0"},
|
||||
"toward": {label: "Toward (-5)", value: "-5"},
|
||||
"lateral": {label: "Lateral (+10)", value: "+10"}
|
||||
}
|
||||
|
||||
|
@ -913,7 +913,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
}
|
||||
console.log("CTX", dialogContext)
|
||||
|
||||
const content = await renderTemplate("systems/fvtt-lethal-fantasy/templates/range-defense-dialog.hbs", dialogContext)
|
||||
const content = await foundry.applications.handlebars.renderTemplate("systems/fvtt-lethal-fantasy/templates/range-defense-dialog.hbs", dialogContext)
|
||||
|
||||
const label = game.i18n.localize("LETHALFANTASY.Label.rangeDefenseRoll")
|
||||
const rollContext = await foundry.applications.api.DialogV2.wait({
|
||||
@ -966,7 +966,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
options.D30result = rollD30.total
|
||||
|
||||
let dice = rollContext.movement
|
||||
let maxValue = Number(dice.match(/\d+$/)[0]) // Update the max value agains
|
||||
let maxValue = 20 // As per latest changes (was : Number(dice.match(/\d+$/)[0])
|
||||
let rollTotal = -1
|
||||
let diceResults = []
|
||||
let resultType
|
||||
|
Reference in New Issue
Block a user