… | |
… | |
1787 | if (GET_ANIM_ID (throw_ob) && NUM_ANIMATIONS (throw_ob)) |
1787 | if (GET_ANIM_ID (throw_ob) && NUM_ANIMATIONS (throw_ob)) |
1788 | SET_ANIMATION (throw_ob, dir); |
1788 | SET_ANIMATION (throw_ob, dir); |
1789 | } |
1789 | } |
1790 | else |
1790 | else |
1791 | { |
1791 | { |
|
|
1792 | uint16 mat = throw_ob->materials; |
|
|
1793 | |
1792 | /* some materials will adjust properties.. */ |
1794 | /* some materials will adjust properties.. */ |
1793 | if (throw_ob->material & M_LEATHER) |
1795 | if (mat & M_LEATHER) |
1794 | { |
1796 | { |
1795 | throw_ob->stats.dam -= 1; |
1797 | throw_ob->stats.dam -= 1; |
1796 | throw_ob->stats.food -= 10; |
1798 | throw_ob->stats.food -= 10; |
1797 | } |
1799 | } |
1798 | |
1800 | |
1799 | if (throw_ob->material & M_GLASS) |
1801 | if (mat & M_GLASS) |
1800 | throw_ob->stats.food += 60; |
1802 | throw_ob->stats.food += 60; |
1801 | |
1803 | |
1802 | if (throw_ob->material & M_ORGANIC) |
1804 | if (mat & M_ORGANIC) |
1803 | { |
1805 | { |
1804 | throw_ob->stats.dam -= 3; |
1806 | throw_ob->stats.dam -= 3; |
1805 | throw_ob->stats.food += 55; |
1807 | throw_ob->stats.food += 55; |
1806 | } |
1808 | } |
1807 | |
1809 | |
1808 | if (throw_ob->material & M_PAPER || throw_ob->material & M_CLOTH) |
1810 | if (mat & M_PAPER || mat & M_CLOTH) |
1809 | { |
1811 | { |
1810 | throw_ob->stats.dam -= 5; |
1812 | throw_ob->stats.dam -= 5; |
1811 | throw_ob->speed *= 0.8; |
1813 | throw_ob->speed *= 0.8; |
1812 | throw_ob->stats.wc += 3; |
1814 | throw_ob->stats.wc += 3; |
1813 | throw_ob->stats.food -= 30; |
1815 | throw_ob->stats.food -= 30; |