Move a lot of item-related functions into the player and party classes
- Rearrange alchemy code a little to fix a possible situation with two-ingredient potions where you only have one of the first ingredient - instead of removing the second ingredient, it would have removed the next item in your inventory - Equippable item abilities that have an ability strength now stack if you have multiple items with the same ability equipped
This commit is contained in:
@@ -2,37 +2,21 @@
|
||||
#include "dialog.hpp"
|
||||
#include "pict.hpp"
|
||||
|
||||
void sort_pc_items(short pc_num);
|
||||
bool give_to_pc(short pc_num,cItem item,short print_result,bool allow_overload = false);
|
||||
bool forced_give(short item_num,eItemAbil abil,short dat = -1);
|
||||
bool GTP(short item_num);
|
||||
bool silent_GTP(short item_num);
|
||||
void give_gold(short amount,bool print_result);
|
||||
bool take_gold(short amount,bool print_result);
|
||||
short pc_has_abil_equip(short pc_num,eItemAbil abil,short dat = -1);
|
||||
short pc_has_abil(short pc_num,eItemAbil abil,short dat = -1);
|
||||
bool party_has_abil(eItemAbil abil,short dat = -1);
|
||||
bool party_take_abil(eItemAbil abil,short dat = -1);
|
||||
bool party_check_class(unsigned int item_class,short mode);
|
||||
short pc_carry_weight(short pc_num);
|
||||
short amount_pc_can_carry(short pc_num);
|
||||
void give_food(short amount,bool print_result);
|
||||
short take_food(short amount,bool print_result);
|
||||
short pc_has_space(short pc_num);
|
||||
short pc_ok_to_buy(short pc_num,short cost,cItem item);
|
||||
void take_item(short pc_num,short which_item);
|
||||
void remove_charge(short pc_num,short which_item);
|
||||
void enchant_weapon(short pc_num,short item_hit,short enchant_type,short new_val);
|
||||
void equip_item(short pc_num,short item_num);
|
||||
void drop_item(short pc_num,short item_num,location where_drop);
|
||||
bool place_item(cItem item,location where,bool forced,bool contained = false);
|
||||
void destroy_an_item();
|
||||
void give_thing(short pc_num, short item_num);
|
||||
void combine_things(short pc_num);
|
||||
short dist_from_party(location where);
|
||||
void set_item_flag(cItem *item);
|
||||
short get_item(location place,short pc_num,bool check_container);
|
||||
short get_prot_level(short pc_num,eItemAbil abil,short dat = -1);
|
||||
|
||||
void make_town_hostile();
|
||||
void set_town_attitude(short lo,short hi,short att);
|
||||
@@ -51,13 +35,11 @@ void place_glands(location where,mon_num_t m_type);
|
||||
short party_total_level() ;
|
||||
void reset_item_max();
|
||||
short item_val(cItem item);
|
||||
bool give_to_party(cItem item, short print_result);
|
||||
void place_treasure(location where,short level,short loot,short mode);
|
||||
cItem return_treasure(short loot);
|
||||
void refresh_store_items();
|
||||
std::string get_text_response(std::string prompt = "", pic_num_t pic = 16);
|
||||
short get_num_response(short min, short max, std::string prompt);
|
||||
|
||||
// These are defined in pc.editors.cpp since they are also used by the character editor
|
||||
short char_select_pc(short active_only,short free_inv_only,const char *title);
|
||||
short select_pc(short active_only,short free_inv_only);
|
||||
|
Reference in New Issue
Block a user