Thread: Boomerang!
View Single Post
Old 07-02-2009, 07:48 PM   #16
Here-b-Trollz
Corkscrew Chainsaw!!!
 
Join Date: Jun 2006
Posts: 711

Here-b-Trollz has a spectacular aura about (149)

Hero Contest #2 - 2nd Place

Default

Collapse Or if you can't handle a formula with more than 3 coefficients, you could do:
function private function Damage takes integer level returns real
    if(level==1)then
        return 50.
    elseif(level==2)then
        return -42.
    endif //level 3
    return 41004.85
endfunction

Expand Same thing with 0 error, but ~0 readability:
__________________
By reading this signature, you agree that I cannot be held accountable for anything that I might say or do.
Here-b-Trollz is offline   Reply With Quote
Sponsored Links - Login to hide this ad!