Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

EItemWearableFlag logic


FlorinMarian

Question

  • Premium

Hi, guys!

Even i've passed C++ exam on faculty, I didn't spent enough time on it and I'd love to know how this enum works.

enum EItemWearableFlag
{
	WEARABLE_BODY	= (1 << 0),
	WEARABLE_HEAD	= (1 << 1),
	WEARABLE_FOOTS	= (1 << 2),
	WEARABLE_WRIST	= (1 << 3),
	WEARABLE_WEAPON	= (1 << 4),
	WEARABLE_NECK	= (1 << 5),
	WEARABLE_EAR	= (1 << 6),
	WEARABLE_UNIQUE	= (1 << 7),
	WEARABLE_SHIELD	= (1 << 8),
	WEARABLE_ARROW	= (1 << 9),
	WEARABLE_HAIR	= (1 << 10),
	WEARABLE_ABILITY		= (1 << 11),
	WEARABLE_COSTUME_BODY	= (1 << 12),
	WEARABLE_COSTUME_HAIR	= (1 << 13),
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
	WEARABLE_COSTUME_MOUNT	= (1 << 14),
#endif
#ifdef __ACCE_COSTUME_SYSTEM__
	WEARABLE_COSTUME_SASH	= (1 << 15),
#endif
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
	WEARABLE_COSTUME_WEAPON = (1 << 16),
#endif
#ifdef __PET_SYSTEM__
	WEARABLE_NORMAL_PET		= (1 << 17),
#endif
#if defined(ENABLE_COSTUME_ITEM_SKIN)
	WEARABLE_PET_SKIN		= (1 << 18),
	WEARABLE_MOUNT_SKIN		= (1 << 19),
#endif
#ifdef ITEM_TALISMAN_EQUIPMENT
	WEARABLE_PENDANT		= (1 << 20),
#endif
};

What I don't understand, is why this statement isn't true for my item?

	else if (GetWearFlag() & WEARABLE_PENDANT)
		return WEAR_PENDANT;
9620	È­¿°ÀÇ ³ë¸®°³ +20	ITEM_ARMOR	ARMOR_PENDANT	1	NONE	ITEM_TUNABLE	WEAR_PENDANT	NONE	360000	5000	9621	440	0	LEVEL	20	LIMIT_NONE	0	APPLY_ENCHANT_FIRE	20	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0

Thank you!

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.