Skip to main content

TargetFlagInternal

This is represented as an object instead of an enum due to limitations with TypeScript enums. (We want this type to be a child of the BitFlag type.)

TargetFlag

Enumeration Members

ALLOW_SWITCHING

ALLOW_SWITCHING = number

Allow switching to a better target even if we already have one.

1 << 0 (1)

Defined in

flags/TargetFlag.ts:15


DONT_PRIORITIZE_ENEMIES_CLOSE_TO_PLAYER

DONT_PRIORITIZE_ENEMIES_CLOSE_TO_PLAYER = number

Do not prioritize enemies that are close to the familiar's owner.

1 << 1 (2)

Defined in

flags/TargetFlag.ts:22


PRIORITIZE_ENEMIES_WITH_HIGH_HP

PRIORITIZE_ENEMIES_WITH_HIGH_HP = number

Prioritize enemies with higher HP.

1 << 2 (4)

Defined in

flags/TargetFlag.ts:29


PRIORITIZE_ENEMIES_WITH_LOW_HP

PRIORITIZE_ENEMIES_WITH_LOW_HP = number

Prioritize enemies with higher HP.

1 << 3 (8)

Defined in

flags/TargetFlag.ts:36


GIVE_LOWER_PRIORITY_TO_CURRENT_TARGET

GIVE_LOWER_PRIORITY_TO_CURRENT_TARGET = number

Give a lower priority to our current target. (This makes it more likely for the familiar to switch between targets.)

1 << 4 (16)

Defined in

flags/TargetFlag.ts:44