Skip to content

Commit

Permalink
major changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamKracker committed Jun 11, 2023
1 parent 48bdbcd commit 7f6b28e
Show file tree
Hide file tree
Showing 34 changed files with 500 additions and 1,207 deletions.
14 changes: 1 addition & 13 deletions Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,9 @@ public static object GetPropertyValue(this object obj, string propertyName)
throw new ArgumentNullException("obj");
Type objType = obj.GetType();
PropertyInfo propInfo = GetPropertyInfo(objType, propertyName);
if (propInfo == null)
throw new ArgumentOutOfRangeException("propertyName",
string.Format("Couldn't find property {0} in type {1}", propertyName, objType.FullName));
return propInfo.GetValue(obj, null);
}

public static void SetPropertyValue(this object obj, string propertyName, object val)
{
if (obj == null)
throw new ArgumentNullException(nameof(obj));
Type objType = obj.GetType();
PropertyInfo propInfo = GetPropertyInfo(objType, propertyName);
if (propInfo == null)
throw new ArgumentOutOfRangeException("propertyName",
$"Couldn't find property {propertyName} in type {objType.FullName}");
propInfo.SetValue(obj, val, null);
return propInfo.GetValue(obj, null);

Check warning on line 30 in Extensions.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference return.
}
}
14 changes: 9 additions & 5 deletions LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Fixed etienne/wizard lord pheonix spawning infinite sub towers (thanks @doombubbles!)
Removed adora's blood sacrifice from being merged
Stopped Geraldo from appearing since he didnt work
Fixed some issues after leaving match and starting a new one
Fixed UI appearing over vanilla ui, when it shouldnt
Fixed an issue with showing paths-plus-plus added paths behind the ui
Created a new algorithm for merging, should have results that are less focused on "crosspathing" and more on merging
Added a toggle to the tower selection menu allowing you to toggle between vanilla and oc ui
Fixed paths-plus-plus upgrades not getting properly cleared and applying to newly placed towers
Now actually saves paths-plus-plus merged upgrades
Fixed tower highlighting getting removed after merging
Stopped hero voicelines from playing on merged towers
Fixed some issues with merging 000 towers
Fixed UI sometimes appearing on paragons
Loading

0 comments on commit 7f6b28e

Please sign in to comment.