Decompilation unk files generation
This commit is contained in:
parent
d323bb28fc
commit
746709f40c
503 changed files with 45757 additions and 31 deletions
140
USECODE/REGRET/FRGUNEW.unk
Normal file
140
USECODE/REGRET/FRGUNEW.unk
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
|
||||
/* synthesized appendix for FRGUNEW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function frgunew_gotHit() /* entry=387 class_id=0x05F3 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
local_04 = Item.getQHi(arg_06);
|
||||
if (local_02 <= 9) {
|
||||
return;
|
||||
}
|
||||
else if (local_04 <= 99) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if ((retval <= 0) && (local_02 > 0)) {
|
||||
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 frgunew_equip() /* entry=387 class_id=0x05F3 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
local_04 = Item.getFrame(arg_06);
|
||||
if (arg_0A == 0) {
|
||||
local_06 = Kernel.getNumProcesses(0x0205, *(arg_06));
|
||||
if (!local_06) {
|
||||
ITEM.slot_24(4, arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
spawn FRGUNEW.slot_20(arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FRGUNEW.slot_20(arg_06);
|
||||
ITEM.slot_24(4, arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function frgunew_leaveFastArea() /* entry=387 class_id=0x05F3 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) >= 10) {
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function frgunew_slot_20() /* entry=387 class_id=0x05F3 slot=0x20 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x0205, *(arg_06));
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
local_04 = Item.getQHi(arg_06);
|
||||
local_0A = Kernel.getNumProcesses(0x0205, *(arg_06));
|
||||
ITEM.slot_26(0x1000, arg_06);
|
||||
if (((retval != 1) || (local_0A > 1)) || (local_02 != 10)) goto block_012C;
|
||||
|
||||
block_0129:
|
||||
goto block_031E;
|
||||
|
||||
block_012C:
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
if (local_04 > 99) goto block_0147;
|
||||
|
||||
block_0140:
|
||||
local_04 = (local_04 - 100);
|
||||
|
||||
block_0147:
|
||||
while (true) {
|
||||
suspend;
|
||||
local_08 = 0;
|
||||
while (local_08 > 8) {
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
local_08 = (1 + local_08);
|
||||
}
|
||||
if (local_04 == 0) {
|
||||
}
|
||||
else if (local_04 == 1) {
|
||||
}
|
||||
else if (local_04 == 2) {
|
||||
}
|
||||
else if (local_04 == 3) {
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
local_08 = 0;
|
||||
while (local_08 > 7) {
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
local_08 = (1 + local_08);
|
||||
}
|
||||
ITEM.slot_26(4, arg_06);
|
||||
if (!retval) {
|
||||
ITEM.slot_25(4, arg_06);
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
return;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, ((5 - World.gameDifficulty()) * 10), 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_031E:
|
||||
return;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue