fix default y values (because of OCD) and increase shiftDown
This commit is contained in:
parent
644025df7a
commit
684302c3ca
@ -4,22 +4,22 @@ do
|
|||||||
|
|
||||||
local PLAYER_CARD_TOKEN_OFFSETS = {
|
local PLAYER_CARD_TOKEN_OFFSETS = {
|
||||||
[1] = {
|
[1] = {
|
||||||
Vector(0, 8, -0.2)
|
Vector(0, 3, -0.2)
|
||||||
},
|
},
|
||||||
[2] = {
|
[2] = {
|
||||||
Vector(0.4, 20, -0.2),
|
Vector(0.4, 3, -0.2),
|
||||||
Vector(-0.4, 20, -0.2)
|
Vector(-0.4, 3, -0.2)
|
||||||
},
|
},
|
||||||
[3] = {
|
[3] = {
|
||||||
Vector(0, 8, -0.9),
|
Vector(0, 3, -0.9),
|
||||||
Vector(0.4, 8, -0.2),
|
Vector(0.4, 3, -0.2),
|
||||||
Vector(-0.4, 8, -0.2)
|
Vector(-0.4, 3, -0.2)
|
||||||
},
|
},
|
||||||
[4] = {
|
[4] = {
|
||||||
Vector(0.4, 10, -0.9),
|
Vector(0.4, 3, -0.9),
|
||||||
Vector(-0.4, 10, -0.9),
|
Vector(-0.4, 3, -0.9),
|
||||||
Vector(0.4, 10, -0.2),
|
Vector(0.4, 3, -0.2),
|
||||||
Vector(-0.4, 10, -0.2)
|
Vector(-0.4, 3, -0.2)
|
||||||
},
|
},
|
||||||
[5] = {
|
[5] = {
|
||||||
Vector(0.7, 3, -0.9),
|
Vector(0.7, 3, -0.9),
|
||||||
@ -165,7 +165,7 @@ do
|
|||||||
TokenManager.spawnCounterToken = function(card, tokenType, tokenValue, shiftDown)
|
TokenManager.spawnCounterToken = function(card, tokenType, tokenValue, shiftDown)
|
||||||
if tokenValue < 1 or tokenValue > 50 then return end
|
if tokenValue < 1 or tokenValue > 50 then return end
|
||||||
|
|
||||||
local pos = card.positionToWorld(Vector(0, 0.2, shiftDown))
|
local pos = card.positionToWorld(PLAYER_CARD_TOKEN_OFFSETS[1][1] + Vector(0, 0, shiftDown))
|
||||||
local rot = card.getRotation()
|
local rot = card.getRotation()
|
||||||
TokenManager.spawnToken(pos, tokenType, rot, function(spawned) spawned.setState(tokenValue) end)
|
TokenManager.spawnToken(pos, tokenType, rot, function(spawned) spawned.setState(tokenValue) end)
|
||||||
end
|
end
|
||||||
@ -334,7 +334,7 @@ do
|
|||||||
end
|
end
|
||||||
log("Spawning use array tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
log("Spawning use array tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
||||||
-- Shift each spawned group after the first down so they don't pile on each other
|
-- Shift each spawned group after the first down so they don't pile on each other
|
||||||
TokenManager.spawnTokenGroup(card, token, tokenCount, (i - 1) * 0.6)
|
TokenManager.spawnTokenGroup(card, token, tokenCount, (i - 1) * 0.8)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
tokenSpawnTracker.markTokensSpawned(card.getGUID())
|
tokenSpawnTracker.markTokensSpawned(card.getGUID())
|
||||||
|
Loading…
Reference in New Issue
Block a user