… | |
… | |
991 | /* these are the items that currently can change digestion, regeneration, |
991 | /* these are the items that currently can change digestion, regeneration, |
992 | * spell point recovery and mana point recovery. Seems sort of an arbitary |
992 | * spell point recovery and mana point recovery. Seems sort of an arbitary |
993 | * list, but other items store other info into stats array. |
993 | * list, but other items store other info into stats array. |
994 | */ |
994 | */ |
995 | if ((tmp->type == EXPERIENCE) || (tmp->type == WEAPON) || |
995 | if ((tmp->type == EXPERIENCE) || (tmp->type == WEAPON) || |
996 | (tmp->type == ARMOUR) || (tmp->type == HELMET) || |
996 | (tmp->type == ARMOUR) || (tmp->type == HELMET) || |
997 | (tmp->type == SHIELD) || (tmp->type == RING) || |
997 | (tmp->type == SHIELD) || (tmp->type == RING) || |
998 | (tmp->type == BOOTS) || (tmp->type == GLOVES) || |
998 | (tmp->type == BOOTS) || (tmp->type == GLOVES) || |
999 | (tmp->type == AMULET) || (tmp->type == GIRDLE) || |
999 | (tmp->type == AMULET) || (tmp->type == GIRDLE) || |
1000 | (tmp->type == BRACERS) || (tmp->type == CLOAK) || (tmp->type == DISEASE) || (tmp->type == FORCE) || (tmp->type == SKILL)) |
1000 | (tmp->type == BRACERS) || (tmp->type == CLOAK) || |
|
|
1001 | (tmp->type == DISEASE) || (tmp->type == FORCE) || |
|
|
1002 | (tmp->type == SKILL)) |
1001 | { |
1003 | { |
1002 | op->contr->digestion += tmp->stats.food; |
1004 | op->contr->digestion += tmp->stats.food; |
1003 | op->contr->gen_hp += tmp->stats.hp; |
1005 | op->contr->gen_hp += tmp->stats.hp; |
1004 | op->contr->gen_sp += tmp->stats.sp; |
1006 | op->contr->gen_sp += tmp->stats.sp; |
1005 | op->contr->gen_grace += tmp->stats.grace; |
1007 | op->contr->gen_grace += tmp->stats.grace; |
1006 | op->contr->gen_sp_armour += tmp->gen_sp_armour; |
1008 | op->contr->gen_sp_armour += tmp->gen_sp_armour; |
1007 | op->contr->item_power += tmp->item_power; |
1009 | op->contr->item_power += tmp->item_power; |
1008 | } |
1010 | } |
1009 | } /* if this is a player */ |
1011 | } /* if this is a player */ |
1010 | |
1012 | |
1011 | /* Update slots used for items */ |
1013 | /* Update slots used for items */ |
1012 | if (QUERY_FLAG (tmp, FLAG_APPLIED)) |
1014 | if (QUERY_FLAG (tmp, FLAG_APPLIED)) |