Move encumbrance calculation functions into cPlayer
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user