mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-16 05:08:21 +00:00
3cd0d1ec3d
* Make wrapper for casting skills this is to reduce magic numbers in the code base Only updated one use of this to demo that this works. Will be do more in a sepearate PR. Also, inadvertantly fix damage stacking and self-damage in the teslapack * add skill<->behavior caching * explicit by reference * address emo's feedback
20 lines
530 B
C++
20 lines
530 B
C++
#ifndef __GemPackBase__H__
|
|
#define __GemPackBase__H__
|
|
|
|
#include "CppScripts.h"
|
|
|
|
class CoilBackpackBase: public CppScripts::Script {
|
|
public:
|
|
CoilBackpackBase(uint32_t skillId) {
|
|
m_SkillId = skillId;
|
|
};
|
|
|
|
void OnFactionTriggerItemEquipped(Entity* itemOwner, LWOOBJID itemObjId) override;
|
|
void NotifyHitOrHealResult(Entity* self, Entity* attacker, int32_t damage) override;
|
|
void OnFactionTriggerItemUnequipped(Entity* itemOwner, LWOOBJID itemObjId) override;
|
|
private:
|
|
uint32_t m_SkillId = 0;
|
|
};
|
|
|
|
#endif //!__GemPackBase__H__
|