jubis: why are several things changed from private to public?
I don't see a good reason for this
Code:
@@ -1039,7 +1039,7 @@ namespace GilesTrinity
private static bool bMainBotPaused = false;
// Used to force-refresh dia objects at least once every XX milliseconds
- private static DateTime lastRefreshedObjects = DateTime.Today;
+ public static DateTime lastRefreshedObjects = DateTime.Today;
// This object is used for the main handling - the "current target" etc. as selected by the target-selecter, whether it be a unit, an item, a shrine, anything
// It's cached data using my own class, so I never need to hit D3 memory to "re-check" the data or to call an interact request or anything
@@ -1429,7 +1429,7 @@ namespace GilesTrinity
private static HashSet<GilesCachedACDItem> hashGilesCachedSellItems = new HashSet<GilesCachedACDItem>();
// Whether to try forcing a vendor-run for custom reasons
public static bool bGilesForcedVendoring = false;
- private static bool bWantToTownRun = false;
+ public static bool bWantToTownRun = false;
private static bool bLastTownRunCheckResult = false;
// Whether salvage/sell run should go to a middle-waypoint first to help prevent stucks
private static bool bGoToSafetyPointFirst = false;
@@ -1951,7 +1951,7 @@ namespace GilesTrinity
// **********************************************************************************************
// Grab the list of world objects
- private static void RefreshDiaObjects()
+ public static void RefreshDiaObjects()
{
// Blank current/last/next targets
Vector3 vSafePointNear = targetCurrent != null ? targetCurrent.vThisPosition : vNullLocation;
@@ -2771,7 +2771,8 @@ namespace GilesTrinity
{
try
{
- tmp_unit_bThisAttackable = (tempCommonData.GetAttribute<int>(ActorAttributeType.Invulnerable) <= 0);
+ DiaUnit thisunit = thisobj as DiaUnit;
+ tmp_unit_bThisAttackable = !thisunit.IsInvulnerable;
}
catch (Exception ex)
{
I don't see a good reason for this