0.37.0-pre.1

This commit is contained in:
Ell 2023-10-11 16:05:30 +02:00
parent 715b11dbd9
commit ae5196eef5
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ public class ExampleMod : Mod {
CanExecute = (actionInfo, _) => { CanExecute = (actionInfo, _) => {
if (!actionInfo.GoalMap.IsInBounds(actionInfo.ActionLocation.ToPoint())) if (!actionInfo.GoalMap.IsInBounds(actionInfo.ActionLocation.ToPoint()))
return CanExecuteResult.Hidden; 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 // 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; return tile.Name.StartsWith("Grass") ? CanExecuteResult.Valid : CanExecuteResult.Hidden;
}, },
@ -208,7 +208,7 @@ public class ExampleTable : Furniture {
[DataMember] [DataMember]
public float TestValue; 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(); this.TestValue = Furniture.Random.NextSingle();
} }

View file

@ -5,7 +5,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="TinyLifeApi" Version="0.36.2" /> <PackageReference Include="TinyLifeApi" Version="0.37.0-pre.1" />
<PackageReference Include="ExtremelySimpleLogger" Version="1.3.1" /> <PackageReference Include="ExtremelySimpleLogger" Version="1.3.1" />
<PackageReference Include="Lib.Harmony" Version="2.2.2" /> <PackageReference Include="Lib.Harmony" Version="2.2.2" />