mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 10:15:27 +00:00
refactor(component): vendors share the client's base vendor component
LWOBaseVendorComponent is the base of the client's vendor, donation vendor and achievement vendor; DLU's vendor logic becomes BaseVendorComponent with VendorComponent, DonationVendorComponent and AchievementVendorComponent all built on it (the last two derived from VendorComponent before). Nothing sent changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,12 +9,12 @@
|
||||
#include "UserManager.h"
|
||||
#include "CDMissionsTable.h"
|
||||
|
||||
AchievementVendorComponent::AchievementVendorComponent(Entity* parent, const int32_t componentID) : VendorComponent(parent, componentID) {
|
||||
AchievementVendorComponent::AchievementVendorComponent(Entity* parent, const int32_t componentID) : BaseVendorComponent(parent, componentID) {
|
||||
}
|
||||
|
||||
// The base vendor's template load, then the achievement vendor's stock
|
||||
void AchievementVendorComponent::LoadDataFromTemplate() {
|
||||
VendorComponent::LoadDataFromTemplate();
|
||||
BaseVendorComponent::LoadDataFromTemplate();
|
||||
RefreshInventory(true);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user