diff --git a/RogueLibsCore/Hooks/Effects/EffectInfo.cs b/RogueLibsCore/Hooks/Effects/EffectInfo.cs index d7da7cc86..1b7f69ef8 100644 --- a/RogueLibsCore/Hooks/Effects/EffectInfo.cs +++ b/RogueLibsCore/Hooks/Effects/EffectInfo.cs @@ -53,7 +53,7 @@ private EffectInfo(Type type) throw new ArgumentException($"The specified {nameof(type)} is not a {nameof(CustomEffect)}.", nameof(type)); EffectNameAttribute attr = type.GetCustomAttributes().FirstOrDefault(); - Name = attr?.Name ?? type.FullName; + Name = attr?.Name ?? type.Name; EffectParametersAttribute parsAttr = type.GetCustomAttributes().FirstOrDefault(); if (parsAttr is null) diff --git a/RogueLibsCore/Hooks/Items/ItemInfo.cs b/RogueLibsCore/Hooks/Items/ItemInfo.cs index 05c58e32d..e12463cbb 100644 --- a/RogueLibsCore/Hooks/Items/ItemInfo.cs +++ b/RogueLibsCore/Hooks/Items/ItemInfo.cs @@ -51,7 +51,7 @@ private ItemInfo(Type type) throw new ArgumentException($"{nameof(type)} does not inherit from {nameof(CustomItem)}!", nameof(type)); ItemNameAttribute nameAttr = type.GetCustomAttributes().FirstOrDefault(); - Name = nameAttr?.Name ?? type.FullName; + Name = nameAttr?.Name ?? type.Name; string[] categories = type.GetCustomAttributes().SelectMany(c => c.Categories).Distinct().ToArray(); Categories = new ReadOnlyCollection(categories); diff --git a/RogueLibsCore/Hooks/Traits/TraitInfo.cs b/RogueLibsCore/Hooks/Traits/TraitInfo.cs index 48c8c98d7..6d05e95b7 100644 --- a/RogueLibsCore/Hooks/Traits/TraitInfo.cs +++ b/RogueLibsCore/Hooks/Traits/TraitInfo.cs @@ -37,7 +37,7 @@ private TraitInfo(Type type) throw new ArgumentException($"The specified type is not a {nameof(CustomTrait)}!", nameof(type)); TraitNameAttribute nameAttr = type.GetCustomAttributes().FirstOrDefault(); - Name = nameAttr?.Name ?? type.FullName; + Name = nameAttr?.Name ?? type.Name; } } ///