Skip to content

Commit 7a89f06

Browse files
authored
Merge pull request #14579 from nashidau/master
RolemasterUnified Official: Bugfix for spell casting using target numbers
2 parents 81676cb + f95915d commit 7a89f06

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

RolemasterUnified_Official/rolemasterunified.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6648,7 +6648,7 @@ <h3>Custom Spell List</h3>
66486648

66496649
<br>
66506650

6651-
Revision 8516d5ffdbfdf7d9a7a64394c082e563d42466d2
6651+
Revision 0a21280c59579a3ad35127b1a5ee043eeda5e5e0
66526652

66536653

66546654
<hr>
@@ -10239,7 +10239,7 @@ <h3>Custom Spell List</h3>
1023910239
if (usefixedrr === 'fixed') {
1024010240
result = spellGenerateMesssage(type,50,casterlevel);
1024110241
} else {
10242-
result = spellGenerateMesssage(type,target,casterlevel);
10242+
result = spellGenerateMesssage(type,total,casterlevel);
1024310243
}
1024410244
if (nopp) {
1024510245
ppmsg = 'No PP cost';
@@ -17710,7 +17710,8 @@ <h3>Custom Spell List</h3>
1771017710
onCheck("clicked:journaladdsave", (_) => {
1771117711
getAttrs(["togglejournaladdshow", "journaladdsessiondate",
1771217712
"journaladdingamedate", "journaladdtitle",
17713-
"journaladddescription", "journaladdxp"], (data) => {
17713+
"journaladddescription", "journaladdxp",
17714+
"xp"], (data) => {
1771417715
const rid = generateRowID();
1771517716
const entry = {}
1771617717
entry.togglejournaladdshow = "off";
@@ -17719,6 +17720,8 @@ <h3>Custom Spell List</h3>
1771917720
entry[`repeating_journalentry_${rid}_title`] = data.journaladdtitle;
1772017721
entry[`repeating_journalentry_${rid}_description`] = data.journaladddescription;
1772117722
entry[`repeating_journalentry_${rid}_xp`] = data.journaladdxp;
17723+
entry.xp = parseIntDefault(data.xp) + parseIntDefault(data.journaladdxp);
17724+
1772217725
setAttrs(entry);
1772317726
});
1772417727
});

RolemasterUnified_Official/sheet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@
9999
"description": "Generate XP from sum of XP in the journal."
100100
}
101101
],
102-
"version": "1764655954"
102+
"version": "1764747370"
103103
}

RolemasterUnified_Official/updates.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2025-12-?
2+
3+
- Add XP on journal item add with XP
4+
15
# 2025-12-02
26

37
The post thanksgiving feast release

0 commit comments

Comments
 (0)