mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
converted spell id's to integers and made the internal representation 322-bit
This commit is contained in:
+28
-28
@@ -277,8 +277,8 @@ public:
|
||||
bool GotoPlayerRaid(const std::string& player_name);
|
||||
|
||||
//abstract virtual function implementations required by base abstract class
|
||||
virtual bool Death(Mob* killer_mob, int64 damage, uint16 spell_id, EQ::skills::SkillType attack_skill, KilledByTypes killed_by = KilledByTypes::Killed_NPC, bool is_buff_tic = false);
|
||||
virtual void Damage(Mob* from, int64 damage, uint16 spell_id, EQ::skills::SkillType attack_skill, bool avoidable = true, int8 buffslot = -1, bool iBuffTic = false, eSpecialAttacks special = eSpecialAttacks::None);
|
||||
virtual bool Death(Mob* killer_mob, int64 damage, int32 spell_id, EQ::skills::SkillType attack_skill, KilledByTypes killed_by = KilledByTypes::Killed_NPC, bool is_buff_tic = false);
|
||||
virtual void Damage(Mob* from, int64 damage, int32 spell_id, EQ::skills::SkillType attack_skill, bool avoidable = true, int8 buffslot = -1, bool iBuffTic = false, eSpecialAttacks special = eSpecialAttacks::None);
|
||||
virtual bool HasRaid() { return (GetRaid() ? true : false); }
|
||||
virtual bool HasGroup() { return (GetGroup() ? true : false); }
|
||||
virtual Raid* GetRaid() { return entity_list.GetRaidByClient(this); }
|
||||
@@ -678,7 +678,7 @@ public:
|
||||
|
||||
inline virtual int32 GetDelayDeath() const { return aabonuses.DelayDeath + spellbonuses.DelayDeath + itembonuses.DelayDeath + 11; }
|
||||
|
||||
virtual bool CheckFizzle(uint16 spell_id);
|
||||
virtual bool CheckFizzle(int32 spell_id);
|
||||
virtual int GetCurrentBuffSlots() const;
|
||||
virtual int GetCurrentSongSlots() const;
|
||||
virtual int GetCurrentDiscSlots() const { return 1; }
|
||||
@@ -928,8 +928,8 @@ public:
|
||||
bool CanHaveSkill(EQ::skills::SkillType skill_id) const;
|
||||
void SetSkill(EQ::skills::SkillType skill_num, uint16 value);
|
||||
void AddSkill(EQ::skills::SkillType skillid, uint16 value);
|
||||
void CheckSpecializeIncrease(uint16 spell_id);
|
||||
void CheckSongSkillIncrease(uint16 spell_id);
|
||||
void CheckSpecializeIncrease(int32 spell_id);
|
||||
void CheckSongSkillIncrease(int32 spell_id);
|
||||
bool CheckIncreaseSkill(EQ::skills::SkillType skillid, Mob *against_who, int chancemodi = 0);
|
||||
void CheckLanguageSkillIncrease(uint8 language_id, uint8 teacher_skill);
|
||||
void SetLanguageSkill(uint8 language_id, uint8 language_skill);
|
||||
@@ -955,13 +955,13 @@ public:
|
||||
inline void SetDuelTarget(uint32 set_id) { duel_target = set_id; }
|
||||
inline void SetDueling(bool duel) { duelaccepted = duel; }
|
||||
// use this one instead
|
||||
void MemSpell(uint16 spell_id, int slot, bool update_client = true);
|
||||
void MemSpell(int32 spell_id, int slot, bool update_client = true);
|
||||
void UnmemSpell(int slot, bool update_client = true);
|
||||
void UnmemSpellBySpellID(int32 spell_id);
|
||||
void UnmemSpellAll(bool update_client = true);
|
||||
int FindEmptyMemSlot();
|
||||
uint16 FindMemmedSpellBySlot(int slot);
|
||||
int FindMemmedSpellBySpellID(uint16 spell_id);
|
||||
int FindMemmedSpellBySpellID(int32 spell_id);
|
||||
int MemmedCount();
|
||||
std::vector<int> GetLearnableDisciplines(uint8 min_level = 1, uint8 max_level = 0);
|
||||
std::vector<int> GetLearnedDisciplines();
|
||||
@@ -969,7 +969,7 @@ public:
|
||||
std::vector<int> GetScribeableSpells(uint8 min_level = 1, uint8 max_level = 0);
|
||||
std::vector<int> GetScribedSpells();
|
||||
// defer save used when bulk saving
|
||||
void ScribeSpell(uint16 spell_id, int slot, bool update_client = true, bool defer_save = false);
|
||||
void ScribeSpell(int32 spell_id, int slot, bool update_client = true, bool defer_save = false);
|
||||
void SaveSpells();
|
||||
void SaveDisciplines();
|
||||
|
||||
@@ -985,12 +985,12 @@ public:
|
||||
// defer save used when bulk saving
|
||||
void UnscribeSpell(int slot, bool update_client = true, bool defer_save = false);
|
||||
void UnscribeSpellAll(bool update_client = true);
|
||||
void UnscribeSpellBySpellID(uint16 spell_id, bool update_client = true);
|
||||
void UnscribeSpellBySpellID(int32 spell_id, bool update_client = true);
|
||||
void UntrainDisc(int slot, bool update_client = true, bool defer_save = false);
|
||||
void UntrainDiscAll(bool update_client = true);
|
||||
void UntrainDiscBySpellID(uint16 spell_id, bool update_client = true);
|
||||
bool SpellGlobalCheck(uint16 spell_id, uint32 char_id);
|
||||
bool SpellBucketCheck(uint16 spell_id, uint32 char_id);
|
||||
void UntrainDiscBySpellID(int32 spell_id, bool update_client = true);
|
||||
bool SpellGlobalCheck(int32 spell_id, uint32 char_id);
|
||||
bool SpellBucketCheck(int32 spell_id, uint32 char_id);
|
||||
uint8 GetCharMaxLevelFromQGlobal();
|
||||
uint8 GetCharMaxLevelFromBucket();
|
||||
|
||||
@@ -1013,7 +1013,7 @@ public:
|
||||
inline bool AutoConsentRaidEnabled() const { return m_pp.raidAutoconsent != 0; }
|
||||
inline bool AutoConsentGuildEnabled() const { return m_pp.guildAutoconsent != 0; }
|
||||
|
||||
void SummonHorse(uint16 spell_id);
|
||||
void SummonHorse(int32 spell_id);
|
||||
void SetHorseId(uint16 horseid_in);
|
||||
inline void SetControlledMobId(uint16 mob_id_in) { controlled_mob_id = mob_id_in; }
|
||||
uint16 GetControlledMobId() const{ return controlled_mob_id; }
|
||||
@@ -1111,7 +1111,7 @@ public:
|
||||
inline uint32 GetAAPercent() const { return m_epp.perAA; }
|
||||
void SetAATitle(std::string title);
|
||||
void SetTitleSuffix(std::string suffix);
|
||||
void MemorizeSpell(uint32 slot, uint32 spell_id, uint32 scribing, uint32 reduction = 0);
|
||||
void MemorizeSpell(uint32 slot, int32 spell_id, uint32 scribing, uint32 reduction = 0);
|
||||
|
||||
int GetAAEXPPercentage();
|
||||
int GetEXPPercentage();
|
||||
@@ -1243,15 +1243,15 @@ public:
|
||||
void ResetDisciplineTimer(uint32 timer_id);
|
||||
void SendDisciplineUpdate();
|
||||
void SendDisciplineTimer(uint32 timer_id, uint32 duration);
|
||||
bool UseDiscipline(uint32 spell_id, uint32 target);
|
||||
bool HasDisciplineLearned(uint16 spell_id);
|
||||
bool UseDiscipline(int32 spell_id, uint32 target);
|
||||
bool HasDisciplineLearned(int32 spell_id);
|
||||
|
||||
void SetLinkedSpellReuseTimer(uint32 timer_id, uint32 duration);
|
||||
bool IsLinkedSpellReuseTimerReady(uint32 timer_id);
|
||||
|
||||
void ResetCastbarCooldownBySlot(int slot);
|
||||
void ResetAllCastbarCooldowns();
|
||||
void ResetCastbarCooldownBySpellID(uint32 spell_id);
|
||||
void ResetCastbarCooldownBySpellID(int32 spell_id);
|
||||
|
||||
bool CheckTitle(int title_set);
|
||||
void EnableTitle(int title_set, bool insert = true);
|
||||
@@ -1275,13 +1275,13 @@ public:
|
||||
|
||||
void ProcessInspectRequest(Client* requestee, Client* requester);
|
||||
bool ClientFinishedLoading() { return (conn_state == ClientConnectFinished); }
|
||||
int FindSpellBookSlotBySpellID(uint16 spellid);
|
||||
uint32 GetSpellIDByBookSlot(int book_slot);
|
||||
int FindSpellBookSlotBySpellID(int32 spellid);
|
||||
int32 GetSpellIDByBookSlot(int book_slot);
|
||||
int GetNextAvailableSpellBookSlot(int starting_slot = 0);
|
||||
int GetNextAvailableDisciplineSlot(int starting_slot = 0);
|
||||
inline uint32 GetSpellByBookSlot(int book_slot) { return m_pp.spell_book[book_slot]; }
|
||||
inline int32 GetSpellByBookSlot(int book_slot) { return m_pp.spell_book[book_slot]; }
|
||||
inline bool HasSpellScribed(int spellid) { return FindSpellBookSlotBySpellID(spellid) != -1; }
|
||||
uint32 GetHighestScribedSpellinSpellGroup(uint32 spell_group);
|
||||
int32 GetHighestScribedSpellinSpellGroup(uint32 spell_group);
|
||||
std::unordered_map<uint32, std::vector<uint16>> LoadSpellGroupCache(uint8 min_level, uint8 max_level);
|
||||
uint16 GetMaxSkillAfterSpecializationRules(EQ::skills::SkillType skillid, uint16 maxSkill);
|
||||
void SendPopupToClient(const char *Title, const char *Text, uint32 PopupID = 0, uint32 Buttons = 0, uint32 Duration = 0);
|
||||
@@ -1292,7 +1292,7 @@ public:
|
||||
bool PendingSacrifice;
|
||||
uint16 sacrifice_caster_id;
|
||||
PendingTranslocate_Struct PendingTranslocateData;
|
||||
void SendOPTranslocateConfirm(Mob *Caster, uint16 SpellID);
|
||||
void SendOPTranslocateConfirm(Mob *Caster, int32 SpellID);
|
||||
|
||||
// Help Window
|
||||
std::string SendBotCommandHelpWindow(const BotCommandHelpParams& params);
|
||||
@@ -1665,7 +1665,7 @@ public:
|
||||
}
|
||||
|
||||
void SuspendMinion(int value);
|
||||
void Doppelganger(uint16 spell_id, Mob *target, const char *name_override, int pet_count, int pet_duration);
|
||||
void Doppelganger(int32 spell_id, Mob *target, const char *name_override, int pet_count, int pet_duration);
|
||||
void NotifyNewTitlesAvailable();
|
||||
void Signal(int signal_id);
|
||||
void SendPayload(int payload_id, std::string payload_value = std::string());
|
||||
@@ -1698,7 +1698,7 @@ public:
|
||||
bool RemoveRespawnOption(std::string option_name);
|
||||
bool RemoveRespawnOption(uint8 position);
|
||||
void ClearRespawnOptions() { respawn_options.clear(); }
|
||||
void SetPendingRezzData(int XP, uint32 DBID, uint16 SpellID, const char *CorpseName) { PendingRezzXP = XP; PendingRezzDBID = DBID; PendingRezzSpellID = SpellID; PendingRezzCorpseName = CorpseName; }
|
||||
void SetPendingRezzData(int XP, uint32 DBID, int32 SpellID, const char *CorpseName) { PendingRezzXP = XP; PendingRezzDBID = DBID; PendingRezzSpellID = SpellID; PendingRezzCorpseName = CorpseName; }
|
||||
bool IsRezzPending() { return PendingRezzSpellID > 0; }
|
||||
void ClearHover();
|
||||
inline bool IsBlockedBuff(int32 SpellID) { return PlayerBlockedBuffs.find(SpellID) != PlayerBlockedBuffs.end(); }
|
||||
@@ -1798,7 +1798,7 @@ public:
|
||||
void SendWebLink(const char* website);
|
||||
void SendMarqueeMessage(uint32 type, std::string message, uint32 duration = 3000);
|
||||
void SendMarqueeMessage(uint32 type, uint32 priority, uint32 fade_in, uint32 fade_out, uint32 duration, std::string message);
|
||||
void SendSpellAnim(uint16 targetid, uint16 spell_id);
|
||||
void SendSpellAnim(uint16 targetid, int32 spell_id);
|
||||
|
||||
void DuplicateLoreMessage(uint32 ItemID);
|
||||
void GarbleMessage(char *, uint8);
|
||||
@@ -1956,7 +1956,7 @@ public:
|
||||
protected:
|
||||
friend class Mob;
|
||||
void CalcEdibleBonuses(StatBonuses* newbon);
|
||||
void MakeBuffFadePacket(uint16 spell_id, int slot_id, bool send_message = true);
|
||||
void MakeBuffFadePacket(int32 spell_id, int slot_id, bool send_message = true);
|
||||
bool client_data_loaded;
|
||||
|
||||
|
||||
@@ -1989,7 +1989,7 @@ private:
|
||||
eqFilterMode ClientFilters[_FilterCount];
|
||||
int32 HandlePacket(const EQApplicationPacket *app);
|
||||
void OPTGB(const EQApplicationPacket *app);
|
||||
void OPRezzAnswer(uint32 Action, uint32 SpellID, uint16 ZoneID, uint16 InstanceID, float x, float y, float z);
|
||||
void OPRezzAnswer(uint32 Action, int32 SpellID, uint16 ZoneID, uint16 InstanceID, float x, float y, float z);
|
||||
void OPMemorizeSpell(const EQApplicationPacket *app);
|
||||
void OPMoveCoin(const EQApplicationPacket* app);
|
||||
void MoveItemCharges(EQ::ItemInstance &from, int16 to_slot, uint8 type);
|
||||
@@ -2309,7 +2309,7 @@ private:
|
||||
bool PendingGuildInvitation;
|
||||
int PendingRezzXP;
|
||||
uint32 PendingRezzDBID;
|
||||
uint16 PendingRezzSpellID; // Only used for resurrect while hovering.
|
||||
int32 PendingRezzSpellID; // Only used for resurrect while hovering.
|
||||
std::string PendingRezzCorpseName; // Only used for resurrect while hovering.
|
||||
|
||||
std::set<uint32> PlayerBlockedBuffs;
|
||||
|
||||
Reference in New Issue
Block a user