diff --git a/README.md b/README.md index d68ee76..ed9b47f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ # ValensHasThePower -Allows you to configure power switches on maps to be off or on by default. \ No newline at end of file +Allows you to configure power switches on maps to be a percentage chance. By default percentage chance is 100%. + +While in game, and at the main menu before raid start press F12 on the keyboard to access the configuration in-game. + +Alternatively if you prefer a file with which you can edit you can navigate to Aki/BepInEx/config/com.Valens.HasThePower.cfg and edit the config manually. It should look like the following + +## Percentage Chance that Power will be On at Raid Start for the Customs Map. Default is 100. +# Setting type: Int32 +# Default value: 100 +Customs = 100 + +To edit the value you would want to edit where it says "Customs = 100" and change the 100 to whatever percentage you desire. \ No newline at end of file diff --git a/ValensHasThePower/PowerOn.cs b/ValensHasThePower/PowerOn.cs index 0145d03..7ebe8af 100644 --- a/ValensHasThePower/PowerOn.cs +++ b/ValensHasThePower/PowerOn.cs @@ -25,20 +25,23 @@ namespace ValensHasThePower "Hello, world!", // The default value "A greeting text to show when the game is launched"); // Description of the option to show in the config file*/ - configCustoms = Config.Bind("General.Toggles", - "Customs Power On Chance", + configCustoms = Config.Bind("General.Maps", + "Customs", 100, - "Percentage Chance that Power will be On at Raid Start for the Customs Map. Default is 100."); + "Percentage Chance that Power will be On at Raid Start for the Customs Map." + + " Default is 100."); - configInterchange = Config.Bind("General.Toggles", - "Interchange Power On Chance", + configInterchange = Config.Bind("General.Maps", + "Interchange", 100, - "Percentage Chance that Power will be On at Raid Start for the Interchange Map. Default is 100."); + "Percentage Chance that Power will be On at Raid Start for the Interchange Map." + + " Default is 100."); - configReserve = Config.Bind("General.Toggles", - "Reserve Power On Chance", + configReserve = Config.Bind("General.Maps", + "Reserve", 100, - "Percentage Chance that Power will be On at Raid Start for the Reserve Map. Default is 100."); + "Percentage Chance that Power will be On at Raid Start for the Reserve Map." + + " Default is 100."); Logger.LogInfo($"Valens...has the POWER!!!"); new PatchThePower().Enable(); diff --git a/ValensHasThePower/ValensHasThePower-1.1.0/BepInEx/com.Valens.HasThePower.cfg b/ValensHasThePower/ValensHasThePower-1.1.0/BepInEx/com.Valens.HasThePower.cfg new file mode 100644 index 0000000..f86de44 --- /dev/null +++ b/ValensHasThePower/ValensHasThePower-1.1.0/BepInEx/com.Valens.HasThePower.cfg @@ -0,0 +1,28 @@ +## Settings file was created by plugin ValensHasThePower v1.1.0 +## Plugin GUID: com.Valens.HasThePower + +[General.Maps] + +## Percentage Chance that Power will be On at Raid Start for the Customs Map. Default is 100. +# Setting type: Int32 +# Default value: 100 +Customs = 100 + +## Percentage Chance that Power will be On at Raid Start for the Interchange Map. Default is 100. +# Setting type: Int32 +# Default value: 100 +Interchange = 100 + +## Percentage Chance that Power will be On at Raid Start for the Reserve Map. Default is 100. +# Setting type: Int32 +# Default value: 100 +Reserve = 100 + +[General.Toggles] + +Customs Power On Chance = 100 + +Interchange Power On Chance = 100 + +Reserve Power On Chance = 100 + diff --git a/ValensHasThePower/ValensHasThePower-1.1.0/user/mods/ValensHasThePower-1.1.0/package.json b/ValensHasThePower/ValensHasThePower-1.1.0/user/mods/ValensHasThePower-1.1.0/package.json index 7ba621b..70bdd66 100644 --- a/ValensHasThePower/ValensHasThePower-1.1.0/user/mods/ValensHasThePower-1.1.0/package.json +++ b/ValensHasThePower/ValensHasThePower-1.1.0/user/mods/ValensHasThePower-1.1.0/package.json @@ -5,5 +5,6 @@ "license": "CC BY-NC-SA 4.0", "main": "package.js", "akiVersion": "2.3.1" + "thanks to": "CWX, Clodan/Alex" }