Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
abbandoned project
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Dec 17, 2021
1 parent 0bfaba9 commit 8e3a32f
Show file tree
Hide file tree
Showing 8 changed files with 440 additions and 497 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [0.2.12] (ABBANDONED THE PROJECT)

- Abandoned the project
- Add [CHANGELOGS & CONFLICTS](https://github.com/theripper93/libChangelogs) hooks for better management of the conflicts

## [0.2.11]

- Small fix property "isVisible" is not settable directly
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

[![Foundry Hub Endorsements](https://img.shields.io/endpoint?logoColor=white&url=https%3A%2F%2Fwww.foundryvtt-hub.com%2Fwp-json%2Fhubapi%2Fv1%2Fpackage%2Fconditional-visibility%2Fshield%2Fendorsements&style=for-the-badge)](https://www.foundryvtt-hub.com/package/conditional-visibility/)

## NOTE: If you are a javascript developer and not a typescript developer, you can just use the javascript files under the dist folder
![GitHub all releases](https://img.shields.io/github/downloads/p4535992/conditional-visibility/total?style=for-the-badge)

**Author**: Greg Ludington
## THIS MODULE IS ABBANDONED ANYONE IS FREE TO TAKE CHARGE ON THIS

Invisible Stalkers should only be seen by players that have cast See Invisibility. Stealthy Goblins should only be seen by players with high perception.
And when that Drow casts Darkness, players should need Devil's Sight to see any tokens inside.
Expand Down
889 changes: 411 additions & 478 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@
"name": "conditional-visibility",
"title": "Conditional Visibility",
"description": "Hide tokens from some players, but not others, based on the senses the players have. Uses unknown, newspaper, and foggy icons made by <a href=\"https://www.flaticon.com/authors/freepik\" title=\"Freepik\">Freepik</a>, from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>. Moon icon made by <a href=\"https://www.flaticon.com/authors/iconixar\" title=\"iconixar\">iconixar</a> from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>",
"version": "0.2.11",
"version": "0.2.12",
"scripts": {
"package": "gulp package",
"build": "gulp build && gulp link",
"build:watch": "gulp watch",
"clean": "gulp clean && gulp link --clean",
"update": "npm install --save-dev @league-of-foundry-developers/[email protected].8",
"update": "npm install --save-dev @league-of-foundry-developers/[email protected].9",
"lint": "eslint --ext .ts,.js,.vue .",
"lintfix": "eslint --fix --ext .ts,.js,.vue ./src",
"prettier-format": "prettier --config .prettierrc --write \"./src/**/*.(ts|js|json|scss|css)\""
},
"author": "",
"license": "",
"devDependencies": {
"@league-of-foundry-developers/foundry-vtt-types": "^0.8.8-9",
"@types/jquery": "^3.5.5",
"@typescript-eslint/eslint-plugin": "^4.31.2",
"@typescript-eslint/parser": "^4.31.2",
"@league-of-foundry-developers/foundry-vtt-types": "^0.8.9-9",
"@types/jquery": "^3.5.10",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@typhonjs-fvtt/eslint-config-foundry.js": "^0.8.0",
"archiver": "^5.2.0",
"chalk": "^4.1.2",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-jquery": "^3.0.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-tsdoc": "^0.2.14",
"fs-extra": "^9.1.0",
Expand All @@ -42,15 +42,15 @@
"gulp-sass": "^4.1.0",
"gulp-typescript": "^6.0.0-alpha.1",
"json-stringify-pretty-compact": "^2.0.0",
"prettier": "^2.4.1",
"sass": "^1.42.0",
"prettier": "^2.5.1",
"sass": "^1.45.0",
"yargs": "^15.4.1"
},
"lint-staged": {
"*.(ts|js)": "eslint --fix",
"*.(json|scss)": "prettier --write"
},
"dependencies": {
"typescript": "^4.4.3"
"typescript": "^4.5.4"
}
}
5 changes: 5 additions & 0 deletions src/conditional-visibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ Hooks.once('ready', async function () {
// Do anything once the module is ready
readyHooks();
});

Hooks.once('libChangelogsReady', function () {
//@ts-ignore
libChangelogs.register(CONDITIONAL_VISIBILITY_MODULE_NAME, '- Add [CHANGELOGS & CONFLICTS](https://github.com/theripper93/libChangelogs) hooks for better management of the conflicts', 'minor');
});
8 changes: 4 additions & 4 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "conditional-visibility",
"title": "Conditional Visibility",
"description": "Hide tokens from some players, but not others, based on the senses the players have. Uses unknown, newspaper, and foggy icons made by <a href=\"https://www.flaticon.com/authors/freepik\" title=\"Freepik\">Freepik</a>, from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>. Moon icon made by <a href=\"https://www.flaticon.com/authors/iconixar\" title=\"iconixar\">iconixar</a> from <a href=\"https://www.flaticon.com/\" title=\"Flaticon\"> www.flaticon.com</a>",
"version": "0.2.11",
"version": "0.2.12",
"author": "Greg Ludington, p4535992, Szefo09, Teshynil",
"type": "module",
"socket": true,
Expand Down Expand Up @@ -62,9 +62,9 @@
"manifestPlusVersion": "1.2.0",
"url": "https://github.com/p4535992/conditional-visibility",
"manifest": "https://github.com/p4535992/conditional-visibility/releases/latest/download/module.json",
"download": "https://github.com/p4535992/conditional-visibility/releases/download/v0.2.11/module.zip",
"readme": "https://github.com/p4535992/conditional-visibility/blob/v0.2.11/README.md",
"changelog": "https://github.com/p4535992/conditional-visibility/blob/v0.2.11/changelog.md",
"download": "https://github.com/p4535992/conditional-visibility/releases/download/v0.2.12/module.zip",
"readme": "https://github.com/p4535992/conditional-visibility/blob/v0.2.12/README.md",
"changelog": "https://github.com/p4535992/conditional-visibility/blob/v0.2.12/changelog.md",
"bugs": "https://github.com/p4535992/conditional-visibility/issues",
"allowBugReporter": true,
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion src/module/ConditionalVisibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class ConditionalVisibility {
}
} else {
if (getGame().user?.isGM === false) {
const activeTokenDocuments = <TokenDocument[]>getGame().user?.character?.getActiveTokens();
const activeTokenDocuments = <Token[]>getGame().user?.character?.getActiveTokens();
if(activeTokenDocuments){
for (const tokenDocument of activeTokenDocuments) {
const tok = getCanvas().tokens?.placeables.find((tok) => tok.id === tokenDocument.id);
Expand Down
2 changes: 1 addition & 1 deletion src/module/systems/ConditionalVisibilitySystem5e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class ConditionalVisibilitySystem5e extends DefaultConditionalVisibilityS
tokenHud._onToggleEffect = async (event, opts) => {
const icon = event.currentTarget;
if (icon.src.endsWith('newspaper.svg')) {
const object: Token | null = tokenHud.object;
const object: Token | undefined = tokenHud.object;
if (object) {
if (icon.className.indexOf('active') < 0) {
this.stealthHud(object).then(async (result) => {
Expand Down

0 comments on commit 8e3a32f

Please sign in to comment.