Skip to content

Commit

Permalink
Fixed wrong color variable being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1Z93 committed Nov 24, 2024
1 parent 08dc28e commit acba033
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/playermat/Playermat.ttslua
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ function newInvestigatorCallback(newId)
for _, objData in ipairs(sourceBag.getData().ContainedObjects) do
if objData["Nickname"] == "Subject 5U-21 Helper" then
local spawnedObj = spawnObjectData({ data = objData, position = pos, rotation = rot })
guidReferenceApi.editIndex(playerColor, "InvestigatorSpecifics", spawnedObj.getGUID())
guidReferenceApi.editIndex(matColor, "InvestigatorSpecifics", spawnedObj.getGUID())
break
end
end
Expand All @@ -1450,10 +1450,10 @@ end

-- spawns an infinite token bag of the specified type near the set aside area
function spawnInfiniteTokenBag(tokenType)
local pos = zones.getZonePosition(playerColor, "AboveSetAside")
local pos = zones.getZonePosition(matColor, "AboveSetAside")
local rot = self.getRotation()
local spawnedObj = spawnObjectData({ data = tokenManagerApi.getDataForInfiniteBag(tokenType, pos, rot) })
guidReferenceApi.editIndex(playerColor, "InvestigatorSpecifics", spawnedObj.getGUID())
guidReferenceApi.editIndex(matColor, "InvestigatorSpecifics", spawnedObj.getGUID())
end

-- returns the mini ID for the currently placed investigator
Expand Down

0 comments on commit acba033

Please sign in to comment.