adds smokeName and smokeAtGroup.

This commit is contained in:
Lugghawk
2018-12-24 19:18:10 -05:00
parent cfe5f10823
commit 450b97b91d
2 changed files with 22 additions and 0 deletions

View File

@@ -26,3 +26,14 @@ HOGGIT.getLatLongString = function(pos, decimal)
if decimal == nil then decimal = false end
return mist.tostringLL(lat, long, 3, decimal)
end
-- Returns a textual smoke name based on the provided enum
-- @param a trigger.smokeColor enum
-- @return the English word as a string representing the color of the smoke. i.e. trigger.smokeColor.Red returns "Red"
HOGGIT.getSmokeName = function(smokeColor)
if smokeColor == trigger.smokeColor.Green then return "Green" end
if smokeColor == trigger.smokeColor.Red then return "Red" end
if smokeColor == trigger.smokeColor.White then return "White" end
if smokeColor == trigger.smokeColor.Orange then return "Orange" end
if smokeColor == trigger.smokeColor.Blue then return "Blue" end
end