mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
chore: remove uneeded old perm map check (#1240)
and remove unused softban perm RIP DLU beta
This commit is contained in:
parent
a5e46e2844
commit
6f3950dae7
@ -27,20 +27,6 @@ enum class ePermissionMap : uint64_t {
|
|||||||
* The character has restricted chat access, bit 6.
|
* The character has restricted chat access, bit 6.
|
||||||
*/
|
*/
|
||||||
RestrictedChatAccess = 0x1 << 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__
|
#endif //!__EPERMISSIONMAP__H__
|
||||||
|
@ -555,15 +555,6 @@ void Character::OnZoneLoad() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Restrict old character to 1 million coins
|
|
||||||
*/
|
|
||||||
if (HasPermission(ePermissionMap::Old)) {
|
|
||||||
if (GetCoins() > 1000000) {
|
|
||||||
SetCoins(1000000, eLootSourceType::NONE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
auto* inventoryComponent = m_OurEntity->GetComponent<InventoryComponent>();
|
auto* inventoryComponent = m_OurEntity->GetComponent<InventoryComponent>();
|
||||||
|
|
||||||
if (inventoryComponent == nullptr) {
|
if (inventoryComponent == nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user