mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-12-22 15:39:22 +01:00
0.37.0-pre.1
This commit is contained in:
parent
715b11dbd9
commit
ae5196eef5
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<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="Lib.Harmony" Version="2.2.2" />
|
||||
|
|
Loading…
Reference in a new issue