ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/apply.C
(Generate patch)

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.46 by elmex, Tue Dec 19 15:30:02 2006 UTC vs.
Revision 1.47 by elmex, Tue Dec 19 20:32:35 2006 UTC

3850 { 3850 {
3851 force->resist[i] = food->resist[i] / 2; 3851 force->resist[i] = food->resist[i] / 2;
3852 did_one = 1; 3852 did_one = 1;
3853 } 3853 }
3854 } 3854 }
3855
3855 if (did_one) 3856 if (did_one)
3856 { 3857 {
3857 force->speed = 0.1; 3858 force->speed = 0.1;
3858 update_ob_speed (force); 3859 update_ob_speed (force);
3859 /* bigger morsel of food = longer effect time */ 3860 /* bigger morsel of food = longer effect time */
3860 force->stats.food = food->stats.food / 5; 3861 force->duration = food->stats.food / 5;
3861 SET_FLAG (force, FLAG_IS_USED_UP);
3862 SET_FLAG (force, FLAG_APPLIED); 3862 SET_FLAG (force, FLAG_APPLIED);
3863 change_abil (who, force); 3863 change_abil (who, force);
3864 insert_ob_in_ob (force, who); 3864 insert_ob_in_ob (force, who);
3865 } 3865 }
3866 else 3866 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines