Crossfire Server, Branches 1.12  R18729
Buy/sell flags.

Macros

#define F_APPROX   32
 
#define F_BUY   0
 
#define F_IDENTIFIED   8
 
#define F_NO_BARGAIN   4
 
#define F_NOT_CURSED   16
 
#define F_SELL   1
 
#define F_SHOP   64
 
#define F_TRUE   2
 

Detailed Description

Those flags are mostly used for query_cost() and similar functions.

Macro Definition Documentation

#define F_APPROX   32

Flag to give a guess of item value.

Definition at line 781 of file define.h.

Referenced by examine(), query_cost(), and query_cost_string().

#define F_BUY   0

Item is being bought by player.

Definition at line 775 of file define.h.

Referenced by count_unpaid(), examine(), get_payment(), initConstants(), pay_for_item(), pick_up_object(), and query_cost().

#define F_IDENTIFIED   8

Flag to calculate value of identified item.

Definition at line 779 of file define.h.

Referenced by attempt_do_alchemy(), initConstants(), and query_cost().

#define F_NO_BARGAIN   4

Combine with F_BUY or F_SELL to disable bargaining calc.

Definition at line 778 of file define.h.

Referenced by initConstants(), pay_for_item(), query_cost(), and sell_item().

#define F_NOT_CURSED   16

Flag to calculate value of uncursed item.

Definition at line 780 of file define.h.

Referenced by attempt_do_alchemy(), initConstants(), and query_cost().

#define F_SELL   1

Item is being sold by player.

Definition at line 776 of file define.h.

Referenced by examine(), initConstants(), query_cost(), and sell_item().

#define F_SHOP   64

Consider the effect that the shop that the player is in has.

Definition at line 782 of file define.h.

Referenced by count_unpaid(), examine(), get_payment(), pay_for_item(), pick_up_object(), query_cost(), and sell_item().

#define F_TRUE   2

True value of item, unadjusted.

Definition at line 777 of file define.h.

Referenced by alchemy(), alchemy_object(), attempt_do_alchemy(), check_pick(), initConstants(), and query_cost().