mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-22 12:03:28 +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),
|
ConstructedType = typeof(CustomTable),
|
||||||
Icon = this.Icon,
|
Icon = this.Icon,
|
||||||
// allow chairs and plates to be slotted into and onto the table
|
// 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
|
// 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
|
// 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,
|
ActionType.Register(new ActionType.TypeSettings("ExampleMod.SitOnGrass", ObjectCategory.Ground, typeof(SitDownOnGrassAction)) {
|
||||||
(t, i) => new SitDownOnGrassAction(t, i)) {
|
|
||||||
// we set this action to be executable only on grass tiles, not on other ground
|
// we set this action to be executable only on grass tiles, not on other ground
|
||||||
CanExecute = (info, automatic) => {
|
CanExecute = (info, automatic) => {
|
||||||
var tile = info.Map.GetTile(info.ActionLocation.ToPoint());
|
var tile = info.Map.GetTile(info.ActionLocation.ToPoint());
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="TinyLifeApi" Version="0.10.1" />
|
<PackageReference Include="TinyLifeApi" Version="0.11.0" />
|
||||||
|
|
||||||
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.1" />
|
<PackageReference Include="ExtremelySimpleLogger" Version="1.2.1" />
|
||||||
<PackageReference Include="MLEM.Data" Version="4.3.0" />
|
<PackageReference Include="MLEM.Data" Version="4.3.0" />
|
||||||
|
|
Loading…
Reference in a new issue