diff --git a/CleverGirl/CleverGirl/CleverGirl.csproj b/CleverGirl/CleverGirl/CleverGirl.csproj
index b6b82c5..8582c93 100644
--- a/CleverGirl/CleverGirl/CleverGirl.csproj
+++ b/CleverGirl/CleverGirl/CleverGirl.csproj
@@ -9,7 +9,7 @@
Properties
CleverGirl
CleverGirl
- v4.7.1
+ v4.7.2
512
true
@@ -44,17 +44,20 @@
..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\Mods\ModTek\0Harmony.dll
-
- ..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\Assembly-CSharp.dll
+
+ False
+ E:\steam\SteamApps\common\BATTLETECH\BattleTech_Data\Managed\Assembly-CSharp.dll
..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\BattleTech.Common.dll
-
- ..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\Mods\CustomAmmoCategories\CustomAmmoCategories.dll
+
+ False
+ E:\steam\SteamApps\common\BATTLETECH\Mods\CustomAmmoCategories\CustomAmmoCategories.dll
-
- ..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\Mods\CustomComponents\CustomComponents.dll
+
+ False
+ E:\steam\SteamApps\common\BATTLETECH\Mods\CustomComponents\CustomComponents.dll
..\..\..\IRBTModUtils\IRBTModUtils\IRBTModUtils\bin\Debug\IRBTModUtils.dll
@@ -68,11 +71,12 @@
-
- ..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\UnityEngine.dll
+
+ False
+ E:\steam\SteamApps\common\BATTLETECH\BattleTech_Data\Managed\UnityEngine.dll
- ..\..\..\..\..\..\..\..\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\UnityEngine.CoreModule.dll
+ E:\steam\SteamApps\common\BATTLETECH\BattleTech_Data\Managed\UnityEngine.CoreModule.dll
diff --git a/CleverGirl/CleverGirl/Helper/AttackEvaluatorHelper.cs b/CleverGirl/CleverGirl/Helper/AttackEvaluatorHelper.cs
index c58ee44..8bd5194 100644
--- a/CleverGirl/CleverGirl/Helper/AttackEvaluatorHelper.cs
+++ b/CleverGirl/CleverGirl/Helper/AttackEvaluatorHelper.cs
@@ -93,7 +93,7 @@ public CandidateWeapons(AbstractActor attacker, ICombatant target) {
$"or has no LOF, skipping.");
}
- if (cWeapon.First.Category == WeaponCategory.AntiPersonnel) {
+ if (cWeapon.First.WeaponCategoryValue.IsSupport) {
Mod.Log.Debug($" ({cWeapon.First.defId}) is anti-personnel, adding to melee and DFA sets.");
MeleeWeapons.Add(cWeapon);
DFAWeapons.Add(cWeapon);
@@ -315,7 +315,7 @@ public static CalledShotAttackOrderInfo MakeCalledShotOrder(AbstractActor attack
Mech mech2 = attackingUnit as Mech;
for (int i = 0; i < evaluatedAttack.WeaponList.Count; i++) {
Weapon weapon = evaluatedAttack.WeaponList[i];
- if (weapon.Category == WeaponCategory.Melee || weapon.Type == WeaponType.Melee || (mech2 != null && (weapon == mech2.DFAWeapon || weapon == mech2.MeleeWeapon))) {
+ if (weapon.WeaponCategoryValue.IsMelee|| weapon.Type == WeaponType.Melee || (mech2 != null && (weapon == mech2.DFAWeapon || weapon == mech2.MeleeWeapon))) {
return null;
}
}
diff --git a/CleverGirl/CleverGirl/Helper/CACHelper.cs b/CleverGirl/CleverGirl/Helper/CACHelper.cs
index a74b309..381776b 100644
--- a/CleverGirl/CleverGirl/Helper/CACHelper.cs
+++ b/CleverGirl/CleverGirl/Helper/CACHelper.cs
@@ -26,7 +26,7 @@ public static Dictionary UsableModes(Weapon weapon) {
foreach (WeaponMode weaponMode in availableModes) {
CustomAmmoCategory ammoCategory = CustomAmmoCategories.find(weapon.AmmoCategoryValue.ToString());
// The weapon defaults to the base ammo type
- if (extWeaponDef.AmmoCategory.BaseCategory == weapon.AmmoCategory) { ammoCategory = extWeaponDef.AmmoCategory; }
+ if (extWeaponDef.AmmoCategory.BaseCategory == weapon.AmmoCategoryValue) { ammoCategory = extWeaponDef.AmmoCategory; }
// The weapon mode doesn't match the default ammo type, change
if (weaponMode.AmmoCategory.Index != ammoCategory.Index) { ammoCategory = weaponMode.AmmoCategory; }
// Hardcode the comparison here b/c CustomAmmoCategories.NotSetCustomAmmoCategoty.Index is private
diff --git a/CleverGirl/CleverGirl/app.config b/CleverGirl/CleverGirl/app.config
index faaf51e..3b11353 100644
--- a/CleverGirl/CleverGirl/app.config
+++ b/CleverGirl/CleverGirl/app.config
@@ -1,11 +1,11 @@
-
+
-
-
+
+
-
+