-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,25 +62,15 @@ public GameLiving InterceptTarget | |
get { return m_interceptTarget; } | ||
} | ||
|
||
/// <summary> | ||
/// chance to intercept | ||
/// </summary> | ||
public int InterceptChance | ||
{ | ||
get | ||
{ | ||
GamePet pet = InterceptSource as GamePet; | ||
if (pet.Brain is BrittleBrain) | ||
return 100; | ||
else if (pet is BDSubPet) | ||
// Patch 1.123: The intercept chance on the Fossil Defender has been reduced by 20%. | ||
// Can't find documentation for previous intercept chance, so assuming 50% | ||
return 30; | ||
else if (pet != null) | ||
// Patch 1.125: Reduced the spirit warrior's intercept chance from 75% to 60% and intercept radius from 150 to 125 | ||
return 60; | ||
else | ||
return 50; | ||
if(pet == null) return 50; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
NetDwarf
Author
Contributor
|
||
else if (pet is BDSubPet) return 30; | ||
else if (pet.Brain is BrittleBrain) return 100; | ||
else return 60; | ||
} | ||
} | ||
|
||
|
No offense intended (I'm not totally familiar with DOL/history, maybe you've been the sole maintainer for some time?) - Just randomly browsing things - what's the benefit to stripping the comments?
I'm guessing the bug was that a null check came after a property reference on the potential null, so the restructure makes sense, but you lost a lot of useful context and its more challenging to read (and formatted wrong)