Make monster/item lists in party town record dynamic

This commit is contained in:
2015-01-23 02:53:36 -05:00
parent d9b9130d00
commit f574281c3f
21 changed files with 85 additions and 182 deletions

View File

@@ -310,7 +310,7 @@ void draw_items(location where){
rectangle from_rect, to_rect;
if(supressing_some_spaces && (where != ok_space[0]) && (where != ok_space[1]) && (where != ok_space[2]) && (where != ok_space[3]))
return;
for(int i = 0; i < NUM_TOWN_ITEMS; i++) {
for(int i = 0; i < univ.town.items.size(); i++) {
if(univ.town.items[i].variety != eItemType::NO_ITEM && univ.town.items[i].item_loc == where) {
if(univ.town.items[i].contained) continue;
if(party_can_see(where) >= 6) continue;