Skip to content

Commit 2bbe192

Browse files
committed
11.08 changes
1 parent 2ec523c commit 2bbe192

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ Fixed issue deleting rewards.
9898

9999
Fixed type in the placeholder text for Folder name when creating a new List Folder.
100100

101+
Fixed issue with NPC chat bubble selection clearing on opening a second time.
102+
103+
Fixed issue with the tooltip for saving the editor
104+
105+
Fixed various warning for using deprecated functions
106+
101107
# Version 11.05
102108

103109
Fixed issue with playing a slideshow when a scene loads.

apps/enhanced-journal.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,7 @@ export class EnhancedJournal extends Application {
10681068
if (entity instanceof Actor)
10691069
return 'actor';
10701070

1071-
let flags = entity.data?.flags;
1072-
let type = (flags != undefined ? flags['monks-enhanced-journal']?.type : null) || 'journalentry';
1071+
let type = getProperty(entity, "flags.monks-enhanced-journal.type") || 'journalentry';
10731072

10741073
return type;
10751074
}

lang/en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"MonksEnhancedJournal.customise-pages.name": "Customise Pages",
8282
"MonksEnhancedJournal.customise-pages.hint": "Customise the pages that are shown in the journal",
8383
"MonksEnhancedJournal.use-generic-price.name": "Use Original Price",
84-
"MonksEnhancedJournal.use-generic-price.hint": "After purchasing, set price of purchased item to the original non-adjusted price",
84+
"MonksEnhancedJournal.use-generic-price.hint": "After purchasing, set price of purchased item back to the original non-adjusted price. I would not recommend this. USE AT YOUR OWN RISK!",
8585

8686
"MonksEnhancedJournal.SlideConfiguration": "Slide Configuration",
8787
"MonksEnhancedJournal.DCConfiguration": "DC Configuration",

module.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Monk's Enhanced Journal",
33
"description": "Treat the journal like it's going to be popped out and used as a digital guide book. Add extra information to summarize an encounter. Show summaries of people and places. Allow for bookmarking of commonly used pages",
4-
"version": "11.07.3",
4+
"version": "11.08",
55
"authors": [
66
{
77
"name": "IronMonk",
@@ -95,7 +95,7 @@
9595
"css/apsjournal.css"
9696
],
9797
"url": "https://github.com/ironmonk88/monks-enhanced-journal",
98-
"download": "https://github.com/ironmonk88/monks-enhanced-journal/archive/11.07.3.zip",
98+
"download": "https://github.com/ironmonk88/monks-enhanced-journal/archive/11.08.zip",
9999
"manifest": "https://github.com/ironmonk88/monks-enhanced-journal/releases/latest/download/module.json",
100100
"bugs": "https://github.com/ironmonk88/monks-enhanced-journal/issues",
101101
"allowBugReporter": true,

monks-enhanced-journal.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ export class MonksEnhancedJournal {
10301030
let that = this;
10311031

10321032
plugins.menu = APSJMenu.build(ProseMirror.defaultSchema, {
1033-
destroyOnSave: true,
1033+
destroyOnSave: false,
10341034
onSave: function () {
10351035
that.saveEditor(...args);
10361036
}
@@ -3616,7 +3616,7 @@ export class MonksEnhancedJournal {
36163616
if (!actoritem)
36173617
continue;
36183618

3619-
data.maxquantity = getValue(actoritem.data, quantityname());
3619+
data.maxquantity = getValue(actoritem, quantityname());
36203620
if (data.maxquantity < purchaseQty) {
36213621
purchaseQty = Math.min(data.maxquantity, purchaseQty);
36223622
ui.notifications.warn(format("MonksEnhancedJournal.msg.NoteEnoughRemains", { quantity: purchaseQty }));
@@ -4529,7 +4529,7 @@ Hooks.on('renderNoteConfig', (app, html, data) => {
45294529

45304530
Hooks.on("renderTokenConfig", (app, html, data) => {
45314531
if (game.user.isGM) {
4532-
let ctrl = $('<input>').attr('type', 'text').attr('name', 'flags.monks-enhanced-journal.chatbubble');
4532+
let ctrl = $('<input>').attr('type', 'text').attr('name', 'flags.monks-enhanced-journal.chatbubble').val(getProperty(data, 'object.flags.monks-enhanced-journal.chatbubble'));
45334533
let group = $('<div>').addClass('form-group')
45344534
.append($('<label>').html(i18n("MonksEnhancedJournal.TokenDialogJournalEntry")))
45354535
.append(ctrl);

0 commit comments

Comments
 (0)