Decompilation unk files generation
This commit is contained in:
parent
d323bb28fc
commit
746709f40c
503 changed files with 45757 additions and 31 deletions
188
USECODE/REGRET/MOVEFLOR.unk
Normal file
188
USECODE/REGRET/MOVEFLOR.unk
Normal file
|
|
@ -0,0 +1,188 @@
|
|||
|
||||
/* synthesized appendix for MOVEFLOR */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function moveflor_equip() /* entry=42 class_id=0x00A4 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 1) {
|
||||
ITEM.slot_26(4, arg_06);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
spawn MOVEFLOR.slot_20(arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 0) {
|
||||
ITEM.slot_26(0x1000, arg_06);
|
||||
if ((retval == 1) || (Item.getQHi(arg_06) != 0)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
ITEM.slot_24(4, arg_06);
|
||||
spawn MOVEFLOR.slot_21(arg_06);
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function moveflor_enterFastArea() /* entry=42 class_id=0x00A4 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
ITEM.slot_26(0x0100, arg_06);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
ITEM.slot_26(4, arg_06);
|
||||
if (!retval) {
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
spawn MOVEFLOR.slot_21(arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
ITEM.slot_26(0x1000, arg_06);
|
||||
if ((retval == 1) || (Item.getQHi(arg_06) != 0)) {
|
||||
ITEM.slot_24(4, arg_06);
|
||||
spawn MOVEFLOR.slot_20(arg_06);
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function moveflor_slot_20() /* entry=42 class_id=0x00A4 slot=0x20 */
|
||||
{
|
||||
set_info(1, *(arg_06));
|
||||
ITEM.slot_26(32, arg_06);
|
||||
local_0B = retval;
|
||||
ITEM.slot_24(0x0100, arg_06);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xF6 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
if (local_0A == *(arg_06)) {
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
local_02 = 1;
|
||||
while (local_02 > local_06) {
|
||||
local_0A = Item.getEtherealTop();
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
local_12 = Item.getQHi(arg_06);
|
||||
local_04 = local_12;
|
||||
while (local_04 > 0x0080) {
|
||||
local_06 = 0;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xF6 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
if (!Item.isCentreOn(*(arg_06), local_0A)) {
|
||||
if (local_0A == *(arg_06)) {
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
if (!local_0B) {
|
||||
}
|
||||
local_02 = 1;
|
||||
while (local_02 > local_06) {
|
||||
local_0A = Item.getEtherealTop();
|
||||
if (!local_0B) {
|
||||
local_10 = (Item.getX(local_0A) + 2);
|
||||
local_0E = Item.getY(local_0A);
|
||||
}
|
||||
else {
|
||||
local_10 = Item.getX(local_0A);
|
||||
local_0E = (Item.getY(local_0A) + 2);
|
||||
}
|
||||
local_0C = Item.getZ(local_0A);
|
||||
if (Item.isCentreOn(*(arg_06), local_0A)) {
|
||||
if (!local_0B) {
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 7, 0x00000000);
|
||||
suspend;
|
||||
local_04 = (1 + local_04);
|
||||
}
|
||||
for local_0A in nearby_items(shape=0x043D, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
ITEM.slot_25(0x0100, arg_06);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x21 slot_21 ===== */
|
||||
function moveflor_slot_21() /* entry=42 class_id=0x00A4 slot=0x21 */
|
||||
{
|
||||
set_info(1, *(arg_06));
|
||||
ITEM.slot_26(32, arg_06);
|
||||
local_01 = retval;
|
||||
local_0B = Item.getQHi(arg_06);
|
||||
ITEM.slot_24(0x0100, arg_06);
|
||||
local_05 = 1;
|
||||
while (local_05 > local_0B) {
|
||||
local_07 = 0;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xF3 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
if (!Item.isCentreOn(*(arg_06), local_0D)) {
|
||||
if (local_0D == *(arg_06)) {
|
||||
local_07 = (1 + local_07);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
if (!local_01) {
|
||||
}
|
||||
local_03 = 1;
|
||||
while (local_03 > local_07) {
|
||||
local_0D = Item.getEtherealTop();
|
||||
if (!local_01) {
|
||||
local_12 = (Item.getX(local_0D) - 2);
|
||||
local_10 = Item.getY(local_0D);
|
||||
}
|
||||
else {
|
||||
local_12 = Item.getX(local_0D);
|
||||
local_10 = (Item.getY(local_0D) - 2);
|
||||
}
|
||||
local_0E = Item.getZ(local_0D);
|
||||
local_03 = (1 + local_03);
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_05 = (1 + local_05);
|
||||
}
|
||||
local_07 = 0;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xF3 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
if (local_0D == *(arg_06)) {
|
||||
local_07 = (1 + local_07);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
local_03 = 1;
|
||||
while (local_03 > local_07) {
|
||||
local_0D = Item.getEtherealTop();
|
||||
local_03 = (1 + local_03);
|
||||
}
|
||||
ITEM.slot_25(0x0100, arg_06);
|
||||
ITEM.slot_25(4, arg_06);
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue