Skip to content

Commit

Permalink
v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Saibot393 committed Sep 18, 2023
1 parent dd83590 commit 94800ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "saibot"
}
],
"version": "1.7.0",
"version": "1.7.1",
"compatibility": {
"minimum": "11",
"verified": "11"
Expand Down Expand Up @@ -42,7 +42,7 @@
"scripts/compatibility/PerceptiveCompatibility.js"
],
"url": "https://github.com/Saibot393/perceptive",
"download": "https://github.com/Saibot393/perceptive/archive/refs/tags/v1.7.0.zip",
"download": "https://github.com/Saibot393/perceptive/archive/refs/tags/v1.7.1.zip",
"manifest": "https://github.com/Saibot393/perceptive/releases/latest/download/module.json",
"readme": "https://github.com/Saibot393/perceptive/blob/main/README.md",
"changelog": "https://github.com/Saibot393/perceptive/blob/main/CHANGELOG.md",
Expand Down
9 changes: 8 additions & 1 deletion scripts/SpottingScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class SpottingManager {

static async SpotObjectsRequest(pObjectIDs, pSpotterIDs, pSceneID, pInfos) {
if (game.user.isGM) {
console.log(pObjectIDs);
if (game.settings.get(cModuleName, "GMSpotconfirmDialog")) {
SpottingManager.openSpottingDialoge(pObjectIDs, pSpotterIDs, pSceneID, pInfos);
}
Expand Down Expand Up @@ -405,10 +406,16 @@ class SpottingManager {
let vSpotables = VisionUtils.spotablesinVision();

let vPerceptionResult = pRoll.total;

console.log(vSpotables);

vSpotables = vSpotables.filter(vObject => PerceptiveFlags.getAPDCModified(vObject, vlastVisionLevel) <= vPerceptionResult);

console.log(vSpotables);

vSpotables = vSpotables.filter(vObject => !vObject?.object?.visible);
vSpotables = vSpotables.filter(vObject => (!vObject?.object?.visible || !vObject?.object?.doorControl?.visible));

console.log(vSpotables);

//VisionUtils.MaketempVisible(vSpotables);

Expand Down
1 change: 1 addition & 0 deletions scripts/settings/PerceptiveSheetSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class PerceptiveSheetSettings {
PerceptiveSheetSettings.AddHTMLOption(pHTML, {vlabel : Translate("SheetSettings."+ cStealthEffectsF +".name"),
vhint : Translate("SheetSettings."+ cStealthEffectsF +".descrp"),
vtype : "text",
vwide : true,
vvalue : PerceptiveFlags.StealthEffects(pApp.document, true),
vflagname : cStealthEffectsF
}, `div[data-tab="${cModuleName}"]`);
Expand Down

0 comments on commit 94800ae

Please sign in to comment.