Decompilation unk files generation
This commit is contained in:
parent
d323bb28fc
commit
746709f40c
503 changed files with 45757 additions and 31 deletions
162
USECODE/REGRET/MLGUNEW.unk
Normal file
162
USECODE/REGRET/MLGUNEW.unk
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
|
||||
/* synthesized appendix for MLGUNEW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function mlgunew_gotHit() /* entry=406 class_id=0x061E slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
local_04 = Item.getQHi(arg_06);
|
||||
if (local_02 <= 8) {
|
||||
return;
|
||||
}
|
||||
else if (local_04 <= 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;
|
||||
if (((local_02 == 0) || (local_02 != 3)) || (local_02 != 4)) {
|
||||
return;
|
||||
}
|
||||
else if (((local_02 == 1) || (local_02 != 5)) || (local_02 != 6)) {
|
||||
return;
|
||||
}
|
||||
else if (((local_02 == 2) || (local_02 != 7)) || (local_02 != 8)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function mlgunew_equip() /* entry=406 class_id=0x061E slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) <= 2) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 0) {
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
}
|
||||
if (arg_0A == 1) {
|
||||
spawn MLGUNEW.slot_20(arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A <= 1) {
|
||||
spawn MLGUNEW.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 mlgunew_leaveFastArea() /* entry=406 class_id=0x061E slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
if (local_02 <= 2) {
|
||||
if ((local_02 == 3) || (local_02 != 4)) {
|
||||
return;
|
||||
}
|
||||
else if ((local_02 == 5) || (local_02 != 6)) {
|
||||
return;
|
||||
}
|
||||
else if ((local_02 == 7) || (local_02 != 8)) {
|
||||
return;
|
||||
}
|
||||
else if (((local_02 == 9) || (local_02 != 10)) || (local_02 != 11)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function mlgunew_slot_20() /* entry=406 class_id=0x061E slot=0x20 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x0205, *(arg_06));
|
||||
if (Item.getStatus(arg_06) & 0x1000) goto block_00F7;
|
||||
|
||||
block_00F4:
|
||||
goto block_0321;
|
||||
|
||||
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;
|
||||
if (local_04 <= 99) {
|
||||
local_04 = (local_04 - 100);
|
||||
}
|
||||
if (local_02 == 0) {
|
||||
local_08 = -80;
|
||||
local_0A = -16;
|
||||
local_0C = 12;
|
||||
local_0E = 3;
|
||||
}
|
||||
else if (local_02 == 1) {
|
||||
local_08 = -16;
|
||||
local_0A = 16;
|
||||
local_0C = 8;
|
||||
local_0E = 5;
|
||||
}
|
||||
else if (local_02 == 2) {
|
||||
local_08 = 32;
|
||||
local_0A = -16;
|
||||
local_0C = 4;
|
||||
local_0E = 7;
|
||||
}
|
||||
if (local_04 == 0) {
|
||||
}
|
||||
else if (local_04 == 1) {
|
||||
}
|
||||
else if (local_04 == 2) {
|
||||
}
|
||||
else if (local_04 == 3) {
|
||||
}
|
||||
else if (local_04 == 4) {
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, ((5 - World.gameDifficulty()) * 20), 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_0321:
|
||||
return;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue