… | |
… | |
889 | tmp->type == AMULET || tmp->type == GIRDLE || |
889 | tmp->type == AMULET || tmp->type == GIRDLE || |
890 | tmp->type == BRACERS || tmp->type == CLOAK || |
890 | tmp->type == BRACERS || tmp->type == CLOAK || |
891 | tmp->type == DISEASE || tmp->type == FORCE || |
891 | tmp->type == DISEASE || tmp->type == FORCE || |
892 | tmp->type == SKILL) |
892 | tmp->type == SKILL) |
893 | { |
893 | { |
894 | contr->digestion += tmp->stats.food; |
894 | contr->digestion = clamp (int (contr->digestion) + tmp->stats.food, MIN_DIGESTION, MAX_DIGESTION); |
895 | contr->gen_hp += tmp->stats.hp; |
895 | contr->gen_hp += tmp->stats.hp; |
896 | contr->gen_sp += tmp->stats.sp; |
896 | contr->gen_sp += tmp->stats.sp; |
897 | contr->gen_grace += tmp->stats.grace; |
897 | contr->gen_grace += tmp->stats.grace; |
898 | contr->gen_sp_armour += tmp->gen_sp_armour; |
898 | contr->gen_sp_armour += tmp->gen_sp_armour; |
899 | } |
899 | } |