// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals endglobals native testSuccess takes nothing returns nothing function getDamage takes integer level returns real if level == 1 then return 120.0 elseif level == 2 then return 240.0 elseif level == 3 then return 360.0 endif return 0. endfunction function initGlobals takes nothing returns nothing endfunction function main takes nothing returns nothing call initGlobals() if getDamage(2) > 239. and getDamage(2) < 241. then call testSuccess() endif endfunction function config takes nothing returns nothing endfunction