Fix std::less comparison for Monster attributes. Cleaned up list deletion for bullets, emitters, and effects. Bullet ring implementation for slime king.

This commit is contained in:
2023-09-09 04:43:52 -05:00
parent 3ee066bb88
commit 244ac80d2a
14 changed files with 62 additions and 43 deletions
+8 -1
View File
@@ -10,8 +10,13 @@ enum class ATTRIBUTE_TYPE{
struct _ATTRIBUTE{
ATTRIBUTE_TYPE type;
_ATTRIBUTE(ATTRIBUTE_TYPE type);
private:
static int internal_id;
int id;
public:
bool operator<(const _ATTRIBUTE&rhs)const{
return int(type)<int(rhs.type);
return int(id)<int(rhs.id);
}
};
@@ -19,4 +24,6 @@ struct Attribute{
#define SETUP(attribute) static _ATTRIBUTE attribute;
SETUP(IFRAME_TIME_UPON_HIT);
SETUP(SHOOT_RING_TIMER);
SETUP(SHOOT_RING_DELAY);
SETUP(SHOOT_RING_COUNTER);
};