char *money_desc(int amount, int type); struct obj_data *create_money(int amount, int type); void add_cash_to_char(struct char_data *ch, int amount, int type); void sub_cash_from_char(struct char_data *ch, int amount, int type); int get_money(struct char_data *ch, int type); void obj_to_eoi(struct obj_data *object, struct char_data *ch); int value_in_copper(int amount, int type); void add_cash_from_copper(struct char_data *ch, int copper); void sub_cash_from_copper(struct char_data *ch, int copper); int money_obj_value(struct obj_data *obj); int char_cash_in_copper(struct char_data *ch); int get_money_type(struct obj_data *obj); char *expand_copper(int copper, int brief); int parse_cash_type(const char *currency); extern const char *coin_types[]; struct obj_data *get_pile_in_list(struct obj_data *list); void restring_money_obj(struct obj_data *obj, int amount, int type); void add_money_to_pile(struct obj_data *money, struct obj_data *pile); void sub_money_from_pile(struct obj_data *pile, int amount, int type); /* Number of valid coin types */ #define NUM_COIN_TYPES 5 /* Coin Types */ #define COIN_COPPER 0 #define COIN_SILVER 1 #define COIN_ELECTRUM 2 #define COIN_GOLD 3 #define COIN_PLAT 4 /* Coin Value (relative to copper) */ #define COPPER_VALUE 1 #define SILVER_VALUE 10 #define ELECTRUM_VALUE 50 #define GOLD_VALUE 100 #define PLAT_VALUE 1000