Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions utils/forms/profile_form.simba
Original file line number Diff line number Diff line change
Expand Up @@ -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;

(*
Expand All @@ -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;


Expand Down
5 changes: 3 additions & 2 deletions utils/worldfetcher.simba
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))));
Expand Down
Loading