Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Jul 11, 2024
2 parents 3ef8bdd + 5de849f commit 04fb9e3
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 27 deletions.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/add-support-for-a-system.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Add Support for a System
about: Want you to add support for a system
title: "[System Support] "
labels: sys-support
assignees: ChasarooniZ

---

**Health Value Path** `<REPLACE with path to getting hp for an actor in this system>`
**Health Max Path** `<REPLACE with path to getting hp max for an actor in this system>`
**Is 0 A good value** `<REPLACE with whether or not being at 0 hp is a good thing for this system>`

additional notes (Ie if there is a different path depending on the actor etc.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
title: "[Bug]"
labels: bug
assignees: ChasarooniZ

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature]"
labels: enhancement
assignees: ChasarooniZ

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
11 changes: 11 additions & 0 deletions .github/workflows/publish-to-fvtt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Publish new version to foyndry
on: [released]
jobs:
refresh-feed:
runs-on: ubuntu-latest
steps:
- name: Run fvtt apu
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: https://api.foundryvtt.com/_api/packages/release_version/
configuration: '{ "method": "GET", "headers": { "Authorization": "${{ secrets.FVTT_API_TOKEN }}" } "body": { "id": "pf2e-reactive-token-ring", "dry-run": true, "release": { "version": "${{github.event.release.tag_name}}", "manifest": "https://github.com/${{github.repository}}/releases/${{github.event.release.tag_name}}/download/module.json", "notes": "https://github.com/${{github.repository}}/releases/tag/${{github.event.release.tag_name}}" "compatibility": { "minimum": "12", "verified": "12", "maximum": "" } } } }'
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
## [1.0.3](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/compare/1.0.2...1.0.3) - Systems Galore
## [1.1.3](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/compare/1.1.2...1.1.3) - Dragonbane
- Support for Dragonbane - Drakar och Demoner (@xdy)

## [1.1.2](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/compare/1.1.1...1.1.2) - Level Up
- Support for Level Up (Advanced 5e) (@Lonely Paladin)

## [1.1.1](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/compare/1.1.0...1.1.1) - Metanthropes Support
- Added support for Metanthropes (@Mjb141)

