@@ -42,7 +42,8 @@ class CustomSkillsForm extends FormApplication {
42
42
id : 'skills-form' ,
43
43
template : `modules/${ MODULE_NAME } /templates/skills-config.html` ,
44
44
width : 700 ,
45
- closeOnSubmit : false
45
+ closeOnSubmit : false ,
46
+ requiresReload : true
46
47
} ) ;
47
48
}
48
49
@@ -60,6 +61,8 @@ class CustomSkillsForm extends FormApplication {
60
61
return data ;
61
62
}
62
63
64
+
65
+
63
66
onReset ( ) {
64
67
this . reset = true ;
65
68
game . settings . set ( MODULE_NAME , 'settings' , { } ) ;
@@ -115,6 +118,8 @@ class CustomSkillsForm extends FormApplication {
115
118
116
119
await CustomSkills . updateActors ( newSkills , newAbilities ) ;
117
120
121
+ SettingsConfig . reloadConfirm ( { world : true } ) ;
122
+
118
123
return this . render ( ) ;
119
124
}
120
125
@@ -800,25 +805,10 @@ class CustomSkills {
800
805
abbrKey = this . getI18nKey ( a ) ;
801
806
if ( customAbilities [ a ] . applied ) {
802
807
systemAbilities [ a ] = this . getBaseAbility ( customAbilities [ a ] . applied , customAbilities [ a ] . label ) ;
803
- // systemAbilityAbbr[a] = label.slice(0, 3).toLowerCase();
804
- /*if (isFallback) {
805
- game.i18n._fallback.DND5E[abbrKey] = systemAbilityAbbr[a];
806
- } else {
807
- game.i18n.translations.DND5E[abbrKey] = systemAbilityAbbr[a];
808
- }*/
809
808
if ( window . _isDaeActive ) {
810
809
this . daeAutoFields ( a ) ;
811
810
}
812
811
} else {
813
- // not applied, we should remove it.
814
- /*if (typeof systemAbilities[a] != "undefined") {
815
- systemAbilities = this.removeKey(systemAbilities, a);
816
- }
817
- if (typeof systemAbilityAbbr[a] != "undefined") {
818
- systemAbilityAbbr = this.removeKey(systemAbilityAbbr, a);
819
- }
820
- */
821
-
822
812
// remove translation
823
813
if ( isFallback ) {
824
814
if ( typeof game ?. i18n ?. _fallback ?. DND5E != 'undefined' && typeof game ?. i18n ?. _fallback ?. DND5E [ abbrKey ] != 'undefined' ) {
@@ -868,7 +858,6 @@ class CustomSkills {
868
858
// clean leftovers on players actors
869
859
await CustomSkills . cleanActors ( ) ;
870
860
ui . notifications . info ( game . i18n . localize ( MODULE_NAME + '.updateDone' ) ) ;
871
-
872
861
return true ;
873
862
}
874
863
@@ -1064,6 +1053,7 @@ function addLabels(app, html, data) {
1064
1053
if ( hiddenAbilities [ ha ] ) {
1065
1054
if ( sheetVersion == 'dnd2' ) {
1066
1055
$ ( '.ability-scores .ability-score[data-ability ="' + ha + '"]' , current_sheet ) . addClass ( 'disabled' ) ;
1056
+ $ ( '.saves li[data-ability ="' + ha + '"]' , current_sheet ) . addClass ( 'disabled' ) ;
1067
1057
} else if ( sheetVersion == 'legacy' ) {
1068
1058
$ ( '.ability-scores .ability[data-ability ="' + ha + '"]' , current_sheet ) . addClass ( 'disabled' ) ;
1069
1059
} else if ( sheetVersion == 'tidy' ) {
0 commit comments