// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function getDamageDuration takes integer w_level returns real return 6. endfunction function getDamage takes integer level returns real local integer temp = level if temp == 1 then return getDamageDuration(level) * 20. elseif temp == 2 then return getDamageDuration(level) * 40. elseif temp == 3 then return getDamageDuration(level) * 60. endif return 0. endfunction function init_test takes nothing returns nothing if getDamage(2) > 239. and getDamage(2) < 241. then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction