bugfixing
This commit is contained in:
parent
8bc7ea9f94
commit
f56c643bdf
@ -219,9 +219,6 @@ do
|
|||||||
end
|
end
|
||||||
for i = 1, tokenCount do
|
for i = 1, tokenCount do
|
||||||
offsets[i] = card.positionToWorld(PLAYER_CARD_TOKEN_OFFSETS[tokenCount][i])
|
offsets[i] = card.positionToWorld(PLAYER_CARD_TOKEN_OFFSETS[tokenCount][i])
|
||||||
-- Fix the y-position for the spawn, since positionToWorld considers rotation which can
|
|
||||||
-- have bad results for face up/down differences
|
|
||||||
offsets[i].y = card.getPosition().y + 0.15
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -250,7 +247,6 @@ do
|
|||||||
elseif tokenType == "universalActionAbility" then
|
elseif tokenType == "universalActionAbility" then
|
||||||
local matColor = playermatApi.getMatColorByPosition(card.getPosition())
|
local matColor = playermatApi.getMatColorByPosition(card.getPosition())
|
||||||
local class = playermatApi.returnInvestigatorClass(matColor)
|
local class = playermatApi.returnInvestigatorClass(matColor)
|
||||||
|
|
||||||
callback = function(spawned) spawned.call("updateClassAndSymbol", { class = class, symbol = subType or class }) end
|
callback = function(spawned) spawned.call("updateClassAndSymbol", { class = class, symbol = subType or class }) end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -500,7 +496,12 @@ do
|
|||||||
obj.destruct()
|
obj.destruct()
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
-- search for the token instead if there's no special resource state for it
|
||||||
local searchType = string.lower(useInfo.type)
|
local searchType = string.lower(useInfo.type)
|
||||||
|
if stateTable[searchType] == nil then
|
||||||
|
searchType = useInfo.token
|
||||||
|
end
|
||||||
|
|
||||||
for _, obj in ipairs(searchLib.onObject(card, "isTileOrToken")) do
|
for _, obj in ipairs(searchLib.onObject(card, "isTileOrToken")) do
|
||||||
local memo = obj.getMemo()
|
local memo = obj.getMemo()
|
||||||
if searchType == memo then
|
if searchType == memo then
|
||||||
|
Loading…
Reference in New Issue
Block a user