… | |
… | |
701 | /* Flags for apply_special() */ |
701 | /* Flags for apply_special() */ |
702 | enum apply_flag |
702 | enum apply_flag |
703 | { |
703 | { |
704 | /* Basic flags/mode, always use one of these */ |
704 | /* Basic flags/mode, always use one of these */ |
705 | AP_TOGGLE = 0, |
705 | AP_TOGGLE = 0, |
706 | AP_APPLY = 1, |
706 | AP_APPLY = 0x01, |
707 | AP_UNAPPLY = 2, |
707 | AP_UNAPPLY = 0x02, |
708 | |
708 | AP_MODE = 0x03, |
709 | AP_BASIC_FLAGS = 0x0f, |
|
|
710 | |
709 | |
711 | /* Optional flags, for bitwise or with a basic flag */ |
710 | /* Optional flags, for bitwise or with a basic flag */ |
712 | AP_NO_MERGE = 0x10, |
711 | AP_NO_MERGE = 0x10, |
713 | AP_IGNORE_CURSE = 0x20, |
712 | AP_IGNORE_CURSE = 0x20, |
714 | AP_PRINT = 0x40, /* Print what to do, don't actually do it */ |
713 | AP_PRINT = 0x40, /* Print what to do, don't actually do it */ |
715 | AP_HAVE_WEAPON = 0x80, // when applying a skill, assume we have the required weapon |
714 | AP_NO_SLOT = 0x80, // do not update the combat/ranged/current slots |
716 | }; |
715 | }; |
717 | |
716 | |
718 | /* Bitmask values for 'can_apply_object()' return values. |
717 | /* Bitmask values for 'can_apply_object()' return values. |
719 | * the CAN_APPLY_ prefix is to just note what function the |
718 | * the CAN_APPLY_ prefix is to just note what function the |
720 | * are returned from. |
719 | * are returned from. |
… | |
… | |
739 | * this one can be applied. Think of rings - human is wearing two |
738 | * this one can be applied. Think of rings - human is wearing two |
740 | * rings and tries to apply one - there are two possible rings he |
739 | * rings and tries to apply one - there are two possible rings he |
741 | * could remove. |
740 | * could remove. |
742 | * |
741 | * |
743 | */ |
742 | */ |
744 | #define CAN_APPLY_NEVER 0x1 |
743 | #define CAN_APPLY_NEVER 0x01 |
745 | #define CAN_APPLY_RESTRICTION 0x2 |
744 | #define CAN_APPLY_RESTRICTION 0x02 |
746 | #define CAN_APPLY_NOT_MASK 0xf |
745 | #define CAN_APPLY_NOT_MASK 0x0f |
|
|
746 | |
747 | #define CAN_APPLY_UNAPPLY 0x10 |
747 | #define CAN_APPLY_UNAPPLY 0x10 |
748 | #define CAN_APPLY_UNAPPLY_MULT 0x20 |
748 | #define CAN_APPLY_UNAPPLY_MULT 0x20 |
749 | #define CAN_APPLY_UNAPPLY_CHOICE 0x40 |
749 | #define CAN_APPLY_UNAPPLY_CHOICE 0x40 |
750 | |
750 | |
751 | // Cut off point of when an object is put on the active list or not |
751 | // Cut off point of when an object is put on the active list or not |