removing unused function
This commit is contained in:
parent
f5ac476e35
commit
3c240dcdc8
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user