Skip to content

Commit

Permalink
5-2 logic, cybergrind fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPG0 committed Jun 11, 2024
1 parent 8fad610 commit feac662
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion apworld/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,6 @@ def rules(ultrakillworld):
add_rule(multiworld.get_location("5-2: Secret #1", player),
lambda state: (
can_slide(state, player, slide)
or slam_storage(state, player, slam, walljump)
or rock0_fire2(state, player, fire2)
))

Expand Down
2 changes: 1 addition & 1 deletion mod/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Core : BaseUnityPlugin
{
public const string PluginGUID = "trpg.archipelagoultrakill";
public const string PluginName = "Archipelago";
public const string PluginVersion = "2.2.1";
public const string PluginVersion = "2.2.2";

public static string workingPath;
public static string workingDir;
Expand Down
5 changes: 3 additions & 2 deletions mod/LocationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public static void GetRandomHint()

Multiworld.Session.Locations.ScoutLocationsAsync(true, locationId);
ScoutedItemInfo info = Multiworld.Session.Locations.ScoutLocationsAsync(false, locationId).Result[locationId];
string locationName = Multiworld.Session.Locations.GetLocationNameFromId(info.LocationId, Multiworld.Session.Players.GetPlayerInfo(Multiworld.Session.ConnectionInfo.Slot).Game);

string itemColor = ColorUtility.ToHtmlStringRGB(GetUKMessageColor(info.ItemName));
Color color = GetUKMessageColor(info.ItemName);
Expand All @@ -376,7 +377,7 @@ public static void GetRandomHint()
color = GetAPMessageColor(info.Flags);
}
string playerColor = ColorUtility.ToHtmlStringRGB(Colors.PlayerOther);
string locationColor = ColorUtility.ToHtmlStringRGB(GetUKMessageColor(info.LocationName.Substring(0, 3)));
string locationColor = ColorUtility.ToHtmlStringRGB(GetUKMessageColor(locationName.Substring(0, 3)));

string hint = "HINT: <color=#" + itemColor + "FF>";
hint += info.ItemName.ToUpper() + "</color> ";
Expand All @@ -390,7 +391,7 @@ public static void GetRandomHint()
color = color,
message = hint
});
if (!UIManager.displayingMessage && Core.IsPlaying) Core.uim.StartCoroutine("DisplayMessage");
if (!UIManager.displayingMessage && (Core.IsPlaying || SceneHelper.CurrentScene == "Endless")) Core.uim.StartCoroutine("DisplayMessage");
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions mod/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.2.1")]
[assembly: AssemblyFileVersion("2.2.1")]
[assembly: AssemblyVersion("2.2.2")]
[assembly: AssemblyFileVersion("2.2.2")]
5 changes: 5 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.2.2

- Fixed a logic error for 5-2: Secret #1.
- Fixed The Cyber Grind soft locking when using Hint Mode to unlock hints for other game slots.

## 2.2.1

- Updated Archipelago.MultiClient.Net to `6.0.0-rc5`.
Expand Down
2 changes: 1 addition & 1 deletion package/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Archipelago",
"version_number": "2.2.1",
"version_number": "2.2.2",
"website_url": "https://github.com/TRPG0/ArchipelagoULTRAKILL",
"description": "Connect to an Archipelago server to play ULTRAKILL randomizer.",
"dependencies": [
Expand Down

0 comments on commit feac662

Please sign in to comment.