Compare commits

..

6 Commits
1.0.0 ... main

Author SHA1 Message Date
gitea
3974b0f312 [no ci] 1.1.0 2025-03-24 17:53:27 +00:00
624d894a82 [minor]: Merge pull request '[minor]: only publish publicrolls' (#4) from only-publish-publicrolls into main
All checks were successful
ci / ci (push) Successful in 34s
Reviewed-on: #4
2025-03-24 18:52:54 +01:00
Arindy
f250daae56 [minor]: only publish publicrolls
All checks were successful
ci / ci (push) Successful in 1m14s
ci / ci (pull_request) Successful in 34s
2025-03-24 18:50:01 +01:00
gitea
b8f0f9d613 [no ci] 1.0.1 2025-03-01 21:33:57 +00:00
891a34c3b6 Merge pull request 'updates gitignore' (#3) from update-gitignore into main
All checks were successful
ci / ci (push) Successful in 25s
Reviewed-on: #3
2025-03-01 22:33:32 +01:00
Arindy
7c8434cbc0 updates gitignore
All checks were successful
ci / ci (push) Successful in 26s
ci / ci (pull_request) Successful in 23s
2025-03-01 22:32:28 +01:00
5 changed files with 11 additions and 8 deletions

View File

@ -21,9 +21,8 @@ jobs:
- id: version
name: version
run: |
echo ${{github.event.head_commit.message}}
major=${{contains(github.event.head_commit.message, '[major]')}}
minor=${{contains(github.event.head_commit.message, '[minor]')}}
major=${{startsWith(github.event.head_commit.message, '[major]')}}
minor=${{startsWith(github.event.head_commit.message, '[minor]')}}
echo "major: " $major
echo "minor: " $minor

4
.gitignore vendored
View File

@ -28,6 +28,8 @@
.idea/**/gradle.xml
.idea/**/libraries
.idea
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
@ -78,3 +80,5 @@ fabric.properties
.idea/caches/build_file_checksums.ser
.foundry
dist
node_modules

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "foundryvtt-dice-tower",
"version": "1.0.0",
"version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "foundryvtt-dice-tower",
"version": "1.0.0",
"version": "1.1.0",
"license": "GPL-3.0-only",
"devDependencies": {
"@3d-dice/dice-box-threejs": "^0.0.12",

View File

@ -1,6 +1,6 @@
{
"name": "foundryvtt-dice-tower",
"version": "1.0.0",
"version": "1.1.0",
"description": "Roll your dice in a fancy overlay",
"license": "GPL-3.0-only",
"scripts": {

View File

@ -56,8 +56,8 @@ Hooks.once("ready", () => {
module.service.register()
})
Hooks.on("preCreateChatMessage", (message: ChatMessage): void => {
if (message.isRoll && getSetting("sendToDiceTower") as Boolean) {
Hooks.on("preCreateChatMessage", (message: ChatMessage, _: any, settings: any): void => {
if (message.isRoll && settings?.rollMode === "publicroll" && getSetting("sendToDiceTower") as Boolean) {
let results = []
let command = "";
message.rolls.forEach(roll => {