Skip to content

Commit

Permalink
update again woohoo
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamKracker committed Jun 9, 2023
1 parent c5565e6 commit 48bdbcd
Show file tree
Hide file tree
Showing 10 changed files with 563 additions and 540 deletions.
8 changes: 4 additions & 4 deletions Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace OmegaCrosspathing;

public static class ReflectionHelper
{
private static PropertyInfo GetPropertyInfo(Type type, string propertyName)
public static PropertyInfo GetPropertyInfo(Type type, string propertyName)
{
PropertyInfo propInfo = null;
do
Expand Down Expand Up @@ -33,12 +33,12 @@ public static object GetPropertyValue(this object obj, string propertyName)
public static void SetPropertyValue(this object obj, string propertyName, object val)
{
if (obj == null)
throw new ArgumentNullException("obj");
throw new ArgumentNullException(nameof(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));
throw new ArgumentOutOfRangeException("propertyName",
$"Couldn't find property {propertyName} in type {objType.FullName}");
propInfo.SetValue(obj, val, null);
}
}
7 changes: 5 additions & 2 deletions LATEST.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Fixed an issue with tower saving
Fixed paths-plus-plus as being a dependency
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
Loading

0 comments on commit 48bdbcd

Please sign in to comment.