Compare commits

...

3 Commits

Author SHA1 Message Date
cbd207c734 CI: Automatically create releases for pushed tags
All checks were successful
build-mod / build-the-mod (push) Successful in 14s
2024-08-09 21:35:33 -04:00
72e833a99e Fix attribute name for matColor in actualEncounterCardDraw 2024-08-09 21:22:11 -04:00
0331bd861b Fix character card script to place action tokens in new location
All checks were successful
build-mod / build-the-mod (release) Successful in 19s
2024-08-03 20:38:40 -04:00
3 changed files with 21 additions and 12 deletions

View File

@ -1,11 +1,8 @@
name: build-mod name: build-mod
on: on:
workflow_dispatch: push:
release: tags:
types: [published] - "p*"
pull_request:
permissions: read-all
jobs: jobs:
build-the-mod: build-the-mod:
@ -14,5 +11,17 @@ jobs:
contents: write contents: write
actions: read actions: read
steps: steps:
- uses: argonui/TTSModManager.action@v1.0.0 - uses: actions/checkout@v3
- run: wget https://github.com/argonui/TTSModManager/releases/download/v1.2.1/TTSModManager-Linux
shell: bash
- run: chmod +x TTSModManager-Linux
shell: bash
- run: ./TTSModManager-Linux -moddir="./" -modfile="./SCED ${{ github.ref_name }}.json"
shell: bash
- name: Create Release
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
files: "SCED ${{ github.ref_name }}.json"
name: "Patched ${{ github.ref_name }}"

View File

@ -180,7 +180,7 @@ end
-- draw the provided card to the requesting playermat -- draw the provided card to the requesting playermat
function actualEncounterCardDraw(card, params) function actualEncounterCardDraw(card, params)
card.deal(1, params.mat.matColor) card.deal(1, params.matColor)
end end
-- gets the discard pile and shuffles it into the encounter deck -- gets the discard pile and shuffles it into the encounter deck

View File

@ -977,7 +977,7 @@ function maybeUpdateActiveInvestigator(card)
-- spawn three regular action tokens (investigator specific one in the bottom spot) -- spawn three regular action tokens (investigator specific one in the bottom spot)
for i = 1, 3 do for i = 1, 3 do
local pos = self.positionToWorld(Vector(-1.54 + i * 0.17, 0, -0.28)):add(Vector(0, 0.2, 0)) local pos = self.positionToWorld(Vector(-1.54 + i * 0.17, 0, -1.13)):add(Vector(0, 0.2, 0))
tokenManager.spawnToken(pos, "universalActionAbility", self.getRotation(), tokenManager.spawnToken(pos, "universalActionAbility", self.getRotation(),
function(spawned) function(spawned)
@ -990,8 +990,8 @@ function maybeUpdateActiveInvestigator(card)
-- local positions -- local positions
local tokenSpawnPos = { local tokenSpawnPos = {
action = { action = {
Vector(-0.86, 0, -0.28), -- left of the regular three actions Vector(-0.86, 0, -1.13), -- left of the regular three actions
Vector(-1.54, 0, -0.28), -- right of the regular three actions Vector(-1.54, 0, -1.13), -- right of the regular three actions
}, },
ability = { ability = {
Vector(-1, 0, 0.118), -- bottom left corner of the investigator card Vector(-1, 0, 0.118), -- bottom left corner of the investigator card