Skip to content

Commit

Permalink
- Adding dependency on IRBTModUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
IceRaptor committed Dec 27, 2019
1 parent d0219b3 commit ef60ee5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CleverGirl/CleverGirl/CleverGirl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
<HintPath>..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\BattleTech.Common.dll</HintPath>
</Reference>
<Reference Include="CustomAmmoCategories">
<HintPath>E:\steam\SteamApps\common\BATTLETECH\Mods\CustomAmmoCategories\CustomAmmoCategories.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\Mods\CustomAmmoCategories\CustomAmmoCategories.dll</HintPath>
</Reference>
<Reference Include="CustomComponents">
<HintPath>E:\steam\SteamApps\common\BATTLETECH\Mods\CustomComponents\CustomComponents.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\Mods\CustomComponents\CustomComponents.dll</HintPath>
</Reference>
<Reference Include="IRBTModUtils">
<HintPath>..\..\..\IRBTModUtils\IRBTModUtils\IRBTModUtils\bin\Debug\IRBTModUtils.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion CleverGirl/CleverGirl/Helper/CACHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static Dictionary<WeaponMode, int> UsableModes(Weapon weapon) {
Mod.Log.Debug($" weapon: {weapon.defId} has: {availableModes.Count} modes");

foreach (WeaponMode weaponMode in availableModes) {
CustomAmmoCategory ammoCategory = CustomAmmoCategories.find(weapon.AmmoCategory.ToString());
CustomAmmoCategory ammoCategory = CustomAmmoCategories.find(weapon.AmmoCategoryValue.ToString());
// The weapon defaults to the base ammo type
if (extWeaponDef.AmmoCategory.BaseCategory == weapon.AmmoCategory) { ammoCategory = extWeaponDef.AmmoCategory; }
// The weapon mode doesn't match the default ammo type, change
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This mod for the [HBS BattleTech](http://battletechgame.com/) attempts to make t

![Jurassic Part Clever Girl](clever-girl-5b1b38.jpg)



This mod requires [https://github.com/iceraptor/IRBTModUtils/]. Grab the latest release of __IRBTModUtils__ and extract it in your Mods/ directory alongside of this mod.

## Changes

Jumping Heat change
Expand Down
8 changes: 4 additions & 4 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"Name": "CleverGirl",
"Enabled": true,
"Version": "0.3.0",
"Version": "0.3.1",
"Description": "Provides little nudges for the AI",
"Author": "IceRaptor",
"Website": "https://github.com/IceRaptor/CleverGirl",
"Contact": "",
"DLL": "CleverGirl.dll",
"DependsOn" : [ ],
"OptionallyDependsOn" : [ "CustomAmmoCategories" ],
"DependsOn" : [ "IRBTModUtils" ],
"OptionallyDependsOn" : [ "CustomAmmoCategories", "CustomComponents" ],
"Settings": {
"Debug" : true,
"Debug" : false,
"Trace" : false,
"Profile" : false
}
Expand Down

0 comments on commit ef60ee5

Please sign in to comment.