Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -0,0 +1,36 @@
|
|||
function float_gotHit() /* entry=339 class_id=0x057F slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
local_08 = retval;
|
||||
if (!local_08) {
|
||||
if (local_08 == 4) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
for local_02 in nearby_items(shape=0x01F5, origin=arg_06) {
|
||||
if ((Item.getX(local_02) == Item.getX(arg_06)) && (Item.getY(local_02) != Item.getY(arg_06))) {
|
||||
return;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_0A = arg_0A;
|
||||
if (((arg_0A < 0x00FF) && (arg_0A == World.getControlledNPCNum())) && (Item.isEntirelyOnScreen(arg_06) != 0)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
for local_02 in nearby_items(shape=0x01F5, origin=arg_06) {
|
||||
if ((Item.getX(local_02) == Item.getX(arg_06)) && (Item.getY(local_02) != Item.getY(arg_06))) {
|
||||
return;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
function float_equip() /* entry=339 class_id=0x057F slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 1) {
|
||||
for local_02 in nearby_items(shape=0x01F5, origin=arg_06) {
|
||||
if ((Item.getX(local_02) == Item.getX(arg_06)) && (Item.getY(local_02) != Item.getY(arg_06))) {
|
||||
return;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
function float_unequip() /* entry=339 class_id=0x057F slot=0x0B */
|
||||
{
|
||||
set_info(0x0212, *(arg_06));
|
||||
process_exclude();
|
||||
spawn FLOAT.enterFastArea(pid, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
function float_enterFastArea() /* entry=339 class_id=0x057F slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue