Skip to content

Instantly share code, notes, and snippets.

@egocarib
Created December 25, 2020 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egocarib/5eeef0552d415cf81ee7e543490d74d7 to your computer and use it in GitHub Desktop.
Save egocarib/5eeef0552d415cf81ee7e543490d74d7 to your computer and use it in GitHub Desktop.
A wish that will output the zone tiers of all world map parasangs into Player.log
[XRL.Wish.HasWishCommand]
class WorldZoneTierWish
{
[XRL.Wish.WishCommand(Command = "dumpzonetiers")]
public static void DumpZoneTiers()
{
string tierMap = "\n";
for (int j = 0; j < 25; j++)
{
for (int i = 0; i < 80; i++)
{
int zoneTier = XRL.World.ZoneManager.instance.GetZoneTier("JoppaWorld", i, j, 10);
tierMap += $"{zoneTier}";
}
tierMap += "\n";
}
XRL.Core.XRLCore.Log($"Zone Tier Map:\n{tierMap}\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment