Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed limit of creation of characters in DEBUGGING = 1 #594

Merged
merged 1 commit into from
May 29, 2024
Merged
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
25 changes: 16 additions & 9 deletions Codigo/CharacterPersistence.bas
Original file line number Diff line number Diff line change
Expand Up @@ -402,22 +402,29 @@ ErrorHandler:
End Function


''' <summary>
''' Returns the maximum number of characters allowed for a given user tier.
''' </summary>
''' <param name="tier">The user tier.</param>
''' <returns>The maximum number of characters allowed.</returns>
Public Function MaxCharacterForTier(ByVal tier As e_TipoUsuario)
Select Case tier

#If DEBUGGING Then
MaxCharacterForTier = 10
#Else
Select Case tier
Case e_TipoUsuario.tAventurero
MaxCharacterForTier = 3
MaxCharacterForTier = 3
Case e_TipoUsuario.tHeroe
MaxCharacterForTier = 5
MaxCharacterForTier = 5
Case e_TipoUsuario.tLeyenda
MaxCharacterForTier = 10
Case e_TipoUsuario.tNormal
MaxCharacterForTier = 1
MaxCharacterForTier = 10
Case Else
MaxCharacterForTier = 1
End Select
MaxCharacterForTier = 1
End Select
#End If
End Function


Public Function GetPatronTierFromAccountID(ByVal account_id) As e_TipoUsuario
On Error GoTo ErrorHandler_GetPatronTierFromAccountID
GetPatronTierFromAccountID = e_TipoUsuario.tNormal
Expand Down