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:
2015-01-16 16:40:54 -05:00
parent d729bcc86b
commit e5f44de4fe
24 changed files with 550 additions and 654 deletions

View File

@@ -772,9 +772,7 @@ bool load_party_v1(fs::path file_to_load, cUniverse& univ, bool town_restore, bo
univ.party.append(store_party);
univ.party.append(store_setup);
univ.party.void_pcs();
for(int i = 0; i < 6; i++)
univ.party.add_pc(store_pc[i]);
univ.party.append(store_pc);
if(in_scen){
univ.out.append(store_out_info);
if(town_restore){