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

32 lines
805 B
Text
Raw Normal View History

2026-03-25 23:32:13 +01:00
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 */
2026-03-26 00:37:17 +01:00
set_info(0x0210, *(arg_06));
process_exclude();
/* loop_selector item in nearby_items(shape=NUMBERS, origin=arg_06) */
2026-03-26 00:37:17 +01:00
while (!condition) {
if (Item.getFrame(item) == 0) {
source = item;
}
2026-03-25 23:32:13 +01:00
/* loopnext */
2026-03-26 00:37:17 +01:00
}
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
2026-03-26 00:37:17 +01:00
if (Item.getFrame(item) == 0) {
dest = item;
}
2026-03-25 23:32:13 +01:00
/* loopnext */
2026-03-26 00:37:17 +01:00
}
if (!(source && dest)) {
wp = Item.getX(dest);
local_0B = Item.getY(dest);
2026-03-25 23:32:13 +01:00
local_09 = Item.getZ(dest);
2026-03-26 00:37:17 +01:00
}
return;
2026-03-25 23:32:13 +01:00
}