/*
* Bits for 'affected_by'.
* Used in #MOBILES.
*/
#define AFF_BLIND (A)
#define AFF_INVISIBLE (B)
#define AFF_DETECT_EVIL (C)
#define AFF_DETECT_INVIS (D)
#define AFF_DETECT_MAGIC (E)
#define AFF_DETECT_HIDDEN (F)
#define AFF_DETECT_GOOD (G)
#define AFF_SANCTUARY (H)
#define AFF_FAERIE_FIRE (I)
#define AFF_INFRARED (J)
#define AFF_CURSE (K)
#define AFF_UNUSED_FLAG (L) /* unused */
#define AFF_POISON (M)
#define AFF_PROTECT_EVIL (N)
#define AFF_PROTECT_GOOD (O)
#define AFF_SNEAK (P)
#define AFF_HIDE (Q)
#define AFF_SLEEP (R)
#define AFF_CHARM (S)
#define AFF_FLYING (T)
#define AFF_PASS_DOOR (U)
#define AFF_HASTE (V)
#define AFF_CALM (W)
#define AFF_PLAGUE (X)
#define AFF_WEAKEN (Y)
#define AFF_DARK_VISION (Z)
#define AFF_BERSERK (aa)
#define AFF_SWIM (bb)
#define AFF_REGENERATION (cc)
#define AFF_SLOW (dd)
#define AFF_CAMO (ee)
#define AFF_FOCUS (ff)
#
#define aa 67108864 /* doubled due to conflicts */
#
#define bb 134217728
#
#define cc 268435456
#
#define dd 536870912
#
#define ee 1073741824
#
#define ff 2147483648
#
/*
#
* ACT bits for mobs.
#
* Used in #MOBILES.
#
*/
#
#define ACT_IS_NPC (A) /* Auto set for mobs */
#
#define ACT_SENTINEL (B) /* Stays in one room */
#
#define ACT_SCAVENGER (C) /* Picks up objects */
#
#define ACT_AGGRESSIVE (F) /* Attacks PC's */
af.bitvector = (ff);
void do_focus (CHAR_DATA * ch, char *argument)
{
AFFECT_DATA af;
if (IS_AFFECTED (ch, AFF_FOCUS)) /* line 3122 */
{
return;
}
if (number_percent () < get_skill (ch, gsn_focus))
{
check_improve (ch, gsn_focus, TRUE, 3);
af.where = TO_AFFECTS;
af.type = gsn_focus;
af.level = ch->level;
af.duration = ch->level;
af.location = APPLY_NONE;
af.modifier = 0;
af.bitvector = AFF_FOCUS;
affect_to_char (ch, &af);
send_to_char ("You focus on your surroundings.\n\r", ch);
}
else
{
check_improve (ch, gsn_focus, FALSE, 3);
send_to_char ("You cannot seem to focus on your surroundings.\n\r", ch);
affect_strip (ch, gsn_focus);
}
return;
}
Camo is basically hide, but will only work out of towns. and Focus is basically 'Detect Invis' except it's a skill not a spell.
This is the error I'm getting:
act_info.c: In function `do_focus':
act_info.c:3122: error: `ff' undeclared (first use in this function)
act_info.c:3122: error: (Each undeclared identifier is reported only once
act_info.c:3122: error: for each function it appears in.)
make: *** [obj/act_info.o] Error 1
This is the do_focus part of act_info.c:
And this is the only part in my code where I have "(ff)" (in merc.h):