mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
RolemasterUnified Official: Bugfix: Add statuspercent_max at 100
- Force statuspercent_max to be 100.
This commit is contained in:
@@ -6505,7 +6505,7 @@ Sheet Version: <span name='attr_version'></span>
|
||||
|
||||
<br>
|
||||
|
||||
Revision 3f4f65f66d31a7dd01eba8307046fe96920ab909
|
||||
Revision 24b4044016fe6b68384182bb154b2a67a5c9abb2
|
||||
|
||||
|
||||
<hr>
|
||||
@@ -18749,10 +18749,15 @@ function doVersionCheck(version, sheettype) {
|
||||
}
|
||||
|
||||
if (version == 11) {
|
||||
setAttrs({allpenalties: 0, statuspercent: 0});
|
||||
// Hoised to 13
|
||||
version = 12;
|
||||
}
|
||||
|
||||
if (version == 12) {
|
||||
setAttrs({allpenalties: 0, statuspercent: 0, statuspercent_max: 100 });
|
||||
version = 13;
|
||||
}
|
||||
|
||||
if (oldversion != version) {
|
||||
addPendingFunction(`Version update to ${version}`, () => {
|
||||
setAttrsPending({version: version});
|
||||
@@ -18760,24 +18765,6 @@ function doVersionCheck(version, sheettype) {
|
||||
}
|
||||
|
||||
checkPending();
|
||||
|
||||
addPendingFunction("Set default Token", () => {
|
||||
setDefaultToken({
|
||||
cd_bar1_l: 'hp',
|
||||
bar1_link:'hp',
|
||||
cd_bar2_l: 'pp',
|
||||
bar2_link: 'pp',
|
||||
cd_bar3_l: 'allpenalties',
|
||||
bar3_link: 'allpenalties',
|
||||
cd_bar4_l: 'aptrack',
|
||||
bar4_link: 'aptrack',
|
||||
showname: true,
|
||||
showplayers_name: true,
|
||||
width: 70,
|
||||
height: 70
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,5 +19,5 @@
|
||||
"descriptiontranslationkey": "DefaultCurrency"
|
||||
}
|
||||
],
|
||||
"version": "1756790389"
|
||||
"version": "1756874859"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# 2025-09-04
|
||||
|
||||
- Force statuspercent_max to be 100.
|
||||
|
||||
# 2025-09-02
|
||||
|
||||
- Allow Injury strings to start with "Injury: " to make pasting easier
|
||||
|
||||
Reference in New Issue
Block a user