From 23ff2614676ab5892607c9d8bdb8b90b17486eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Fri, 11 Apr 2025 18:04:31 -0300 Subject: [PATCH] feat: add admin permissions in debug mode --- Maple2.Database/Storage/Game/GameStorage.User.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Maple2.Database/Storage/Game/GameStorage.User.cs b/Maple2.Database/Storage/Game/GameStorage.User.cs index ca4828ea2..75c626cfe 100644 --- a/Maple2.Database/Storage/Game/GameStorage.User.cs +++ b/Maple2.Database/Storage/Game/GameStorage.User.cs @@ -424,8 +424,9 @@ public Account CreateAccount(Account account, string password) { model.Password = BCrypt.Net.BCrypt.HashPassword(password, 13); #if DEBUG model.Currency = new AccountCurrency { - Meret = 99999 + Meret = 9_999_999, }; + model.Permissions = AdminPermissions.Admin.ToString(); #endif Context.Account.Add(model); Context.SaveChanges(); // Exception if failed.