some tweaks

This commit is contained in:
Aaron Kimbre 2023-06-23 01:10:06 -05:00
parent dc96fcba85
commit 907e045904
2 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#include "VendorComponent.h" #include "VendorComponent.h"
#include <BitStream.h> #include "BitStream.h"
#include "Game.h" #include "Game.h"
#include "dServer.h" #include "dServer.h"

View File

@ -279,6 +279,9 @@ void Entity::Initialize() {
break; break;
case eReplicaComponentType::VENDOR: case eReplicaComponentType::VENDOR:
AddComponent<VendorComponent>(); AddComponent<VendorComponent>();
if (!HasComponent(eReplicaComponentType::PROXIMITY_MONITOR)) {
AddComponent<ProximityMonitorComponent>();
}
break; break;
case eReplicaComponentType::INVENTORY: case eReplicaComponentType::INVENTORY:
AddComponent<InventoryComponent>(); AddComponent<InventoryComponent>();
@ -409,6 +412,12 @@ void Entity::Initialize() {
case eReplicaComponentType::BUILD_BORDER: case eReplicaComponentType::BUILD_BORDER:
AddComponent<BuildBorderComponent>(); AddComponent<BuildBorderComponent>();
break; break;
case eReplicaComponentType::DONATION_VENDOR:
AddComponent<DonationVendorComponent>();
if (!HasComponent(eReplicaComponentType::PROXIMITY_MONITOR)) {
AddComponent<ProximityMonitorComponent>();
}
break;
case eReplicaComponentType::GHOST: case eReplicaComponentType::GHOST:
case eReplicaComponentType::SPAWN: case eReplicaComponentType::SPAWN:
case eReplicaComponentType::MODULAR_BUILD: case eReplicaComponentType::MODULAR_BUILD:
@ -469,9 +478,6 @@ void Entity::Initialize() {
case eReplicaComponentType::USER_CONTROL: case eReplicaComponentType::USER_CONTROL:
case eReplicaComponentType::IGNORE_LIST: case eReplicaComponentType::IGNORE_LIST:
case eReplicaComponentType::INTERACTION_MANAGER: case eReplicaComponentType::INTERACTION_MANAGER:
case eReplicaComponentType::DONATION_VENDOR:
AddComponent<DonationVendorComponent>();
break;
case eReplicaComponentType::COMBAT_MEDIATOR: case eReplicaComponentType::COMBAT_MEDIATOR:
case eReplicaComponentType::ACHIEVEMENT_VENDOR: case eReplicaComponentType::ACHIEVEMENT_VENDOR:
case eReplicaComponentType::GATE_RUSH_CONTROL: case eReplicaComponentType::GATE_RUSH_CONTROL: