Move encumbrance calculation functions into cPlayer

This commit is contained in:
2019-11-24 13:37:54 -05:00
parent 060be4dd42
commit 3302dd68b7
9 changed files with 42 additions and 44 deletions

View File

@@ -602,19 +602,6 @@ void refresh_stat_areas(short mode) {
rect_draw_some_item(text_area_gworld.getTexture(), rectangle(text_area_gworld), mainPtr, win_to_rects[WINRECT_TRANSCRIPT], x);
}
// get job info gone
short total_encumbrance(short pc_num) {
short store = 0,what_val;
for(short i = 0; i < univ.party[pc_num].items.size(); i++)
if(univ.party[pc_num].equip[i]) {
what_val = univ.party[pc_num].items[i].awkward;
store += what_val;
}
return store;
}
rectangle get_stat_effect_rect(int code) {
rectangle base = {0,0,12,12};
base.offset(12 * (code % 3), 12 * (code / 3));