add upwards shift

This commit is contained in:
Chr1Z93 2023-01-02 02:27:45 +01:00
parent e3a1a0ce2d
commit 19b69a3cee

View File

@ -189,7 +189,7 @@ do
end
TokenManager.spawnResourceCounterToken = function(card, tokenCount)
local pos = card.getPosition() + Vector(0, 0.2, 0)
local pos = card.positionToWorld(card.positionToLocal(card.getPosition()) + Vector(0, 0.2, -0.5))
local rot = card.getRotation()
TokenManager.spawnToken(pos, "resourceCounter", rot, function(spawned)
spawned.call("updateVal", tokenCount)