diff --git a/README.md b/README.md index 45363758..398ecad0 100644 --- a/README.md +++ b/README.md @@ -446,4 +446,5 @@ Please see [CONTRIBUTING.md](/CONTRIBUTING.md) for details on compiling V+ for d * An 'Hachidan' N. - https://github.com/ahnguyen09 * Abra - https://github.com/Abrackadabra * Increddibelly - https://github.com/increddibelly -* Radvo - https://github.com/Radvo \ No newline at end of file +* Radvo - https://github.com/Radvo +* Shawn - https://github.com/shawnwallace \ No newline at end of file diff --git a/ValheimPlus/Configurations/Configuration.cs b/ValheimPlus/Configurations/Configuration.cs index 115f6e94..8bd2c17f 100644 --- a/ValheimPlus/Configurations/Configuration.cs +++ b/ValheimPlus/Configurations/Configuration.cs @@ -23,6 +23,7 @@ public class Configuration public KilnConfiguration Kiln { get; set; } public WindmillConfiguration Windmill { get; set; } public SpinningWheelConfiguration SpinningWheel { get; set; } + public EitrRefineryConfiguration EitrRefinery { get; set; } public MapConfiguration Map { get; set; } public PlayerConfiguration Player { get; set; } public ServerConfiguration Server { get; set; } diff --git a/ValheimPlus/Configurations/Sections/EitrRefineryConfiguration.cs b/ValheimPlus/Configurations/Sections/EitrRefineryConfiguration.cs new file mode 100644 index 00000000..136ca858 --- /dev/null +++ b/ValheimPlus/Configurations/Sections/EitrRefineryConfiguration.cs @@ -0,0 +1,19 @@ +namespace ValheimPlus.Configurations.Sections +{ + public class EitrRefineryConfiguration : ServerSyncConfig + { + public int maximumSap { get; internal set; } = 20; + + public int maximumSoftTissue { get; internal set; } = 20; + + public float productionSpeed { get; internal set; } = 40; + + public bool autoDeposit { get; internal set; } = false; + + public bool autoFuel { get; internal set; } = false; + + public bool ignorePrivateAreaCheck { get; internal set; } = true; + + public float autoRange { get; internal set; } = 10; + } +} diff --git a/ValheimPlus/Configurations/Sections/SpinningWheelConfiguration.cs b/ValheimPlus/Configurations/Sections/SpinningWheelConfiguration.cs index dc9913e2..064ff417 100644 --- a/ValheimPlus/Configurations/Sections/SpinningWheelConfiguration.cs +++ b/ValheimPlus/Configurations/Sections/SpinningWheelConfiguration.cs @@ -4,8 +4,8 @@ public class SpinningWheelConfiguration : ServerSyncConfigfalse - + ..\packages\HarmonyX.2.10.0\lib\net45\0Harmony.dll @@ -343,6 +343,7 @@ + diff --git a/valheim_plus.cfg b/valheim_plus.cfg index 32a8340e..f66fb08e 100644 --- a/valheim_plus.cfg +++ b/valheim_plus.cfg @@ -1001,6 +1001,35 @@ ignorePrivateAreaCheck=true autoRange=10 +[EitrRefinery] + +; Change false to true to enable this section. https://valheim.plus/documentation/list#EitrRefinery +enabled = false + +; Maximum amount of sap in an Eitr Refinery. +maximumSap = 20 + +; Maximum amount of soft tissue in an Eitr Refinery. +maximumSoftTissue = 20 + +; The time it takes for the Eitr Refinery to produce a single eitr in seconds. +productionSpeed = 40 + +; Instead of dropping the items, they will be placed inside the nearest nearby chests. +autoDeposit = true + +; The Eitr Refinery will pull sap and soft tissue from nearby chests to be automatically added to it when it's empty. +autoFuel = true + +; This option prevents the Eitr Refinery to pull items from warded areas if it isn't placed inside of it. +; For convenience, we recommend this to be set to true. +ignorePrivateAreaCheck = true + +; The range of the chest detection for the auto deposit and auto fuel features. +; Maximum is 50 +autoRange = 5 + + [PlayerProjectile] ; Change false to true to enable this section. https://valheim.plus/documentation/list#PlayerProjectile