diff --git a/utils/forms/profile_form.simba b/utils/forms/profile_form.simba index eb3d9d6c..55f2e455 100644 --- a/utils/forms/profile_form.simba +++ b/utils/forms/profile_form.simba @@ -560,9 +560,9 @@ Converts a world location enum to its display string. *) function TProfileForm.GetLocationString(loc: EWorldLocation): String; const - LOCATION_NAMES: array [EWorldLocation] of String = ['Germany', 'UK', 'USA', 'Australia']; + NAMES: TStringArray = ['Germany', 'UK', 'USA', 'Australia']; begin - Result := LOCATION_NAMES[loc]; + Result := NAMES[loc]; end; (* @@ -574,9 +574,9 @@ Converts a world type enum to its display string. *) function TProfileForm.GetTypeString(worldType: EWorldType): String; const - TYPE_NAMES: array [EWorldType] of String = ['F2P', 'Members']; + NAMES: TStringArray = ['F2P', 'Members']; begin - Result := TYPE_NAMES[worldType]; + Result := NAMES[worldType]; end; diff --git a/utils/worldfetcher.simba b/utils/worldfetcher.simba index a2894f9a..de233a9a 100644 --- a/utils/worldfetcher.simba +++ b/utils/worldfetcher.simba @@ -69,11 +69,11 @@ An enumeration representing world activity categories. (* ## type EWorldLocation ```pascal -EWorldLocation = enum(GERMANY, UNITED_KINGDOM, UNITED_STATES, AUSTRALIA); +EWorldLocation = enum(GERMANY, UNITED_KINGDOM, UNITED_STATES, AUSTRALIA, BRAZIL); ``` An enumeration representing the geographical location of world servers. *) - EWorldLocation = enum(GERMANY, UNITED_KINGDOM, UNITED_STATES, AUSTRALIA); + EWorldLocation = enum(GERMANY, UNITED_KINGDOM, UNITED_STATES, AUSTRALIA, BRAZIL); (* ## type EWorldSort @@ -181,6 +181,7 @@ begin 'UNITED KINGDOM': Result := EWorldLocation.UNITED_KINGDOM; 'UNITED STATES': Result := EWorldLocation.UNITED_STATES; 'AUSTRALIA': Result := EWorldLocation.AUSTRALIA; + 'BRAZIL': Result := EWorldLocation.BRAZIL; else begin Result := EWorldLocation(Random(0, Ord(High(EWorldLocation))));