From ae5196eef5b5dacaa9b5d56318eefee2de35c40c Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 11 Oct 2023 16:05:30 +0200 Subject: [PATCH] 0.37.0-pre.1 --- ExampleMod.cs | 4 ++-- ExampleMod.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ExampleMod.cs b/ExampleMod.cs index bc5a5bd..d392fcb 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -107,7 +107,7 @@ public class ExampleMod : Mod { CanExecute = (actionInfo, _) => { if (!actionInfo.GoalMap.IsInBounds(actionInfo.ActionLocation.ToPoint())) return CanExecuteResult.Hidden; - var tile = actionInfo.GoalMap.GetTile(actionInfo.ActionLocation.ToPoint()); + var tile = actionInfo.GoalMap.GetTile(actionInfo.ActionLocation.ToPoint(), (int) actionInfo.ActionFloor); // hidden means the action won't be displayed in the ring menu, Valid means the player (or AI) is able to enqueue and execute it return tile.Name.StartsWith("Grass") ? CanExecuteResult.Valid : CanExecuteResult.Hidden; }, @@ -208,7 +208,7 @@ public class ExampleTable : Furniture { [DataMember] public float TestValue; - public ExampleTable(Guid id, FurnitureType type, int[] colors, Map map, Vector2 pos) : base(id, type, colors, map, pos) { + public ExampleTable(Guid id, FurnitureType type, int[] colors, Map map, Vector2 pos, float floor) : base(id, type, colors, map, pos, floor) { this.TestValue = Furniture.Random.NextSingle(); } diff --git a/ExampleMod.csproj b/ExampleMod.csproj index 8c1c866..13e94e2 100644 --- a/ExampleMod.csproj +++ b/ExampleMod.csproj @@ -5,7 +5,7 @@ - +