Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update droplight effects #5563

Merged
merged 16 commits into from Nov 21, 2020
21 changes: 20 additions & 1 deletion src/map/itemdb.hpp
Expand Up @@ -755,12 +755,31 @@ enum e_itemshop_restrictions {
enum e_item_drop_effect : uint16 {
DROPEFFECT_NONE = 0,
DROPEFFECT_CLIENT,
#if PACKETVER < 20200304
DROPEFFECT_WHITE_PILLAR,
#endif
DROPEFFECT_BLUE_PILLAR,
DROPEFFECT_YELLOW_PILLAR,
DROPEFFECT_PURPLE_PILLAR,
#if PACKETVER < 20200304
DROPEFFECT_ORANGE_PILLAR,
#else
DROPEFFECT_GREEN_PILLAR,
#endif
#if PACKETVER >= 20200304
DROPEFFECT_RED_PILLAR,
#endif
DROPEFFECT_MAX,
#if PACKETVER >= 20200304
// White was removed in 2020-03-04
DROPEFFECT_WHITE_PILLAR,
// Orange was replaced by green in 2020-03-04
DROPEFFECT_ORANGE_PILLAR,
DROPEFFECT_MAX
#else
// Not supported before 2020-03-04
DROPEFFECT_GREEN_PILLAR,
DROPEFFECT_RED_PILLAR,
#endif
};

/// Enum for items with delayed consumption
Expand Down
2 changes: 2 additions & 0 deletions src/map/script_constants.hpp
Expand Up @@ -7974,6 +7974,8 @@
export_constant(DROPEFFECT_YELLOW_PILLAR);
export_constant(DROPEFFECT_PURPLE_PILLAR);
export_constant(DROPEFFECT_ORANGE_PILLAR);
export_constant(DROPEFFECT_GREEN_PILLAR);
export_constant(DROPEFFECT_RED_PILLAR);
export_constant(DROPEFFECT_MAX);

#undef export_constant
Expand Down