Skip to content

Commit

Permalink
Guard the Isle's Heart will now force board layout (similar to The Gr…
Browse files Browse the repository at this point in the history
…eat River), also added a new 5 player layout that will be used for this
  • Loading branch information
iakona committed Sep 16, 2024
1 parent 337efbd commit 235c675
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
21 changes: 21 additions & 0 deletions objects/04397d/script.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
difficulty=0
boardSetup = true
postSetup = true
postSetupComplete = false
hasBroadcast = true
customLoss = true

function BoardSetup(params)
local boardLayouts = Global.getTable("boardLayouts")
if params.boards == 1 then
return boardLayouts[params.boards]["Balanced"]
elseif params.boards == 2 then
return boardLayouts[params.boards]["Opposite Shores"]
elseif params.boards == 3 then
return boardLayouts[params.boards]["Balanced"]
elseif params.boards == 4 then
return boardLayouts[params.boards]["Balanced"]
elseif params.boards == 5 then
return boardLayouts[params.boards]["Meeple"]
elseif params.boards == 6 then
return boardLayouts[params.boards]["Star"]
else
broadcastToAll("Board count "..params.boards.." is currently unsupported, defaulting to balanced", Color.Red)
return boardLayouts[params.boards]["Balanced"]
end
end

function PostSetup(params)
local minorPowerDeck, majorPowerDeck
if Global.getVar("playtestMinorPowers") > 0 then
Expand Down
7 changes: 7 additions & 0 deletions script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4361,6 +4361,13 @@ boardLayouts = {
{ pos = Vector(11.90, 1.05, 16.96), rot = Vector(0.00, 120.00, 0.00) },
{ pos = Vector(1.90, 1.05, 34.44), rot = Vector(0.00, 120.00, 0.00) },
},
["Meeple"] = {
{ pos = Vector(14.02, 1.05, 18.02), rot = Vector(0.00, 150.00, 0.00) },
{ pos = Vector(31.59, 1.06, 17.89), rot = Vector(0.00, 90.00, 0.00) },
{ pos = Vector(5.35, 1.05, 33.22), rot = Vector(0.00, 210.00, 0.00) },
{ pos = Vector(40.55, 1.05, 33.07), rot = Vector(0.00, 30.00, 0.00) },
{ pos = Vector(22.95, 1.05, 43.25), rot = Vector(0.00, 210.00, 0.00) },
},
},
{ -- 6 Board
["Thematic"] = {
Expand Down

0 comments on commit 235c675

Please sign in to comment.