Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/MTAREGG/slot_07_hatch.txt

37 lines
999 B
Text

function mtaregg_hatch() /* entry=343 class_id=0x0903 slot=0x07 */
{
var
referent, /* [BP+00h] type=0x69 */
item, /* [BP-02h] type=0x24 */
id, /* [BP-04h] type=0x69 */
hiValue, /* [BP-06h] type=0x69 */
loValue; /* [BP-08h] type=0x69 */
set_info(0x0210, *(arg_06));
process_exclude();
id = 0;
hiValue = 0;
loValue = 0;
id = Egg.getEggId(arg_06);
/* loop_selector item in selector_0x42(arg0=0x01F2, arg1=0x01F3, arg2=(20 * 32), origin=arg_06) */
while (!condition) {
loValue = Item.getQLo(item);
if (id == loValue) {
hiValue = Item.getQHi(item);
if (hiValue == 1) {
spawn MTAREGG.slot_20(74, 0, item, arg_06);
}
else if (hiValue == 2) {
spawn MTAREGG.slot_20(74, 4, item, arg_06);
}
else if (hiValue == 3) {
spawn MTAREGG.slot_20(74, 8, item, arg_06);
}
else if (hiValue == 4) {
spawn MTAREGG.slot_20(74, 12, item, arg_06);
}
}
/* loopnext */
}
return;
}