Wc3C.net Spear of Longinus
 User Name Remember Me? Password
 Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar

 05-06-2009, 03:36 AM #46 moyack Evil Emoticon   Respected UserProject Leader: PoC   Join Date: Jan 2006 Posts: 3,279 Submissions (17) Spell updated to 2.0 and fixed a rare double free bug.
 06-03-2009, 01:04 PM #47 busterkomo User   Join Date: Aug 2007 Posts: 68 Submissions (1) Is there any reason for doing something like this: JASS:```private constant function Damage takes integer l returns real return 100. + 50. * (l - 1) endfunction``` Instead of: JASS:```private constant function Damage takes integer l returns real return 50. + 50. * l endfunction``` Last edited by busterkomo : 06-03-2009 at 01:04 PM.
 06-03-2009, 01:42 PM #48 snowtiger User     Join Date: Oct 2007 Posts: 63 Same thing here JASS:```private constant function Chance takes integer l returns real return 0.3 + 0.3 * (l - 1) endfunction ``` Instead of: JASS:```private constant function Chance takes integer l returns real return 0.3 * l endfunction ``` But I guess it is for configurationability.
06-03-2009, 03:15 PM   #49
moyack
Evil Emoticon

Respected User

Join Date: Jan 2006
Posts: 3,279

Submissions (17)

Quote:
 Originally Posted by busterkomo Is there any reason for doing something like this: JASS:```private constant function Damage takes integer l returns real return 100. + 50. * (l - 1) endfunction``` Instead of: JASS:```private constant function Damage takes integer l returns real return 50. + 50. * l endfunction```
I've done it in this way because you can set an initial base value (100) plus the increment (50) multiplied to the level of the spell.

You're free to change all the formula if you need it, but I left as is because I believe it's easy in this way to see the base amount + increment.

Last edited by moyack : 06-03-2009 at 04:00 PM.

 12-18-2009, 07:08 AM #50 titan23 User   Join Date: Dec 2009 Posts: 12 solved the issue, ignore this post Last edited by titan23 : 12-23-2009 at 07:08 PM.
 05-24-2010, 06:29 AM #51 yatyfornetreg User     Join Date: May 2010 Posts: 22 Thank Alexander244 for "onDestroy should be private" and, one question. what will happen if i insanely press S near an enemy?...
 08-16-2010, 02:22 PM #52 Prince.Zero User   Join Date: Jul 2010 Posts: 3 nice blood splatter ^_^ +rep