## [1.1.0](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/compare/1.0.2...1.1.0) - Systems Galore
- Adding Support for a lot of other systems
- Thanks to [@shemetz](https://github.com/shemetz/tokenmagic-automatic-wounds/blob/master/scripts/system-compatibility.js) for the reference code <3
- Support for the following systems was added
Expand Down Expand Up @@ -37,4 +46,4 @@
- Adds following features
- Flashes red on damage taken
- Flashes green on heal
- Flashes white when targetted
- Flashes white when targetted
21 changes: 21 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Contributers
- Lioheart
- Polish Translator
- shemetz
- Dev advice
- Code for supporting multiple systems
- Feature ideas for
- Flash Duration setting
- Flashing on condition add
- Flash duration based on damage taken/healed
- 117K
- Persistent effects idea

Mjb141
- Support for Metanthropes system (PR <3)

LonePaladin
- Support for level up (Advanced 5e)

xdy
- Support for Dragonbane - Drakar och Demoner
11 changes: 0 additions & 11 deletions CONTRIBUToRS.md

This file was deleted.

34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,47 @@
<!--- ![Forge Installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2F<your-module-name>&colorB=4aa94a) -->


# Reactive Token Ring
Adds some reaction for the pf2e system for dynamic token rings.
# Reactive Dynamic Token Ring
Adds some reaction for dynamic token rings.

[Supported Systems](#supported-systems)

***Note: I only use pf2e so whether the compatability for other systems works is on whoever puts in the leg work to make them compatible*

[Changelog](/CHANGELOG.md) | [Contributors](CONTRIBUTERS.md)

## Features
- Flashes red on damage taken
- ![damage+example](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/e87d28c6-95e9-4fa9-98f7-95ebb5faf2a2)
- <img src="https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/e87d28c6-95e9-4fa9-98f7-95ebb5faf2a2" height=150>
- Flashes green on heal
- ![healing+example](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/55a1c569-d2b5-4d12-824e-2f10178eddef)
- <img src="https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/55a1c569-d2b5-4d12-824e-2f10178eddef" height=150>
- Flashes blue when targeted
- ![target+example+new](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/a225c5e6-82e2-4e86-a9eb-b2d07d8537b9)
- <img src="https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/a225c5e6-82e2-4e86-a9eb-b2d07d8537b9" height=150>

### PF2e Exclusive Features
- Flashes orange on negative condition
- <img src="https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/598c187e-5044-4ce2-b3d7-40d887522f44" height=250>
- Flashes pink on positive condition
- <img src="https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/b766645e-4bfd-4198-b1bb-e36e99ea6e96" height=250>

## How to Make a Dynamic Token
[![How to Make a Dynamic Token](https://img.youtube.com/vi/P7Ot2YipUjU/0.jpg)](https://youtu.be/P7Ot2YipUjU?si=I2VRDQexxBJybVRc)
[<img src="https://img.youtube.com/vi/P7Ot2YipUjU/0.jpg">](https://youtu.be/P7Ot2YipUjU?si=I2VRDQexxBJybVRc)

### Supported Systems
## Supported Systems
- Alien RPG
- Cyberpunk RED
- Dragonbane - Drakar och Demoner
- Dungeon World
- HeXXen 1733 Official
- Old-School Essentials
- Level Up (Advanced 5e)
- Metanthropes
- Old-School Essential
- Pathfinder 1
- Pathfinder Second Edition (PF2e)
- Powered by the Apocalypse
- Savage Worlds Adventure Edition
- Tormenta 20
- Warhammer Fantasy Roleplay 4th Edition

*To see how to add support for your system look at [system Compatability](scripts/systemCompatability.js)*
[![Static Badge](https://img.shields.io/badge/Add%20your%20System-009900?logo=github)](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/issues/new?assignees=ChasarooniZ&labels=sys-support&projects=&template=add-support-for-a-system.md&title=%5BSystem+Support%5D+)

### PF2e Exclusive Features
- Flashes orange on negative condition
- ![bad+effect](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/598c187e-5044-4ce2-b3d7-40d887522f44)
- Flashes pink on positive condition
- ![good+condition](https://github.com/ChasarooniZ/PF2e-Reactive-Token-Ring/assets/79132112/b766645e-4bfd-4198-b1bb-e36e99ea6e96)
22 changes: 22 additions & 0 deletions scripts/systemCompatability.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export function isHealing(actor, update, status) {
*/
function getSystemKeys(actor) {
switch (game.system.id) {
case "a5e":
return {
hpPath: "system.attributes.hp.value",
hpMaxPath: "system.attributes.hp.max",
zeroIsBad: true,
}
break;
case "alienrpg":
if (actor.type !== "spacecraft" && actor.type !== "vehicles") {
return {
Expand All @@ -44,6 +51,12 @@ function getSystemKeys(actor) {
hpMaxPath: "system.derivedStats.hp.max",
zeroIsBad: true,
};
case "dragonbane":
return {
hpPath: "system.hitPoints.value",
hpMaxPath: "system.hitPoints.max",
zeroIsBad: true,
};
//case "dnd5e":
case "dungeonworld":
case "pf1":
Expand All @@ -60,6 +73,15 @@ function getSystemKeys(actor) {
hpMaxPath: "system.health.max",
zeroIsBad: true,
};
case "metanthropes":
if (actor.type !== "Vehicle") {
return {
hpPath: "system.Vital.Life.value",
hpMaxPath: "system.Vital.Life.max",
zeroIsBad: true,
};
}
break;
case "ose":
return {
hpPath: "system.hp.value",
Expand Down

0 comments on commit 04fb9e3

Please sign in to comment.