diff --git a/HookahPlace/res/hookahunlockableassets b/HookahPlace/res/hookahunlockableassets index b6af7e5..b9e4466 100644 Binary files a/HookahPlace/res/hookahunlockableassets and b/HookahPlace/res/hookahunlockableassets differ diff --git a/HookahPlace/src/Content/NukeDawnLibConfig.cs b/HookahPlace/src/Content/NukeDawnLibConfig.cs deleted file mode 100644 index d24402e..0000000 --- a/HookahPlace/src/Content/NukeDawnLibConfig.cs +++ /dev/null @@ -1,22 +0,0 @@ -using BepInEx.Configuration; -using Dusk; - -namespace HookahPlace.Content; - -internal static class NukeDawnLibConfig -{ - static internal void NukeUnlockable(ConfigFile config, string heading, string name, int cost) - { - heading = $"{heading} Options"; - var costName = $"{name} | Cost"; - var disclaimer = "Sorry, this is not configurable. This is a dirty hack to suppress DawnLib/DuskMod from allowing any configurability here."; - - var ctx = new ConfigContext(config, heading); - - var enabledEntry = ctx.Bind("Enabled", disclaimer, true); - enabledEntry.Value = true; - - var costEntry = ctx.Bind(costName, disclaimer, cost); - costEntry.Value = cost; - } -} diff --git a/HookahPlace/src/Content/HookahContentHandler.cs b/HookahPlace/src/HookahContentHandler.cs similarity index 74% rename from HookahPlace/src/Content/HookahContentHandler.cs rename to HookahPlace/src/HookahContentHandler.cs index 26a96d0..29dfabe 100644 --- a/HookahPlace/src/Content/HookahContentHandler.cs +++ b/HookahPlace/src/HookahContentHandler.cs @@ -4,12 +4,8 @@ namespace HookahPlace.Content; public class HookahContentHandler : ContentHandler { - const int HOOKAH_PRICE = 130; - public HookahContentHandler(DuskMod mod) : base(mod) { - NukeDawnLibConfig.NukeUnlockable(HookahPlace.Config, "HookahUnlockable", "Hookah", HOOKAH_PRICE); - if (!RegisterContent("hookahunlockableassets", out DefaultBundle? bundle, forceEnabled: true) || bundle == null) { HookahPlace.Logger.LogError($"Failed to register content");