Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3974b0f312 | ||
624d894a82 | |||
![]() |
f250daae56 | ||
![]() |
b8f0f9d613 | ||
891a34c3b6 | |||
![]() |
7c8434cbc0 |
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -21,9 +21,8 @@ jobs:
|
|||||||
- id: version
|
- id: version
|
||||||
name: version
|
name: version
|
||||||
run: |
|
run: |
|
||||||
echo ${{github.event.head_commit.message}}
|
major=${{startsWith(github.event.head_commit.message, '[major]')}}
|
||||||
major=${{contains(github.event.head_commit.message, '[major]')}}
|
minor=${{startsWith(github.event.head_commit.message, '[minor]')}}
|
||||||
minor=${{contains(github.event.head_commit.message, '[minor]')}}
|
|
||||||
|
|
||||||
echo "major: " $major
|
echo "major: " $major
|
||||||
echo "minor: " $minor
|
echo "minor: " $minor
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -28,6 +28,8 @@
|
|||||||
.idea/**/gradle.xml
|
.idea/**/gradle.xml
|
||||||
.idea/**/libraries
|
.idea/**/libraries
|
||||||
|
|
||||||
|
.idea
|
||||||
|
|
||||||
# Gradle and Maven with auto-import
|
# Gradle and Maven with auto-import
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
# 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
|
# since they will be recreated, and may cause churn. Uncomment if using
|
||||||
@ -78,3 +80,5 @@ fabric.properties
|
|||||||
.idea/caches/build_file_checksums.ser
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
.foundry
|
.foundry
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "foundryvtt-dice-tower",
|
"name": "foundryvtt-dice-tower",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "foundryvtt-dice-tower",
|
"name": "foundryvtt-dice-tower",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@3d-dice/dice-box-threejs": "^0.0.12",
|
"@3d-dice/dice-box-threejs": "^0.0.12",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "foundryvtt-dice-tower",
|
"name": "foundryvtt-dice-tower",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "Roll your dice in a fancy overlay",
|
"description": "Roll your dice in a fancy overlay",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -56,8 +56,8 @@ Hooks.once("ready", () => {
|
|||||||
module.service.register()
|
module.service.register()
|
||||||
})
|
})
|
||||||
|
|
||||||
Hooks.on("preCreateChatMessage", (message: ChatMessage): void => {
|
Hooks.on("preCreateChatMessage", (message: ChatMessage, _: any, settings: any): void => {
|
||||||
if (message.isRoll && getSetting("sendToDiceTower") as Boolean) {
|
if (message.isRoll && settings?.rollMode === "publicroll" && getSetting("sendToDiceTower") as Boolean) {
|
||||||
let results = []
|
let results = []
|
||||||
let command = "";
|
let command = "";
|
||||||
message.rolls.forEach(roll => {
|
message.rolls.forEach(roll => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user