Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
[RLR-T-44] Improve message when failing to connect to server.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar committed Oct 26, 2023
1 parent 91b72c8 commit d831cab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Randomizer/ArchipelagoManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RogueLegacyRandomizer - ArchipelagoManager.cs
// Last Modified 2023-10-26 2:02 PM
// Last Modified 2023-10-26 2:48 PM
//
// This project is based on the modified disassembly of Rogue Legacy's engine, with permission to do so by its
// original creators. Therefore, the former creators' copyright notice applies to the original disassembly.
Expand Down Expand Up @@ -87,7 +87,7 @@ public async Task<LoginFailure> TryConnect()
catch (Exception ex)
{
Disconnect();
return new (ex.ToString());
return new($"Unable to establish an initial connection to the Archipelago server @ {_connectionInfo.Url}");
}

var result = await _session.LoginAsync(
Expand Down Expand Up @@ -119,7 +119,6 @@ public async Task<LoginFailure> TryConnect()
// Build dictionary of locations with item information for fast lookup.
await BuildLocationDictionary();


// Return null to signify no error.
Ready = true;
return null;
Expand Down
3 changes: 1 addition & 2 deletions RogueLegacy/Screens/SkillScreen.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RogueLegacyRandomizer - SkillScreen.cs
// Last Modified 2023-10-24 4:27 PM
// Last Modified 2023-10-26 2:48 PM
//
// This project is based on the modified disassembly of Rogue Legacy's engine, with permission to do so by its
// original creators. Therefore, the former creators' copyright notice applies to the original disassembly.
Expand Down Expand Up @@ -978,7 +978,6 @@ public void UpdateDescriptionPlate(SkillObj skill)
{
// Set initial parameters.
var text = skill.IconName;
Console.WriteLine(text);
text = text.Replace("Locked", "");
text = text.Replace("Max", "");
_skillIcon.ChangeSprite(text);
Expand Down

0 comments on commit d831cab

Please sign in to comment.