Skip to content

Commit

Permalink
fixes old mentions, also manifest file is okay now
Browse files Browse the repository at this point in the history
  • Loading branch information
OsaPL committed Jul 27, 2021
1 parent d1b78fe commit b7632e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Osa.BulletKinesis/BulletKinesis/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"hookgen.conf": "deli:monomod.hookgen"
},
"setup": {
"Osa.BulletGrabber.dll": "deli:assembly"
"Osa.BulletKinesis.dll": "deli:assembly"
}
}
}
4 changes: 4 additions & 0 deletions Osa.BulletKinesis/Osa.BulletKinesis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<HintPath>..\..\TakeAndHoldSplitter\Osa.TakeAndHoldSplitter\dependencies\MMHOOK_Assembly-CSharp.dll</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
<Folder Include="resources" />
</ItemGroup>

<PropertyGroup Label="UserPaths">
<ResourcesPath>$(MSBuildProjectDirectory)</ResourcesPath>
Expand Down
12 changes: 6 additions & 6 deletions Osa.BulletKinesis/src/BulletKinesis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public BulletKinesis()
{
// There is 1 log message in each of the methods here.
// Run this mod to see the order of execution logged to console.
Logger.LogInfo("BulletGrabber loading...");
Logger.LogInfo("BulletKinesis loading...");

// Hook to the setup stage (the first stage we can access)
// Do not forget! Awake is still ran before ANY event.
Expand All @@ -44,10 +44,10 @@ private void Awake()
// use an asset loader of some sort.
private void LoadCfg()
{
var hand = Config.Bind("BulletGrabber", "HandMode", "both", "Defines which hands can grab bullets. Valid options are: 'both', 'left' or 'right'.");
var delay = Config.Bind("BulletGrabber", "Delay", 150, "Defines delay (in milliseconds) between each bullet grab.");
var range = Config.Bind("BulletGrabber", "Range", Hooks.MaxLegitRange, $"Defines range (in meters) of grab. Setting it higher than {Hooks.MaxLegitRange} will disable TnH scoring.");
var bulet = Config.Bind("BulletGrabber", "BulletGrabMode", "firstTheSame", "Defines how compatible bullets finder should work. Valid options are: 'onlyTheSame', 'firstTheSame' or 'closest'.");
var hand = Config.Bind("BulletKinesis", "HandMode", "both", "Defines which hands can grab bullets. Valid options are: 'both', 'left' or 'right'.");
var delay = Config.Bind("BulletKinesis", "Delay", 150, "Defines delay (in milliseconds) between each bullet grab.");
var range = Config.Bind("BulletKinesis", "Range", Hooks.MaxLegitRange, $"Defines range (in meters) of grab. Setting it higher than {Hooks.MaxLegitRange} will disable TnH scoring.");
var bulet = Config.Bind("BulletKinesis", "BulletGrabMode", "firstTheSame", "Defines how compatible bullets finder should work. Valid options are: 'onlyTheSame', 'firstTheSame' or 'closest'.");

Logger.LogInfo($"Loaded in: '{hand.Value}' hand(s) mode");
Logger.LogInfo($"Loaded in: '{delay.Value}' ms of delay");
Expand All @@ -70,7 +70,7 @@ private void OnDestroy()

private void Start()
{
Logger.LogInfo("BulletGrabber loaded.");
Logger.LogInfo("BulletKinesis loaded.");
}
}
}

0 comments on commit b7632e9

Please sign in to comment.