removing unused function

This commit is contained in:
Chr1Z93 2022-12-31 02:57:50 +01:00
parent f5ac476e35
commit 3c240dcdc8
2 changed files with 2 additions and 13 deletions

View File

@ -6,7 +6,7 @@ end
-- called by context menu entry
function shortSupply(color)
local matColor = playmatAPI.getMatColorbyPosition(self.getPosition())
local matColor = playmatAPI.getMatColorByPosition(self.getPosition())
-- get draw deck and discard position
local drawDeck = playmatAPI.getDrawDeck(matColor)

View File

@ -23,20 +23,9 @@ do
Red = "4111de"
}
-- Returns the by color requested playermat as object
---@param matColor String Color of the playermat to return
PlaymatApi.getMatbyColor = function(matColor)
local mat = getObjectFromGUID(MAT_IDS[matColor])
if mat == nil then
broadcastToAll(playerColor .. " playermat could not be found!", "Yellow")
end
return mat
end
-- Returns the color of the by position requested playermat as string
---@param startPos Table Position of the search, table get's roughly cut into 4 quarters to assign a playermat
PlaymatApi.getMatColorbyPosition = function(startPos)
PlaymatApi.getMatColorByPosition = function(startPos)
if startPos.x < -42 then
if startPos.z > 0 then
return "White"