Add Buff infrastructure to go through different logic paths from different patches (#5073)
Build / Linux (push) Waiting to run
Build / Windows (push) Waiting to run

This commit is contained in:
dannuic
2026-05-02 22:53:26 -06:00
committed by GitHub
parent c253734c57
commit 18df055f16
201 changed files with 2856 additions and 3105 deletions
+7 -7
View File
@@ -397,7 +397,7 @@ void QuestManager::incstat(int stat, int value) {
initiator->IncStats(stat, value);
}
void QuestManager::castspell(uint16 spell_id, uint16 target_id)
void QuestManager::castspell(int32 spell_id, uint16 target_id)
{
QuestManagerCurrentQuestVars();
@@ -416,7 +416,7 @@ void QuestManager::castspell(uint16 spell_id, uint16 target_id)
}
}
void QuestManager::selfcast(uint16 spell_id)
void QuestManager::selfcast(int32 spell_id)
{
QuestManagerCurrentQuestVars();
@@ -1242,7 +1242,7 @@ std::string QuestManager::getracename(uint16 race_id) {
return GetRaceIDName(race_id);
}
std::string QuestManager::getspellname(uint32 spell_id) {
std::string QuestManager::getspellname(int32 spell_id) {
if (!IsValidSpell(spell_id)) {
return "INVALID SPELL ID IN GETSPELLNAME";
}
@@ -4191,7 +4191,7 @@ const int QuestManager::getitemstat(uint32 item_id, std::string stat_identifier)
return EQ::InventoryProfile::GetItemStatValue(item_id, stat_identifier);
}
int QuestManager::getspellstat(uint32 spell_id, std::string stat_identifier, uint8 slot) {
int QuestManager::getspellstat(int32 spell_id, std::string stat_identifier, uint8 slot) {
QuestManagerCurrentQuestVars();
return GetSpellStatValue(spell_id, stat_identifier.c_str(), slot);
}
@@ -4294,7 +4294,7 @@ void QuestManager::CrossZoneSignal(uint8 update_type, int update_identifier, int
safe_delete(pack);
}
void QuestManager::CrossZoneSpell(uint8 update_type, uint8 update_subtype, int update_identifier, uint32 spell_id, const char* client_name) {
void QuestManager::CrossZoneSpell(uint8 update_type, uint8 update_subtype, int update_identifier, int32 spell_id, const char* client_name) {
auto pack = new ServerPacket(ServerOP_CZSpell, sizeof(CZSpell_Struct));
CZSpell_Struct* CZS = (CZSpell_Struct*)pack->pBuffer;
CZS->update_type = update_type;
@@ -4404,7 +4404,7 @@ void QuestManager::WorldWideSignal(uint8 update_type, int signal_id, uint8 min_s
safe_delete(pack);
}
void QuestManager::WorldWideSpell(uint8 update_type, uint32 spell_id, uint8 min_status, uint8 max_status) {
void QuestManager::WorldWideSpell(uint8 update_type, int32 spell_id, uint8 min_status, uint8 max_status) {
auto pack = new ServerPacket(ServerOP_WWSpell, sizeof(WWSpell_Struct));
WWSpell_Struct* WWS = (WWSpell_Struct*)pack->pBuffer;
WWS->update_type = update_type;
@@ -4429,7 +4429,7 @@ void QuestManager::WorldWideTaskUpdate(uint8 update_type, uint32 task_identifier
safe_delete(pack);
}
const SPDat_Spell_Struct* QuestManager::getspell(uint32 spell_id) {
const SPDat_Spell_Struct* QuestManager::getspell(int32 spell_id) {
if (spells[spell_id].id) {
return &spells[spell_id];
}