From 6f3950dae7886c05e61b994b7c90c036c5aad082 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Wed, 25 Oct 2023 11:44:57 -0500 Subject: [PATCH] chore: remove uneeded old perm map check (#1240) and remove unused softban perm RIP DLU beta --- dCommon/dEnums/ePermissionMap.h | 14 -------------- dGame/Character.cpp | 9 --------- 2 files changed, 23 deletions(-) diff --git a/dCommon/dEnums/ePermissionMap.h b/dCommon/dEnums/ePermissionMap.h index d15c9fd3..d3cb12e5 100644 --- a/dCommon/dEnums/ePermissionMap.h +++ b/dCommon/dEnums/ePermissionMap.h @@ -27,20 +27,6 @@ enum class ePermissionMap : uint64_t { * The character has restricted chat access, bit 6. */ RestrictedChatAccess = 0x1 << 6, - - // - // Combined permissions - // - - /** - * The character is marked as 'old', restricted from trade and mail. - */ - Old = RestrictedTradeAccess | RestrictedMailAccess, - - /** - * The character is soft banned, restricted from trade, mail, and chat. - */ - SoftBanned = RestrictedTradeAccess | RestrictedMailAccess | RestrictedChatAccess, }; #endif //!__EPERMISSIONMAP__H__ diff --git a/dGame/Character.cpp b/dGame/Character.cpp index 9c527ee5..401af2d4 100644 --- a/dGame/Character.cpp +++ b/dGame/Character.cpp @@ -555,15 +555,6 @@ void Character::OnZoneLoad() { return; } - /** - * Restrict old character to 1 million coins - */ - if (HasPermission(ePermissionMap::Old)) { - if (GetCoins() > 1000000) { - SetCoins(1000000, eLootSourceType::NONE); - } - } - auto* inventoryComponent = m_OurEntity->GetComponent(); if (inventoryComponent == nullptr) {