mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-12-22 23:39:23 +01:00
update to 0.11.0
This commit is contained in:
parent
c2b0843104
commit
0ce7b27ef4
2 changed files with 3 additions and 4 deletions
|
@ -35,7 +35,7 @@ namespace ExampleMod {
|
|||
ConstructedType = typeof(CustomTable),
|
||||
Icon = this.Icon,
|
||||
// allow chairs and plates to be slotted into and onto the table
|
||||
ObjectSpots = ObjectSpot.TableSpots(new Point(1,1)).ToArray()
|
||||
ObjectSpots = ObjectSpot.TableSpots(new Point(1, 1)).ToArray()
|
||||
});
|
||||
|
||||
// adding custom clothing
|
||||
|
@ -56,8 +56,7 @@ namespace ExampleMod {
|
|||
};
|
||||
|
||||
// adding a simple action: sitting down in the grass, which also gives us a nice emotion modifier
|
||||
ActionType.Register(new ActionType.TypeSettings("ExampleMod.SitOnGrass", ObjectCategory.Ground,
|
||||
(t, i) => new SitDownOnGrassAction(t, i)) {
|
||||
ActionType.Register(new ActionType.TypeSettings("ExampleMod.SitOnGrass", ObjectCategory.Ground, typeof(SitDownOnGrassAction)) {
|
||||
// we set this action to be executable only on grass tiles, not on other ground
|
||||
CanExecute = (info, automatic) => {
|
||||
var tile = info.Map.GetTile(info.ActionLocation.ToPoint());
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="TinyLifeApi" Version="0.10.1" />
|
||||
<PackageReference Include="TinyLifeApi" Version="0.11.0" />
|
||||
|
||||
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.1" />
|
||||
<PackageReference Include="MLEM.Data" Version="4.3.0" />
|
||||
|
|
Loading…
Reference in a new issue