v0.2.1
This commit is contained in:
@@ -2,3 +2,4 @@ bin/
|
|||||||
obj/
|
obj/
|
||||||
.vs/
|
.vs/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Release Notes v0.2.1
|
||||||
|
|
||||||
|
- Players can now use other player's cosmetic stations.
|
||||||
@@ -6,19 +6,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Yariazen.PlateUp.ModBuildUtilities" Version="1.6.16" />
|
<PackageReference Include="Yariazen.PlateUp.ModBuildUtilities" Version="1.10.21" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Discord">
|
|
||||||
<HintPath>H:\SteamLibrary\steamapps\common\PlateUp\PlateUp\PlateUp_Data\Managed\Discord.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Facepunch.Steamworks.Win64">
|
|
||||||
<HintPath>H:\SteamLibrary\steamapps\common\PlateUp\PlateUp\PlateUp_Data\Managed\Facepunch.Steamworks.Win64.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="KitchenLib-Workshop">
|
|
||||||
<HintPath>..\..\..\..\Libraries\KitchenLib\KitchenLib-Workshop.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ namespace MMOKitchenReborn
|
|||||||
public const string MOD_ID = "mmokitchen";
|
public const string MOD_ID = "mmokitchen";
|
||||||
public const string MOD_NAME = "MMO Kitchen";
|
public const string MOD_NAME = "MMO Kitchen";
|
||||||
public const string MOD_AUTHOR = "StarFluxGames";
|
public const string MOD_AUTHOR = "StarFluxGames";
|
||||||
public const string MOD_VERSION = "0.2.0";
|
public const string MOD_VERSION = "0.2.1";
|
||||||
public const string MOD_COMPATIBLE_VERSIONS = ">=1.1.4";
|
public const string MOD_COMPATIBLE_VERSIONS = ">=1.1.4";
|
||||||
|
|
||||||
public static PreferenceManager manager;
|
public static PreferenceManager manager;
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
using Kitchen;
|
||||||
|
using KitchenMods;
|
||||||
|
|
||||||
|
namespace MMOKitchenReborn.Systems;
|
||||||
|
|
||||||
|
public class AnyProfileEditor : InteractionSystem, IModSystem
|
||||||
|
{
|
||||||
|
protected override bool IsPossible(ref InteractionData data)
|
||||||
|
{
|
||||||
|
return Require(data.Target, out Editor);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Perform(ref InteractionData data)
|
||||||
|
{
|
||||||
|
Editor.IsTriggered = true;
|
||||||
|
Editor.TriggerEntity = data.Interactor;
|
||||||
|
SetComponent(data.Target, Editor);
|
||||||
|
}
|
||||||
|
|
||||||
|
private CTriggerProfileEditor Editor;
|
||||||
|
}
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
using Kitchen;
|
|
||||||
using KitchenMods;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace MMOKitchenReborn.Systems
|
|
||||||
{
|
|
||||||
public class ChangeColour_Override : ChangeColour, IModSystem
|
|
||||||
{
|
|
||||||
protected override bool IsPossible(ref InteractionData data)
|
|
||||||
{
|
|
||||||
bool result;
|
|
||||||
if (!Require(data.Target, out Selector))
|
|
||||||
result = false;
|
|
||||||
else
|
|
||||||
result = Require(data.Interactor, out Colour);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Perform(ref InteractionData data)
|
|
||||||
{
|
|
||||||
float num;
|
|
||||||
float s;
|
|
||||||
float v;
|
|
||||||
Color.RGBToHSV(Colour.Color, out num, out s, out v);
|
|
||||||
Colour.Color = Color.HSVToRGB(num + 0.05f, s, v);
|
|
||||||
data.Context.Set(data.Interactor, Colour);
|
|
||||||
}
|
|
||||||
|
|
||||||
private CColourSelector Selector;
|
|
||||||
|
|
||||||
private CPlayerColour Colour;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
using Kitchen;
|
|
||||||
using KitchenMods;
|
|
||||||
|
|
||||||
namespace MMOKitchenReborn.Systems
|
|
||||||
{
|
|
||||||
public class SwapCosmetics_Override : SwapCosmetics, IModSystem
|
|
||||||
{
|
|
||||||
protected override bool IsPossible(ref InteractionData data)
|
|
||||||
{
|
|
||||||
base.IsPossible(ref data);
|
|
||||||
bool result;
|
|
||||||
if (!Require(data.Target, out Selector))
|
|
||||||
result = false;
|
|
||||||
else
|
|
||||||
result = Require(data.Interactor, out Cosmetics);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Perform(ref InteractionData data)
|
|
||||||
{
|
|
||||||
base.Perform(ref data);
|
|
||||||
}
|
|
||||||
|
|
||||||
private CCosmeticSelector Selector;
|
|
||||||
|
|
||||||
private CPlayerCosmetics Cosmetics;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user