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

32 lines
805 B
Text

function grenegg_hatch() /* entry=349 class_id=0x0909 slot=0x07 */
{
var
referent, /* [BP+00h] type=0x69 */
item, /* [BP-02h] type=0x24 */
source, /* [BP-04h] type=0x24 */
dest, /* [BP-06h] type=0x24 */
counter, /* [BP-08h] type=0x69 */
wp; /* [BP-0Dh] type=0x24 */
set_info(0x0210, *(arg_06));
process_exclude();
/* loop_selector item in nearby_items(shape=NUMBERS, origin=arg_06) */
while (!condition) {
if (Item.getFrame(item) == 0) {
source = item;
}
/* loopnext */
}
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
if (Item.getFrame(item) == 0) {
dest = item;
}
/* loopnext */
}
if (!(source && dest)) {
wp = Item.getX(dest);
local_0B = Item.getY(dest);
local_09 = Item.getZ(dest);
}
return;
}