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:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user