 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
96 int pay_for_item(
object *op,
object *pl, uint64_t reduction);
uint64_t price_base(const object *obj)
Determine the base (intrinsic) value of an item.
uint64_t shop_price_buy(const object *obj, object *who)
Adjust the value of an item to be bought based on the player's bargaining skill and charisma.
uint64_t price_approx(const object *obj, object *who)
Adjust the value of the given item based on the player's skills.
int shop_describe(const object *op)
Give the player a description of the shop on their current map.
int shop_pay_unpaid(object *pl, object *op)
Pay for each unpaid item carried by a player, including those inside containers.
char * cost_approx_str(const object *obj, object *who)
Return a textual cost approximation in a newly-allocated string.
char * cost_str(uint64_t cost)
int pay_for_item(object *op, object *pl, uint64_t reduction)
Player attemps to buy an item, if she has enough money then remove coins as needed from active contai...
uint64_t query_money(const object *op)
Determine the amount of money the given object contains, including what is inside containers.
int can_pay(object *pl)
Checks all unpaid items in op's inventory, adds up all the money they have, and checks that they can ...
double shop_approval(const mapstruct *map, const object *player)
Return the approval ratio for a shop for a given player.
void sell_item(object *op, object *pl)
Player is selling an item.
bool shop_contains(object *ob)
Check if an object is in a shop.
int pay_for_amount(uint64_t to_pay, object *pl)
Takes the amount of money from the the player inventory and from it's various pouches using the pay_f...
uint64_t shop_price_sell(const object *obj, object *who)
Adjust the value of an item to be sold based on the player's bargaining skill and charisma.
char * cost_string_from_value(uint64_t cost, int largest_coin)
Converts a price to number of coins.