فهرست منبع

Update droplight effects (#5563)

Fixes #5547

Co-authored-by: Daegaladh <Daegaladh@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Balfear 4 سال پیش
والد
کامیت
071990ebc0
2فایلهای تغییر یافته به همراه22 افزوده شده و 1 حذف شده
  1. 20 1
      src/map/itemdb.hpp
  2. 2 0
      src/map/script_constants.hpp

+ 20 - 1
src/map/itemdb.hpp

@@ -759,12 +759,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

+ 2 - 0
src/map/script_constants.hpp

@@ -7979,6 +7979,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);
 
 	/* penalty types */