Originally posted by [b]Kazukin[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4519
Cash food implemented on r14426 can be stacked with craftable food, so it is possible to get up to +20 stats. Status affected are:
SC_XXXFOOD and SC_FOOD_XXX_CASH where xxx is str, agi, dex, int, vit & luk
Possible fix on status_calc_xxx().Example on status_calc_str():
QUOTE
if(sc->data[SC_STRFOOD] || sc->data[SC_FOOD_STR_CASH])
str += max((sc->data[SC_STRFOOD])?sc->data[SC_STRFOOD]->val1:0, (sc->data[SC_FOOD_STR_CASH])?sc->data[SC_FOOD_STR_CASH]->val1:0);
This fix assumes that both craftable food and cash food can be active at a time and that the higher level one is the one that takes effect. I am not sure if this is correct, but I'm sure that they cannot be stacked up to +20.This post has been edited by Kazukin: Oct 30 2010, 07:57 PM