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 @@ - +