inline void CrExpoSet_Remove(_Army_* army, int i)
{
int type_s;
_ptr_ crloc_s;
o_CrExpoSet_FindType(army, i, &type_s, &crloc_s);
o_CrExpoSet_Del(type_s, crloc_s);
}
inline int CrExpoSet_GetExp(_Army_* army, int i)
{
int type_s;
_ptr_ crloc_s;
o_CrExpoSet_FindType(army, i, &type_s, &crloc_s);
return army->type[i] < 0 ? 0 : o_CrExpoSet_GetExp(type_s, crloc_s);
}
inline void CrExpoSet_SetExp(_Army_* army, int i, int exp)
{
int type_s;
_ptr_ crloc_s;
o_CrExpoSet_FindType(army, i, &type_s, &crloc_s);
n_CrExpoSet_Set(type_s, crloc_s, army->type[i], army->count[i], exp);
}
(This post was last modified: 09.12.2014 12:30 by baratorch.)