Fix character card script to place action tokens in new location
All checks were successful
build-mod / build-the-mod (release) Successful in 19s

This commit is contained in:
Adam Goldsmith 2024-08-03 20:38:40 -04:00
parent f1f41ca641
commit 0331bd861b

View File

@ -977,7 +977,7 @@ function maybeUpdateActiveInvestigator(card)
-- spawn three regular action tokens (investigator specific one in the bottom spot)
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(),
function(spawned)
@ -990,8 +990,8 @@ function maybeUpdateActiveInvestigator(card)
-- local positions
local tokenSpawnPos = {
action = {
Vector(-0.86, 0, -0.28), -- left of the regular three actions
Vector(-1.54, 0, -0.28), -- right of the regular three actions
Vector(-0.86, 0, -1.13), -- left of the regular three actions
Vector(-1.54, 0, -1.13), -- right of the regular three actions
},
ability = {
Vector(-1, 0, 0.118), -- bottom left corner of the investigator card