Skip to content

Commit a39e95f

Browse files
committed
Even better 5E-OGL fix
1 parent f15d38e commit a39e95f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

GroupCheck/1.2/GroupCheck.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -156,36 +156,36 @@ var groupCheck = groupCheck || (function() {
156156
'AC' : { 'name' : 'Armor Class', 'formula' : '%AC%'}
157157
},
158158
'5E-OGL' : {
159-
'Strength Save': { 'name' : 'Strength Saving Throw', 'formula' : '[[d20 + %strength_save_bonus% + %globalsavemod% + %npc_str_save%/%npc_str_save%*(%npc_str_save% - %strength_save_bonus%)]]' },
160-
'Dexterity Save': { 'name' : 'Dexterity Saving Throw', 'formula' : '[[d20 + %dexterity_save_bonus% + %globalsavemod% + %npc_dex_save%/%npc_dex_save%*(%npc_dex_save% - %dexterity_save_bonus%)]]' },
161-
'Constitution Save': { 'name' : 'Constitution Saving Throw', 'formula' : '[[d20 + %constitution_save_bonus% + %globalsavemod% + %npc_con_save%/%npc_con_save%*(%npc_con_save% - %constitution_save_bonus%)]]' },
162-
'Intelligence Save': { 'name' : 'Intelligence Saving Throw', 'formula' : '[[d20 + %intelligence_save_bonus% + %globalsavemod% + %npc_int_save%/%npc_int_save%*(%npc_int_save% - %intelligence_save_bonus%)]]' },
163-
'Wisdom Save': { 'name' : 'Wisdom Saving Throw', 'formula' : '[[d20 + %wisdom_save_bonus% + %globalsavemod% + %npc_wis_save%/%npc_wis_save%*(%npc_wis_save% - %wisdom_save_bonus%)]]' },
164-
'Charisma Save': { 'name' : 'Charisma Saving Throw', 'formula' : '[[d20 + %charisma_save_bonus% + %globalsavemod% + %npc_cha_save%/%npc_cha_save%*(%npc_cha_save% - %charisma_save_bonus%)]]' },
159+
'Strength Save': { 'name' : 'Strength Saving Throw', 'formula' : '[[d20 + %strength_save_bonus% * {1%npc_str_save%0, 0}=10 + 0%npc_str_save% + %globalsavemod% ]]' },
160+
'Dexterity Save': { 'name' : 'Dexterity Saving Throw', 'formula' : '[[d20 + %dexterity_save_bonus% * {1%npc_dex_save%0, 0}=10 + 0%npc_dex_save% + %globalsavemod% ]]' },
161+
'Constitution Save': { 'name' : 'Constitution Saving Throw', 'formula' : '[[d20 + %constitution_save_bonus% * {1%npc_con_save%0, 0}=10 + 0%npc_con_save% + %globalsavemod% ]]' },
162+
'Intelligence Save': { 'name' : 'Intelligence Saving Throw', 'formula' : '[[d20 + %intelligence_save_bonus% * {1%npc_int_save%0, 0}=10 + 0%npc_int_save% + %globalsavemod% ]]' },
163+
'Wisdom Save': { 'name' : 'Wisdom Saving Throw', 'formula' : '[[d20 + %wisdom_save_bonus% * {1%npc_wis_save%0, 0}=10 + 0%npc_wis_save% + %globalsavemod% ]]' },
164+
'Charisma Save': { 'name' : 'Charisma Saving Throw', 'formula' : '[[d20 + %charisma_save_bonus% * {1%npc_cha_save%0, 0}=10 + 0%npc_cha_save% + %globalsavemod% ]]' },
165165
'Strength Check': { 'name' : 'Strength Check', 'formula' : '[[d20 + %strength_mod%]]' },
166166
'Dexterity Check': { 'name' : 'Dexterity Check', 'formula' : '[[d20 + %dexterity_mod%]]' },
167167
'Constitution Check': { 'name' : 'Constitution Check', 'formula' : '[[d20 + %constitution_mod%]]' },
168168
'Intelligence Check': { 'name' : 'Intelligence Check', 'formula' : '[[d20 + %intelligence_mod%]]' },
169169
'Wisdom Check': { 'name' : 'Wisdom Check', 'formula' : '[[d20 + %wisdom_mod%]]' },
170170
'Charisma Check': { 'name' : 'Charisma Check', 'formula' : '[[d20 + %charisma_mod%]]' },
171-
'Acrobatics': { 'name' : 'Dexterity (Acrobatics) Check', 'formula' : '[[d20 + %acrobatics_bonus% + %npc_acrobatics%/%npc_acrobatics%*(%npc_acrobatics%-%acrobatics_bonus%)]]' },
172-
'Animal Handling': { 'name' : 'Wisdom (Animal Handling) Check', 'formula' : '[[d20 + %animal_handling_bonus% + %npc_animal_handling%/%npc_animal_handling%*(%npc_animal_handling%-%animal_handling_bonus%)]]' },
173-
'Arcana': { 'name' : 'Intelligence (Arcana) Check', 'formula' : '[[d20 + %arcana_bonus% + %npc_arcana%/%npc_arcana%*(%npc_arcana%-%arcana_bonus%)]]' },
174-
'Athletics': { 'name' : 'Strength (Athletics) Check', 'formula' : '[[d20 + %athletics_bonus% + %npc_athletics%/%npc_athletics%*(%npc_athletics%-%athletics_bonus%)]]' },
175-
'Deception': { 'name' : 'Charisma (Deception) Check', 'formula' : '[[d20 + %deception_bonus% + %npc_deception%/%npc_deception%*(%npc_deception%-%deception_bonus%)]]' },
176-
'History': { 'name' : 'Intelligence (History) Check', 'formula' : '[[d20 + %history_bonus% + %npc_history%/%npc_history%*(%npc_history%-%history_bonus%)]]' },
177-
'Insight': { 'name' : 'Wisdom (Insight) Check', 'formula' : '[[d20 + %insight_bonus% + %npc_insight%/%npc_insight%*(%npc_insight%-%insight_bonus%)]]' },
178-
'Intimidation': { 'name' : 'Charisma (Intimidation) Check', 'formula' : '[[d20 + %intimidation_bonus% + %npc_intimidation%/%npc_intimidation%*(%npc_intimidation%-%intimidation_bonus%)]]' },
179-
'Investigation': { 'name' : 'Intelligence (Investigation) Check', 'formula' : '[[d20 + %investigation_bonus% + %npc_investigation%/%npc_investigation%*(%npc_investigation%-%investigation_bonus%)]]' },
180-
'Medicine': { 'name' : 'Wisdom (Medicine) Check', 'formula' : '[[d20 + %medicine_bonus% + %npc_medicine%/%npc_medicine%*(%npc_medicine%-%medicine_bonus%)]]' },
181-
'Nature': { 'name' : 'Intelligence (Nature) Check', 'formula' : '[[d20 + %nature_bonus% + %npc_nature%/%npc_nature%*(%npc_nature%-%nature_bonus%)]]' },
182-
'Perception': { 'name' : 'Wisdom (Perception) Check', 'formula' : '[[d20 + %perception_bonus% + %npc_perception%/%npc_perception%*(%npc_perception%-%perception_bonus%)]]' },
183-
'Performance': { 'name' : 'Charisma (Performance) Check', 'formula' : '[[d20 + %performance_bonus% + %npc_performance%/%npc_performance%*(%npc_performance%-%performance_bonus%)]]' },
184-
'Persuasion': { 'name' : 'Charisma (Persuasion) Check', 'formula' : '[[d20 + %athletics_bonus% + %npc_athletics%/%npc_athletics%*(%npc_athletics%-%athletics_bonus%)]]' },
185-
'Religion': { 'name' : 'Intelligence (Religion) Check', 'formula' : '[[d20 + %religion_bonus% + %npc_religion%/%npc_religion%*(%npc_religion%-%religion_bonus%)]]' },
186-
'Sleight of Hand': { 'name' : 'Dexterity (Sleight of Hand) Check', 'formula' : '[[d20 + %sleight_of_hand_bonus% + %npc_sleight_of_hand%/%npc_sleight_of_hand%*(%npc_sleight_of_hand%-%sleight_of_hand_bonus%)]]' },
187-
'Stealth': { 'name' : 'Dexterity (Stealth) Check', 'formula' : '[[d20 + %stealth_bonus% + %npc_stealth%/%npc_stealth%*(%npc_stealth%-%stealth_bonus%)]]' },
188-
'Survival': { 'name' : 'Wisdom (Survival) Check', 'formula' : '[[d20 + %survival_bonus% + %npc_survival%/%npc_survival%*(%npc_survival%-%survival_bonus%)]]' },
171+
'Acrobatics': { 'name' : 'Dexterity (Acrobatics) Check', 'formula' : '[[d20 + %acrobatics_bonus% * {1%npc_acrobatics%0, 0}=10 + 0%npc_acrobatics%]]' },
172+
'Animal Handling': { 'name' : 'Wisdom (Animal Handling) Check', 'formula' : '[[d20 + %animal_handling_bonus% * {1%npc_animal_handling%0, 0}=10 + 0%npc_animal_handling%]]' },
173+
'Arcana': { 'name' : 'Intelligence (Arcana) Check', 'formula' : '[[d20 + %arcana_bonus% * {1%npc_arcana%0, 0}=10 + 0%npc_arcana%]]' },
174+
'Athletics': { 'name' : 'Strength (Athletics) Check', 'formula' : '[[d20 + %athletics_bonus% * {1%npc_athletics%0, 0}=10 + 0%npc_athletics%]]' },
175+
'Deception': { 'name' : 'Charisma (Deception) Check', 'formula' : '[[d20 + %deception_bonus% * {1%npc_deception%0, 0}=10 + 0%npc_deception%]]' },
176+
'History': { 'name' : 'Intelligence (History) Check', 'formula' : '[[d20 + %history_bonus% * {1%npc_history%0, 0}=10 + 0%npc_history%]]' },
177+
'Insight': { 'name' : 'Wisdom (Insight) Check', 'formula' : '[[d20 + %insight_bonus% * {1%npc_insight%0, 0}=10 + 0%npc_insight%]]' },
178+
'Intimidation': { 'name' : 'Charisma (Intimidation) Check', 'formula' : '[[d20 + %intimidation_bonus% * {1%npc_intimidation%0, 0}=10 + 0%npc_intimidation%]]' },
179+
'Investigation': { 'name' : 'Intelligence (Investigation) Check', 'formula' : '[[d20 + %investigation_bonus% * {1%npc_investigation%0, 0}=10 + 0%npc_investigation%]]' },
180+
'Medicine': { 'name' : 'Wisdom (Medicine) Check', 'formula' : '[[d20 + %medicine_bonus% * {1%npc_medicine%0, 0}=10 + 0%npc_medicine%]]' },
181+
'Nature': { 'name' : 'Intelligence (Nature) Check', 'formula' : '[[d20 + %nature_bonus% * {1%npc_nature%0, 0}=10 + 0%npc_nature%]]' },
182+
'Perception': { 'name' : 'Wisdom (Perception) Check', 'formula' : '[[d20 + %perception_bonus% * {1%npc_perception%0, 0}=10 + 0%npc_perception%]]' },
183+
'Performance': { 'name' : 'Charisma (Performance) Check', 'formula' : '[[d20 + %performance_bonus% * {1%npc_performance%0, 0}=10 + 0%npc_performance%]]' },
184+
'Persuasion': { 'name' : 'Charisma (Persuasion) Check', 'formula' : '[[d20 + %persuasion_bonus% * {1%npc_persuasion%0, 0}=10 + 0%npc_persuasion%]]' },
185+
'Religion': { 'name' : 'Intelligence (Religion) Check', 'formula' : '[[d20 + %religion_bonus% * {1%npc_religion%0, 0}=10 + 0%npc_religion%]]' },
186+
'Sleight of Hand': { 'name' : 'Dexterity (Sleight of Hand) Check', 'formula' : '[[d20 + %sleight_of_hand_bonus% * {1%npc_sleight_of_hand%0, 0}=10 + 0%npc_sleight_of_hand%]]' },
187+
'Stealth': { 'name' : 'Dexterity (Stealth) Check', 'formula' : '[[d20 + %stealth_bonus% * {1%npc_stealth%0, 0}=10 + 0%npc_stealth%]]' },
188+
'Survival': { 'name' : 'Wisdom (Survival) Check', 'formula' : '[[d20 + %survival_bonus% * {1%npc_survival%0, 0}=10 + 0%npc_survival%]]' },
189189
'AC' : { 'name' : 'Armor Class', 'formula' : '%AC%' }
190190
},
191191
'3.5' : {

0 commit comments

Comments
 (0)