Switch to smart pointer implementation for damage numbers to handle damage combo'ing quick attack displays.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "State.h"
|
||||
#include "Buff.h"
|
||||
#include "olcUTIL_Animate2D.h"
|
||||
#include "DamageNumber.h"
|
||||
|
||||
struct Player;
|
||||
|
||||
@@ -85,6 +86,8 @@ struct Monster{
|
||||
vf2d pathTarget={};
|
||||
std::vector<vf2d>path;
|
||||
int pathIndex=0;
|
||||
float lastHitTimer=0;
|
||||
std::shared_ptr<DamageNumber>damageNumberPtr;
|
||||
protected:
|
||||
public:
|
||||
Monster()=delete;
|
||||
|
||||
Reference in New Issue
Block a user