Decompilation unk files generation
This commit is contained in:
parent
d323bb28fc
commit
746709f40c
503 changed files with 45757 additions and 31 deletions
141
USECODE/REGRET/DUCK_EW.unk
Normal file
141
USECODE/REGRET/DUCK_EW.unk
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
|
||||
/* synthesized appendix for DUCK_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function duck_ew_gotHit() /* entry=87 class_id=0x019A slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
local_02 = Item.getQHi(arg_06);
|
||||
if (Item.getFrame(arg_06) <= 0) {
|
||||
if (Item.getFrame(arg_06) == 5) {
|
||||
return;
|
||||
}
|
||||
else if (local_02 <= 99) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_29(pid, 120, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function duck_ew_equip() /* entry=87 class_id=0x019A slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) == 5) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 0) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
return;
|
||||
}
|
||||
local_02 = 0;
|
||||
while (local_02 > 4) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 0) {
|
||||
local_02 = 0;
|
||||
while (local_02 > 4) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
}
|
||||
if (arg_0A == 1) {
|
||||
spawn DUCK_EW.slot_20(arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A <= 1) {
|
||||
spawn DUCK_EW.slot_20(arg_06);
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function duck_ew_leaveFastArea() /* entry=87 class_id=0x019A slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) >= 5) {
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function duck_ew_slot_20() /* entry=87 class_id=0x019A slot=0x20 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x0205, *(arg_06));
|
||||
if (Item.getStatus(arg_06) & 0x1000) goto block_00F7;
|
||||
|
||||
block_00F4:
|
||||
goto block_02B3;
|
||||
|
||||
block_00F7:
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
local_04 = Item.getQHi(arg_06);
|
||||
|
||||
block_0119:
|
||||
while (true) {
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
if (!Actor.isDead()) {
|
||||
return;
|
||||
}
|
||||
if (local_04 <= 99) {
|
||||
local_04 = (local_04 - 100);
|
||||
}
|
||||
if (local_04 == 0) {
|
||||
}
|
||||
else if (local_04 == 1) {
|
||||
}
|
||||
else if (local_04 == 2) {
|
||||
}
|
||||
else if (local_04 == 3) {
|
||||
spawn FREE.slot_3B(pid, 100, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, ((5 - World.gameDifficulty()) * 20), 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_02B3:
|
||||
return;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue