fix for sheet & SAN, update compatible version
This commit is contained in:
+6
-1
@@ -1,6 +1,11 @@
|
||||
## Release/Patch Notes
|
||||
|
||||
### Version 1.0.2 - 2021-11-
|
||||
### Version 1.0.3 - 2022-02-04
|
||||
* Other - Update compatible version to v9
|
||||
* Fix - The new system option to hide SAN score was not also hiding Ritual proficiency, making it trivial to back-calculate the SAN score for players that know the formula for the Ritual skill.
|
||||
* Fix - In Foundry v9, seems like the sections below the nav were anchored to the bottom of the window, so as the window got bigger the section would float away from the nav leaving a big gap. Attempted to fix CSS for this.
|
||||
|
||||
### Version 1.0.2 - 2021-11-04
|
||||
* Fix - Pregen Agents were getting duplicated Unarmed Strike items added on creation.
|
||||
* Fix - Unarmed Strike item in the compendium was using 'Melee Combat' instead of 'Unarmed Combat' as its skill.
|
||||
* Enhancment - Added system option for a world to make SAN target and skill rolls hidden from non-GM players. SAN tests change to blind rolls for players who are not GM.
|
||||
|
||||
@@ -255,6 +255,7 @@ section.window-content{
|
||||
.deltagreen .sheet-body .tab,
|
||||
.deltagreen .sheet-body .tab .editor {
|
||||
height: 100%;
|
||||
flex: auto;
|
||||
}
|
||||
|
||||
.deltagreen .resource-label {
|
||||
|
||||
@@ -77,6 +77,11 @@ Hooks.once('init', async function() {
|
||||
}
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('if_not_eq', function(a, b, opts) {
|
||||
if (a != b) { return opts.fn(this); }
|
||||
return opts.inverse(this);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('if_gt', function(a, b, trueVal, falseVal) {
|
||||
if (a > b) {
|
||||
return trueVal;
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@ export async function sendPercentileTestToChat(actor, skill, target, rollMode){
|
||||
|
||||
setting = game.settings.get("deltagreen", "keepSanityPrivate");
|
||||
|
||||
if(setting === true && skill === 'SAN' && !game.user.isGM){
|
||||
if(setting === true && (skill === 'SAN' || skill === 'RITUAL') && !game.user.isGM){
|
||||
rollMode = 'blindroll';
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ export async function showModifyPercentileTestDialogue(actor, label, originalTar
|
||||
let isSanCheck = false;
|
||||
let hideSanTarget = false;
|
||||
|
||||
if(label === 'SAN'){
|
||||
if(label === 'SAN' || label === 'RITUAL'){
|
||||
|
||||
isSanCheck = true;
|
||||
|
||||
|
||||
+3
-3
@@ -7,9 +7,9 @@
|
||||
"url": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial",
|
||||
"license": "LICENSE.txt",
|
||||
"flags": {},
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"minimumCoreVersion": "0.8.6",
|
||||
"compatibleCoreVersion": "0.8.9",
|
||||
"compatibleCoreVersion": "9",
|
||||
"scripts": [],
|
||||
"esmodules": [
|
||||
"module/deltagreen.js"
|
||||
@@ -100,7 +100,7 @@
|
||||
"dependencies": [],
|
||||
"socket": false,
|
||||
"manifest": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/raw/master/system.json",
|
||||
"download": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/archive/v1.0.2.zip",
|
||||
"download": "https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/archive/v1.0.3.zip",
|
||||
"protected": false,
|
||||
"gridDistance": 1,
|
||||
"gridUnits": "m",
|
||||
|
||||
@@ -93,7 +93,9 @@
|
||||
{{!-- Skills Tab --}}
|
||||
<div class="tab skills" data-group="primary" data-tab="skills">
|
||||
<div class="grid grid-3col">
|
||||
|
||||
{{#each actor.data.data.skills as |skill key|}}
|
||||
|
||||
<div class="flexrow flex-group-center">
|
||||
<label class="{{if_gt skill.proficiency 0 'rollable' 'not-rollable'}} skill-label" data-rolltype="skill" data-roll="d100" data-target="{{skill.proficiency}}" data-label="{{localize (concat 'DG.Skills.' key)}}" for="data.skills.{{key}}.value"
|
||||
{{#if skill.proficiency}}title="{{localize 'DG.Tooltip.SkillLabel'}}"{{/if}}
|
||||
@@ -101,10 +103,32 @@
|
||||
>
|
||||
{{ localize (concat "DG.Skills." key) }}
|
||||
</label>
|
||||
<input class="percentile-skill-input" type="text" name="data.skills.{{key}}.proficiency" value="{{skill.proficiency}}" data-dtype="Number" {{#if skill.isCalculatedValue}} disabled {{/if}}/>
|
||||
<input type="checkbox" name="data.skills.{{key}}.failure" {{checked skill.failure}} data-dtype="Boolean" {{#if skill.cannotBeImprovedByFailure}} disabled {{/if}}
|
||||
title="{{localize 'DG.Tooltip.SkillFailCheckbox'}}"
|
||||
/>
|
||||
|
||||
{{#if_eq key 'ritual' }}
|
||||
|
||||
{{#if (keepSanityPrivate)}}
|
||||
<input class="percentile-skill-input" type="text" name="data.skills.{{key}}.proficiency" value="??" data-dtype="Number" {{#if skill.isCalculatedValue}} disabled {{/if}}/>
|
||||
<input type="checkbox" name="data.skills.{{key}}.failure" {{checked skill.failure}} data-dtype="Boolean" {{#if skill.cannotBeImprovedByFailure}} disabled {{/if}}
|
||||
title="{{localize 'DG.Tooltip.SkillFailCheckbox'}}"
|
||||
/>
|
||||
{{/if}}
|
||||
|
||||
{{#unless (keepSanityPrivate)}}
|
||||
<input class="percentile-skill-input" type="text" name="data.skills.{{key}}.proficiency" value="{{skill.proficiency}}" data-dtype="Number" {{#if skill.isCalculatedValue}} disabled {{/if}}/>
|
||||
<input type="checkbox" name="data.skills.{{key}}.failure" {{checked skill.failure}} data-dtype="Boolean" {{#if skill.cannotBeImprovedByFailure}} disabled {{/if}}
|
||||
title="{{localize 'DG.Tooltip.SkillFailCheckbox'}}"
|
||||
/>
|
||||
{{/unless}}
|
||||
|
||||
{{/if_eq}}
|
||||
|
||||
{{#if_not_eq key 'ritual' }}
|
||||
<input class="percentile-skill-input" type="text" name="data.skills.{{key}}.proficiency" value="{{skill.proficiency}}" data-dtype="Number" {{#if skill.isCalculatedValue}} disabled {{/if}}/>
|
||||
<input type="checkbox" name="data.skills.{{key}}.failure" {{checked skill.failure}} data-dtype="Boolean" {{#if skill.cannotBeImprovedByFailure}} disabled {{/if}}
|
||||
title="{{localize 'DG.Tooltip.SkillFailCheckbox'}}"
|
||||
/>
|
||||
{{/if_not_eq}}
|
||||
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user