[Combat] Basic Combat Recording (#2090)

* Basic combat recording

* Update combat_record.h
This commit is contained in:
Chris Miles
2022-05-01 18:08:12 -05:00
committed by GitHub
parent 759f9bd007
commit c7dbdfae58
10 changed files with 138 additions and 14 deletions
+4 -1
View File
@@ -28,6 +28,7 @@
#include "aa.h"
#include "../common/light_source.h"
#include "../common/emu_constants.h"
#include "combat_record.h"
#include <set>
#include <vector>
#include <memory>
@@ -494,7 +495,7 @@ public:
virtual bool Death(Mob* killerMob, int32 damage, uint16 spell_id, EQ::skills::SkillType attack_skill) = 0;
virtual void Damage(Mob* from, int32 damage, uint16 spell_id, EQ::skills::SkillType attack_skill,
bool avoidable = true, int8 buffslot = -1, bool iBuffTic = false, eSpecialAttacks special = eSpecialAttacks::None) = 0;
inline virtual void SetHP(int32 hp) { if (hp >= max_hp) current_hp = max_hp; else current_hp = hp;}
virtual void SetHP(int32 hp);
bool ChangeHP(Mob* other, int32 amount, uint16 spell_id = 0, int8 buffslot = -1, bool iBuffTic = false);
inline void SetOOCRegen(int32 newoocregen) {ooc_regen = newoocregen;}
virtual void Heal();
@@ -1643,6 +1644,8 @@ protected:
bool degenerating_effects; // true if we have a buff that needs to be recalced every tick
bool spawned_in_water;
CombatRecord combat_record{};
public:
bool GetWasSpawnedInWater() const;