Names can have a hyphen as last character apparently.

This commit is contained in:
Ottermandias 2022-12-03 20:42:19 +01:00
parent 2e272f8e3a
commit e221c275a2
2 changed files with 7 additions and 2 deletions

View file

@ -345,7 +345,7 @@ public partial class ActorManager
last = current;
}
return part[^1] != '-';
return true;
}
private static bool CheckNamePart(ReadOnlySpan<byte> part, int minLength, int maxLength)
@ -375,7 +375,7 @@ public partial class ActorManager
last = current;
}
return part[^1] != (byte)'-';
return true;
}
/// <summary> Checks if the world is a valid public world or ushort.MaxValue (any world). </summary>

View file

@ -278,6 +278,11 @@ public partial class ConfigWindow
return true;
}
ImGui.SameLine();
ImGuiComponents.HelpMarker( "- Bell Retainers also apply to Mannequins named after them, but not to outdoor retainers, since they only carry their owners name.\n"
+ "- Some NPCs are available as Battle- and Event NPCs and need to be setup for both if desired.\n"
+ "- Battle- and Event NPCs may apply to more than one ID if they share the same name. This is language dependent. If you change your clients language, verify that your collections are still correctly assigned." );
return false;
}