Skip to content

Commit

Permalink
Merge pull request #594 from ao-org/debugging-no-limit-characters
Browse files Browse the repository at this point in the history
Removed limit of creation of characters in DEBUGGING = 1
  • Loading branch information
RecoX authored May 29, 2024
2 parents 838f9ed + 1a06e37 commit f754176
Showing 1 changed file with 16 additions and 9 deletions.
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

0 comments on commit f754176

Please sign in to comment.