Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -0,0 +1,49 @@
|
|||
function pplate2_gotHit() /* entry=86 class_id=0x0199 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A1D_slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (!(local_02 & 1)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCentreOn(*(arg_06), local_04) != 0)) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn class_0A17_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
while (!(1)) {
|
||||
if (Item.getSurfaceWeight(arg_06) == 0) {
|
||||
spawn class_0A1D_slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn class_0A17_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
while (!(1)) {
|
||||
if (Item.getSurfaceWeight(arg_06) == 0) {
|
||||
spawn class_0A1D_slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
function pplate2_equip() /* entry=86 class_id=0x0199 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (!(local_02 & 1)) {
|
||||
spawn class_0A1D_slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A17_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_0A1D_slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A17_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue