// 1 "runtime/init.j" // 1 "" // 1 "" // 31 "" // 1 "/usr/include/stdc-predef.h" 1 3 4 // 32 "" 2 // 1 "runtime/init.j" globals integer array JHCR_Init_fn_ids constant integer JHCR_Init_fn_max = 24 integer array JHCR_Init_g_ids constant integer JHCR_Init_g_max = 9 boolean JHCR_Init_already_init = false endglobals function JHCR_Init_parse takes nothing returns nothing local integer JHCR_Init_cnt = JHCR_Init_fn_max local string array JHCR_Init_tmp local integer JHCR_Init_g = 0 loop exitwhen JHCR_Init_cnt == 0 set JHCR_Init_tmp[JHCR_Init_cnt] = BlzGetAbilityTooltip(JHCR_Init_fn_ids[JHCR_Init_cnt], 1) set JHCR_Init_cnt = JHCR_Init_cnt -1 endloop set JHCR_Init_cnt = JHCR_Init_g_max loop exitwhen JHCR_Init_cnt == 0 set JHCR_Init_tmp[JHCR_Init_cnt + JHCR_Init_fn_max] = BlzGetAbilityTooltip(JHCR_Init_g_ids[JHCR_Init_cnt], 1) set JHCR_Init_cnt = JHCR_Init_cnt -1 endloop call Preloader("JHCR.txt") set JHCR_Init_cnt = GetPlayerTechMaxAllowed(Player(0), 1) set JHCR_Parser_prev_ins = 0 loop exitwhen JHCR_Init_cnt == 0 call JHCR_Parser_parse_and_init(BlzGetAbilityTooltip(JHCR_Init_fn_ids[JHCR_Init_cnt], 0)) call BlzSetAbilityTooltip(JHCR_Init_fn_ids[JHCR_Init_cnt], JHCR_Init_tmp[JHCR_Init_cnt], 0) set JHCR_Init_cnt = JHCR_Init_cnt -1 endloop set JHCR_Init_cnt = GetPlayerTechMaxAllowed(Player(0), 2) set JHCR_Parser_prev_ins = 0 loop exitwhen JHCR_Init_cnt == 0 set JHCR_Init_g = JHCR_Parser_parse_globals(BlzGetAbilityTooltip(JHCR_Init_g_ids[JHCR_Init_cnt], 0), JHCR_Init_g) call BlzSetAbilityTooltip(JHCR_Init_g_ids[JHCR_Init_cnt], JHCR_Init_tmp[JHCR_Init_cnt + JHCR_Init_fn_max], 0) set JHCR_Init_cnt = JHCR_Init_cnt -1 endloop if JHCR_Init_g != 0 then call JHCR_Interpreter_exec_globals(JHCR_Init_g) endif endfunction function JHCR_Init_i2code takes nothing returns nothing set JHCR_Wrap_ret = JHCR_Auto_i2code(JHCR_Wrap_p) endfunction function JHCR_Init_init takes nothing returns nothing if JHCR_Init_already_init then return endif set JHCR_Init_already_init = true set JHCR_Init_fn_ids[1] = 'Agyv' set JHCR_Init_fn_ids[2] = 'Aflk' set JHCR_Init_fn_ids[3] = 'Agyb' set JHCR_Init_fn_ids[4] = 'Ahea' set JHCR_Init_fn_ids[5] = 'Ainf' set JHCR_Init_fn_ids[6] = 'Aslo' set JHCR_Init_fn_ids[7] = 'Afla' set JHCR_Init_fn_ids[8] = 'Amls' set JHCR_Init_fn_ids[9] = 'Adis' set JHCR_Init_fn_ids[10] = 'Acmg' set JHCR_Init_fn_ids[11] = 'Amdf' set JHCR_Init_fn_ids[12] = 'Adts' set JHCR_Init_fn_ids[13] = 'Aast' set JHCR_Init_fn_ids[14] = 'Aetf' set JHCR_Init_fn_ids[15] = 'Absk' set JHCR_Init_fn_ids[16] = 'Alsh' set JHCR_Init_fn_ids[17] = 'Aens' set JHCR_Init_fn_ids[18] = 'Adcn' set JHCR_Init_fn_ids[19] = 'Aliq' set JHCR_Init_fn_ids[20] = 'Aspl' set JHCR_Init_fn_ids[21] = 'Aven' set JHCR_Init_fn_ids[22] = 'Ablo' set JHCR_Init_fn_ids[23] = 'Acpf' set JHCR_Init_fn_ids[24] = 'Awar' set JHCR_Init_g_ids[1] = 'Adec' set JHCR_Init_g_ids[2] = 'Aeat' set JHCR_Init_g_ids[3] = 'Aco3' set JHCR_Init_g_ids[4] = 'Acoh' set JHCR_Init_g_ids[5] = 'Abrf' set JHCR_Init_g_ids[6] = 'Aro2' set JHCR_Init_g_ids[7] = 'Aro1' set JHCR_Init_g_ids[8] = 'Aegr' set JHCR_Init_g_ids[9] = 'Aren' call TriggerAddCondition(JHCR_Wrap_t2, Condition(function JHCR_Init_i2code)) call JHCR_Types_init() call JHCR_Wrap_init() call JHCR_Convert_init() call JHCR_Ins_init() call JHCR_Interpreter_init() call JHCR_Modified_init() endfunction