Исправлен мод heroturrets
Добавлен мод blueprint-sandboxes Добавляет метку версии в zzzparanoidal (#72)
This commit is contained in:
18
blueprint-sandboxes/scripts/tiles.lua
Normal file
18
blueprint-sandboxes/scripts/tiles.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Custom Planners to add/remove Resources
|
||||
local Tiles = {}
|
||||
|
||||
Tiles.name = BPSB.pfx .. "sandbox-tiles"
|
||||
Tiles.pfx = BPSB.pfx .. "sbt-"
|
||||
local pfxLength = string.len(Tiles.pfx)
|
||||
|
||||
-- Whether the Thing is a Tile Planner
|
||||
function Tiles.IsTilePlanner(name)
|
||||
return string.sub(name, 1, pfxLength) == Tiles.pfx
|
||||
end
|
||||
|
||||
-- Extract the Resource Name from a Tile Planner
|
||||
function Tiles.GetResourceName(name)
|
||||
return string.sub(name, pfxLength + 1)
|
||||
end
|
||||
|
||||
return Tiles
|
||||
Reference in New Issue
Block a user