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

Comparing deliantra/server/server/skills.C (file contents):
Revision 1.40 by root, Sun Aug 12 05:59:25 2007 UTC vs.
Revision 1.41 by root, Mon Aug 20 19:13:10 2007 UTC

1570 object *toss_item = orig->clone (); 1570 object *toss_item = orig->clone ();
1571 1571
1572 toss_item->type = THROWN_OBJ; 1572 toss_item->type = THROWN_OBJ;
1573 CLEAR_FLAG (toss_item, FLAG_CHANGING); 1573 CLEAR_FLAG (toss_item, FLAG_CHANGING);
1574 toss_item->stats.dam = 0; /* default damage */ 1574 toss_item->stats.dam = 0; /* default damage */
1575 insert_ob_in_ob (orig, toss_item); 1575 toss_item->insert (orig);
1576
1576 return toss_item; 1577 return toss_item;
1577} 1578}
1578 1579
1579/* do_throw() - op throws any object toss_item. This code 1580/* do_throw() - op throws any object toss_item. This code
1580 * was borrowed from fire_bow. 1581 * was borrowed from fire_bow.
1720 */ 1721 */
1721 throw_ob->inv->set_owner (op); 1722 throw_ob->inv->set_owner (op);
1722 throw_ob->direction = dir; 1723 throw_ob->direction = dir;
1723 1724
1724 /* the damage bonus from the force of the throw */ 1725 /* the damage bonus from the force of the throw */
1725 dam = (int) (str_factor * dam_bonus[eff_str]); 1726 dam = int (str_factor * dam_bonus[eff_str]);
1726 1727
1727 /* Now, lets adjust the properties of the thrown_ob. */ 1728 /* Now, lets adjust the properties of the thrown_ob. */
1728 1729
1729 /* how far to fly */ 1730 /* how far to fly */
1730 throw_ob->last_sp = (eff_str * 3) / 5; 1731 throw_ob->last_sp = (eff_str * 3) / 5;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines