From 4f5c9fdea9bc948a03b729967f8e8ba0a5b9a6d4 Mon Sep 17 00:00:00 2001 From: Lachlan Leone Date: Mon, 4 Sep 2023 05:13:56 +1000 Subject: [PATCH] v0.2.1 --- .gitignore | 1 + MMOKitchen/Changelogs/v0.2.1.MD | 3 ++ MMOKitchen/MMOKitchen.csproj | 15 +-------- MMOKitchen/Main.cs | 2 +- MMOKitchen/Systems/AnyProfileEditor.cs | 21 +++++++++++++ MMOKitchen/Systems/ChangeColour_Override.cs | 33 -------------------- MMOKitchen/Systems/SwapCosmetics_Override.cs | 28 ----------------- 7 files changed, 27 insertions(+), 76 deletions(-) create mode 100644 MMOKitchen/Changelogs/v0.2.1.MD create mode 100644 MMOKitchen/Systems/AnyProfileEditor.cs delete mode 100644 MMOKitchen/Systems/ChangeColour_Override.cs delete mode 100644 MMOKitchen/Systems/SwapCosmetics_Override.cs diff --git a/.gitignore b/.gitignore index 22e48f4..20d436d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ bin/ obj/ .vs/ .DS_Store +.idea diff --git a/MMOKitchen/Changelogs/v0.2.1.MD b/MMOKitchen/Changelogs/v0.2.1.MD new file mode 100644 index 0000000..d88b84c --- /dev/null +++ b/MMOKitchen/Changelogs/v0.2.1.MD @@ -0,0 +1,3 @@ +# Release Notes v0.2.1 + +- Players can now use other player's cosmetic stations. \ No newline at end of file diff --git a/MMOKitchen/MMOKitchen.csproj b/MMOKitchen/MMOKitchen.csproj index 1701095..0ae5110 100644 --- a/MMOKitchen/MMOKitchen.csproj +++ b/MMOKitchen/MMOKitchen.csproj @@ -6,19 +6,6 @@ - + - - - - H:\SteamLibrary\steamapps\common\PlateUp\PlateUp\PlateUp_Data\Managed\Discord.dll - - - H:\SteamLibrary\steamapps\common\PlateUp\PlateUp\PlateUp_Data\Managed\Facepunch.Steamworks.Win64.dll - - - ..\..\..\..\Libraries\KitchenLib\KitchenLib-Workshop.dll - - - diff --git a/MMOKitchen/Main.cs b/MMOKitchen/Main.cs index a1e0a72..69ed74a 100644 --- a/MMOKitchen/Main.cs +++ b/MMOKitchen/Main.cs @@ -15,7 +15,7 @@ namespace MMOKitchenReborn public const string MOD_ID = "mmokitchen"; public const string MOD_NAME = "MMO Kitchen"; 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 static PreferenceManager manager; diff --git a/MMOKitchen/Systems/AnyProfileEditor.cs b/MMOKitchen/Systems/AnyProfileEditor.cs new file mode 100644 index 0000000..1141c4b --- /dev/null +++ b/MMOKitchen/Systems/AnyProfileEditor.cs @@ -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; +} \ No newline at end of file diff --git a/MMOKitchen/Systems/ChangeColour_Override.cs b/MMOKitchen/Systems/ChangeColour_Override.cs deleted file mode 100644 index c224609..0000000 --- a/MMOKitchen/Systems/ChangeColour_Override.cs +++ /dev/null @@ -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; - } -} diff --git a/MMOKitchen/Systems/SwapCosmetics_Override.cs b/MMOKitchen/Systems/SwapCosmetics_Override.cs deleted file mode 100644 index 831d02e..0000000 --- a/MMOKitchen/Systems/SwapCosmetics_Override.cs +++ /dev/null @@ -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; - } -}