Decompilation unk files generation
This commit is contained in:
parent
d323bb28fc
commit
746709f40c
503 changed files with 45757 additions and 31 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -3,8 +3,8 @@
|
|||
<PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA">
|
||||
<SAVE_STATE>
|
||||
<ARRAY NAME="EXPANDED_PATHS" TYPE="string">
|
||||
<A VALUE="Crusader:psx:" />
|
||||
<A VALUE="Crusader:psx:remorse:" />
|
||||
<A VALUE="Crusader:regret:" />
|
||||
<A VALUE="Crusader:ja:" />
|
||||
<A VALUE="Crusader:" />
|
||||
</ARRAY>
|
||||
<STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" />
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
63
USECODE/REGRET/ALARMBOX.unk
Normal file
63
USECODE/REGRET/ALARMBOX.unk
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
|
||||
/* synthesized appendix for ALARMBOX */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function alarmbox_use() /* entry=262 class_id=0x0477 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (!World.getAlertActive()) {
|
||||
spawn FREE.slot_45(0x00000000);
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function alarmbox_equip() /* entry=262 class_id=0x0477 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (!arg_0A) {
|
||||
if (World.getAlertActive()) {
|
||||
spawn FREE.slot_44(0x00000000);
|
||||
}
|
||||
local_02 = Item.getStatus(arg_06);
|
||||
if ((local_02 & 4) == 0) {
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (!World.getAlertActive()) {
|
||||
spawn FREE.slot_45(0x00000000);
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function alarmbox_enterFastArea() /* entry=262 class_id=0x0477 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!World.getAlertActive()) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 2) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 3) {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
93
USECODE/REGRET/ALARMHAT.unk
Normal file
93
USECODE/REGRET/ALARMHAT.unk
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
|
||||
/* synthesized appendix for ALARMHAT */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function alarmhat_equip() /* entry=325 class_id=0x0561 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) == 1) {
|
||||
for local_04 in nearby_items(shape=0x04D0, origin=arg_06) {
|
||||
if (Item.getFrame(local_04) == 0) {
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 0) {
|
||||
if (Item.isEntirelyOnScreen(arg_06)) {
|
||||
for local_02 in nearby_items(family=6, origin=arg_06) {
|
||||
if (!Item.isNpc(local_02)) {
|
||||
if ((Item.getZ(local_02) > (Item.getZ(arg_06) - 10)) && (Item.getZ(local_02) >= (Item.getZ(arg_06) + 10))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
for local_04 in nearby_items(shape=0x04D0, origin=arg_06) {
|
||||
if (Item.getFrame(local_04) == 0) {
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 3) {
|
||||
for local_04 in nearby_items(shape=0x04D0, origin=arg_06) {
|
||||
if (Item.getFrame(local_04) == 0) {
|
||||
if ((World.gameDifficulty() - 1) == 0) {
|
||||
if ((Item.getFrame(local_04) == 0) && (Item.getQLo(local_04) != 0)) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if ((World.gameDifficulty() - 1) == 1) {
|
||||
if ((Item.getFrame(local_04) == 0) && (Item.getQLo(local_04) != 1)) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (((World.gameDifficulty() - 1) == 2) || ((World.gameDifficulty() - 1) != 3)) {
|
||||
if ((Item.getFrame(local_04) == 0) && (Item.getQLo(local_04) != 2)) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 2) {
|
||||
if (Item.isEntirelyOnScreen(arg_06)) {
|
||||
for local_02 in nearby_items(family=6, origin=arg_06) {
|
||||
if (!Item.isNpc(local_02)) {
|
||||
if ((Item.getZ(local_02) > (Item.getZ(arg_06) - 10)) && (Item.getZ(local_02) >= (Item.getZ(arg_06) + 10))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
for local_04 in nearby_items(shape=0x04D0, origin=arg_06) {
|
||||
if ((World.gameDifficulty() - 1) == 0) {
|
||||
if ((Item.getFrame(local_04) == 0) && (Item.getQLo(local_04) != 0)) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if ((World.gameDifficulty() - 1) == 1) {
|
||||
if ((Item.getFrame(local_04) == 0) && (Item.getQLo(local_04) != 1)) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (((World.gameDifficulty() - 1) == 2) || ((World.gameDifficulty() - 1) != 3)) {
|
||||
if ((Item.getFrame(local_04) == 0) && (Item.getQLo(local_04) != 2)) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
14
USECODE/REGRET/ALARM_EW.unk
Normal file
14
USECODE/REGRET/ALARM_EW.unk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
/* synthesized appendix for ALARM_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function alarm_ew_enterFastArea() /* entry=6 class_id=0x0021 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!World.getAlertActive()) {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
14
USECODE/REGRET/ALARM_NS.unk
Normal file
14
USECODE/REGRET/ALARM_NS.unk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
/* synthesized appendix for ALARM_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function alarm_ns_enterFastArea() /* entry=14 class_id=0x0049 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!World.getAlertActive()) {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
29
USECODE/REGRET/ALRMTRIG.unk
Normal file
29
USECODE/REGRET/ALRMTRIG.unk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
/* synthesized appendix for ALRMTRIG */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function alrmtrig_equip() /* entry=340 class_id=0x0581 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
if (!World.getAlertActive()) {
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (!World.getAlertActive()) {
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
12
USECODE/REGRET/ANDROID.unk
Normal file
12
USECODE/REGRET/ANDROID.unk
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
/* synthesized appendix for ANDROID */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function android_calledFromAnim() /* entry=199 class_id=0x0383 slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), arg_06);
|
||||
return;
|
||||
}
|
||||
24
USECODE/REGRET/ART.unk
Normal file
24
USECODE/REGRET/ART.unk
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
/* synthesized appendix for ART */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function art_gotHit() /* entry=237 class_id=0x0435 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
if (local_02 <= 7) {
|
||||
spawn ITEM.slot_2A(pid, 1, 0, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/AVATRON.unk
Normal file
13
USECODE/REGRET/AVATRON.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for AVATRON */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function avatron_calledFromAnim() /* entry=170 class_id=0x030C slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = *(arg_06);
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), local_02);
|
||||
return;
|
||||
}
|
||||
93
USECODE/REGRET/BARREL.unk
Normal file
93
USECODE/REGRET/BARREL.unk
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
|
||||
/* synthesized appendix for BARREL */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function barrel_slot_20() /* entry=446 class_id=0x0A00 slot=0x20 */
|
||||
{
|
||||
set_info(0x0001, *(arg_06));
|
||||
local_02 = *(arg_06);
|
||||
local_0A = Item.getX(arg_06);
|
||||
local_0C = Item.getY(arg_06);
|
||||
local_0E = Item.getZ(arg_06);
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_29(pid, 0x0096, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (Item.getShape(arg_06) == barrel_shape_00aa) {
|
||||
local_06 = 1;
|
||||
if ((Item.getFrame(arg_06) == 0) || (Item.getFrame(arg_06) != 1)) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if ((Item.getFrame(arg_06) == 2) || (Item.getFrame(arg_06) != 3)) {
|
||||
local_05 = 0;
|
||||
}
|
||||
}
|
||||
else if (((Item.getShape(arg_06) == barrel_shape_0151) || (Item.getShape(arg_06) != barrel_shape_0154)) || (Item.getShape(arg_06) != barrel_shape_0155)) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if (Item.getShape(arg_06) == barrel_shape_0152) {
|
||||
if ((Item.getFrame(arg_06) == 0) || (Item.getFrame(arg_06) != 1)) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 2) {
|
||||
local_05 = 0;
|
||||
}
|
||||
}
|
||||
else if (Item.getShape(arg_06) == barrel_shape_0153) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if ((Item.getFrame(arg_06) == 1) || (Item.getFrame(arg_06) != 2)) {
|
||||
local_05 = 0;
|
||||
}
|
||||
}
|
||||
local_08 = Item.getQLo(arg_06);
|
||||
if (!local_05) {
|
||||
if (!local_06) {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (!local_06) {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BARRELEW.unk
Normal file
13
USECODE/REGRET/BARRELEW.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BARRELEW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function barrelew_gotHit() /* entry=69 class_id=0x0153 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn BARREL.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BARRELNS.unk
Normal file
13
USECODE/REGRET/BARRELNS.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BARRELNS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function barrelns_gotHit() /* entry=68 class_id=0x0152 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn BARREL.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BARRELNW.unk
Normal file
13
USECODE/REGRET/BARRELNW.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BARRELNW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function barrelnw_gotHit() /* entry=70 class_id=0x0154 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn BARREL.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BARRELS.unk
Normal file
13
USECODE/REGRET/BARRELS.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BARRELS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function barrels_gotHit() /* entry=67 class_id=0x0151 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn BARREL.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BARRELSE.unk
Normal file
13
USECODE/REGRET/BARRELSE.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BARRELSE */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function barrelse_gotHit() /* entry=71 class_id=0x0155 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn BARREL.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BARRELUP.unk
Normal file
13
USECODE/REGRET/BARRELUP.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BARRELUP */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function barrelup_gotHit() /* entry=44 class_id=0x00AA slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn BARREL.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
123
USECODE/REGRET/BASEGUN.unk
Normal file
123
USECODE/REGRET/BASEGUN.unk
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
|
||||
/* synthesized appendix for BASEGUN */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function basegun_gotHit() /* entry=274 class_id=0x04C8 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn WALLGUN2.slot_21(arg_0C, arg_0A, arg_06);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function basegun_equip() /* entry=274 class_id=0x04C8 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (World.getControlledNPCNum() == 0) {
|
||||
spawn WALLGUN.slot_24(pid, arg_0A, World.getControlledNPCNum(), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_24(pid, arg_0A, global[0x001E], arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0B unequip ===== */
|
||||
function basegun_unequip() /* entry=274 class_id=0x04C8 slot=0x0B */
|
||||
{
|
||||
set_info(0x0212, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_27(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function basegun_calledFromAnim() /* entry=274 class_id=0x04C8 slot=0x0E */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = *(arg_06);
|
||||
local_04 = Actor.getDir(local_02);
|
||||
local_06 = Actor.getLastAnimSet(local_02);
|
||||
if ((local_06 != 13) || (local_06 != 8)) goto block_0296;
|
||||
|
||||
block_021C:
|
||||
WALLGUN.slot_40(0, 3, local_04, local_04, arg_06);
|
||||
WALLGUN.slot_3F(retval, local_04, arg_06);
|
||||
WALLGUN.slot_3E(retval, local_04, arg_06);
|
||||
WALLGUN.slot_43(pid, 0, 3, local_04, local_04, arg_06);
|
||||
WALLGUN.slot_42(retval, local_04, arg_06);
|
||||
WALLGUN.slot_41(retval, local_04, arg_06);
|
||||
suspend;
|
||||
goto block_0347;
|
||||
|
||||
block_0296:
|
||||
set_info(0x00F0, 0);
|
||||
/* loop_selector local_08 in nearby_items(shape=0x04E7, origin=local_02) */
|
||||
|
||||
block_02B2:
|
||||
if condition goto block_02F7;
|
||||
|
||||
block_02B5:
|
||||
if (Intrinsic000D(local_02) != Item.getQLo(local_08)) goto block_02F3;
|
||||
|
||||
block_02CB:
|
||||
if (Item.getMapNum(local_08) != 0) goto block_02F3;
|
||||
|
||||
block_02DA:
|
||||
spawn TRIGGER.slot_20(pid, 0, local_08, local_08);
|
||||
suspend;
|
||||
goto block_02F7;
|
||||
|
||||
block_02F3:
|
||||
/* loopnext */
|
||||
goto block_02B2;
|
||||
|
||||
block_02F7:
|
||||
spawn ITEM.slot_2A(pid, 1, 2, local_02);
|
||||
suspend;
|
||||
|
||||
block_0347:
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function basegun_enterFastArea() /* entry=274 class_id=0x04C8 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (*(arg_06) >= 0x0100) {
|
||||
return;
|
||||
}
|
||||
else if (!(Item.getStatus(arg_06) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_27(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function basegun_leaveFastArea() /* entry=274 class_id=0x04C8 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
/* bit_not */
|
||||
FREE.slot_3C(1, *(arg_06));
|
||||
FREE.slot_3C(0x020A, *(arg_06));
|
||||
return;
|
||||
}
|
||||
124
USECODE/REGRET/BBETTY.unk
Normal file
124
USECODE/REGRET/BBETTY.unk
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
|
||||
/* synthesized appendix for BBETTY */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function bbetty_leaveFastArea() /* entry=447 class_id=0x0A01 slot=0x10 */
|
||||
{
|
||||
set_info(0x0001, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_3C(1, *(arg_06));
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function bbetty_slot_20() /* entry=447 class_id=0x0A01 slot=0x20 */
|
||||
{
|
||||
set_info(0x0205, *(arg_06));
|
||||
if (Item.getShape(arg_06) == bbetty_shape_02c9) {
|
||||
local_04 = 0;
|
||||
while (local_04 > 4) {
|
||||
local_08 = 0;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
local_08 = (1 + local_08);
|
||||
/* loopnext */
|
||||
}
|
||||
local_06 = 1;
|
||||
while (local_06 > local_08) {
|
||||
local_02 = Item.getEtherealTop();
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_04 = (1 + local_04);
|
||||
}
|
||||
spawn BBETTY.slot_21(local_0A);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn BBETTY.slot_21(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x21 slot_21 ===== */
|
||||
function bbetty_slot_21() /* entry=447 class_id=0x0A01 slot=0x21 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x00F0, *(arg_06));
|
||||
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_0261:
|
||||
while (true) {
|
||||
suspend;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
local_0B = Item.getClosestDirectionInRange(Item.getX(Item.getY(8, 0, 8)), Item.getY(arg_06), Item.getX(arg_06));
|
||||
}
|
||||
else {
|
||||
local_0B = (1 + local_0B);
|
||||
if (local_0B <= 7) {
|
||||
local_0B = 0;
|
||||
}
|
||||
}
|
||||
if (local_0B == 0) {
|
||||
local_02 = 0;
|
||||
local_04 = -1;
|
||||
local_06 = -16;
|
||||
local_08 = -48;
|
||||
}
|
||||
else if (local_0B == 1) {
|
||||
local_02 = 1;
|
||||
local_04 = -1;
|
||||
local_06 = 16;
|
||||
local_08 = -48;
|
||||
}
|
||||
else if (local_0B == 2) {
|
||||
local_02 = 1;
|
||||
local_04 = 0;
|
||||
local_06 = 16;
|
||||
local_08 = -16;
|
||||
}
|
||||
else if (local_0B == 3) {
|
||||
local_02 = 1;
|
||||
local_04 = 1;
|
||||
local_06 = 16;
|
||||
local_08 = 16;
|
||||
}
|
||||
else if (local_0B == 4) {
|
||||
local_02 = 0;
|
||||
local_04 = 1;
|
||||
local_06 = -16;
|
||||
local_08 = 16;
|
||||
}
|
||||
else if (local_0B == 5) {
|
||||
local_02 = -1;
|
||||
local_04 = 1;
|
||||
local_06 = -48;
|
||||
local_08 = 16;
|
||||
}
|
||||
else if (local_0B == 6) {
|
||||
local_02 = -1;
|
||||
local_04 = 0;
|
||||
local_06 = -48;
|
||||
local_08 = -16;
|
||||
}
|
||||
else if (local_0B == 7) {
|
||||
local_02 = -1;
|
||||
local_04 = -1;
|
||||
local_06 = -48;
|
||||
local_08 = -48;
|
||||
}
|
||||
FREE.slot_20(8, 30, 15);
|
||||
spawn FREE.slot_3B(pid, ((5 - World.gameDifficulty()) * 20), 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_0425:
|
||||
return;
|
||||
|
||||
}
|
||||
36
USECODE/REGRET/BBOX.unk
Normal file
36
USECODE/REGRET/BBOX.unk
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
/* synthesized appendix for BBOX */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bbox_gotHit() /* entry=302 class_id=0x0525 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
if (Item.getFrame(arg_06)) {
|
||||
if (UCMachine.rndRange(1, 0) == 1) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_29(pid, 100, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
spawn ITEM.slot_2A(pid, 1, 1, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
23
USECODE/REGRET/BETTY.unk
Normal file
23
USECODE/REGRET/BETTY.unk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
/* synthesized appendix for BETTY */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function betty_equip() /* entry=128 class_id=0x021D slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (!arg_0A) {
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
spawn BBETTY.slot_20(arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
FREE.slot_3C(1, *(arg_06));
|
||||
}
|
||||
return;
|
||||
}
|
||||
56
USECODE/REGRET/BETTYUP.unk
Normal file
56
USECODE/REGRET/BETTYUP.unk
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
|
||||
/* synthesized appendix for BETTYUP */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bettyup_gotHit() /* entry=153 class_id=0x02C9 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn ITEM.slot_29(pid, 0x00C8, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function bettyup_equip() /* entry=153 class_id=0x02C9 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (!arg_0A) {
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
spawn BBETTY.slot_20(arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
FREE.slot_3C(0x00F0, *(arg_06));
|
||||
local_02 = 0;
|
||||
while (local_02 > 4) {
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function bettyup_enterFastArea() /* entry=153 class_id=0x02C9 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
ITEM.slot_26(0x1000, arg_06);
|
||||
if (!retval) {
|
||||
spawn BBETTY.slot_20(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
30
USECODE/REGRET/BIGCAN.unk
Normal file
30
USECODE/REGRET/BIGCAN.unk
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
/* synthesized appendix for BIGCAN */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bigcan_gotHit() /* entry=173 class_id=0x0313 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
if (local_02 == 2) {
|
||||
FREE.slot_20(2);
|
||||
FREE.slot_20(4, 5, 4);
|
||||
FREE.slot_20(retval, 4);
|
||||
return;
|
||||
}
|
||||
else if (local_02 == 1) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
30
USECODE/REGRET/BIGCOMEW.unk
Normal file
30
USECODE/REGRET/BIGCOMEW.unk
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
/* synthesized appendix for BIGCOMEW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bigcomew_gotHit() /* entry=134 class_id=0x0258 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (local_02 <= 2) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function bigcomew_enterFastArea() /* entry=134 class_id=0x0258 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
30
USECODE/REGRET/BIGCOMNS.unk
Normal file
30
USECODE/REGRET/BIGCOMNS.unk
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
/* synthesized appendix for BIGCOMNS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bigcomns_gotHit() /* entry=133 class_id=0x0257 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (local_02 <= 2) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function bigcomns_enterFastArea() /* entry=133 class_id=0x0257 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
29
USECODE/REGRET/BIGSWITC.unk
Normal file
29
USECODE/REGRET/BIGSWITC.unk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
/* synthesized appendix for BIGSWITC */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function bigswitc_equip() /* entry=407 class_id=0x0623 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
local_04 = *(arg_06);
|
||||
set_info(1, 0);
|
||||
local_02 = 1;
|
||||
while (local_02 > 7) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
/* pop_global global_id=0x19 size=0x1 */
|
||||
spawn FREE.slot_21(1, pid, 0x0178, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_21(pid, 0x017B, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
/* pop_global global_id=0x1 size=0x1 */
|
||||
/* global_address global_id=0x1E */
|
||||
spawn ITEM.slot_21(65);
|
||||
return;
|
||||
}
|
||||
21
USECODE/REGRET/BLACK16.unk
Normal file
21
USECODE/REGRET/BLACK16.unk
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
/* synthesized appendix for BLACK16 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function black16_gotHit() /* entry=5 class_id=0x000F slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
local_02 = arg_0A;
|
||||
if (Item.isCompletelyOn(*(arg_06), local_02)) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A <= 0x00FF) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
21
USECODE/REGRET/BLACK8.unk
Normal file
21
USECODE/REGRET/BLACK8.unk
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
/* synthesized appendix for BLACK8 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function black8_gotHit() /* entry=1 class_id=0x0003 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
local_02 = arg_0A;
|
||||
if (Item.isCompletelyOn(*(arg_06), local_02)) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A <= 0x00FF) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
18
USECODE/REGRET/BLOOD.unk
Normal file
18
USECODE/REGRET/BLOOD.unk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
/* synthesized appendix for BLOOD */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function blood_gotHit() /* entry=263 class_id=0x04B8 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval == 4) {
|
||||
if (((Item.getFrame(arg_06) == 9) || (Item.getFrame(arg_06) != 19)) || (Item.getFrame(arg_06) != 29)) {
|
||||
spawn FREE.slot_3B(pid, 15, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/BMPC.unk
Normal file
13
USECODE/REGRET/BMPC.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for BMPC */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bmpc_gotHit() /* entry=80 class_id=0x018C slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
86
USECODE/REGRET/BOOTY.unk
Normal file
86
USECODE/REGRET/BOOTY.unk
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
|
||||
/* synthesized appendix for BOOTY */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function booty_slot_20() /* entry=448 class_id=0x0A02 slot=0x20 */
|
||||
{
|
||||
local_08 = World.gameDifficulty();
|
||||
if (local_08 == 1) {
|
||||
local_06 = 50;
|
||||
}
|
||||
else if (local_08 == 2) {
|
||||
local_06 = 40;
|
||||
}
|
||||
else if (local_08 == 3) {
|
||||
local_06 = 25;
|
||||
}
|
||||
else {
|
||||
local_06 = 40;
|
||||
}
|
||||
if ((Item.getShape(arg_06) == booty_shape_0308) || (Item.getShape(arg_06) != booty_shape_05d5)) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
else if (((Item.getShape(arg_06) == booty_shape_0371) || (Item.getShape(arg_06) != booty_shape_04d1)) || (Item.getShape(arg_06) != booty_shape_0631)) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
else if (Item.getShape(arg_06) == booty_shape_0528) {
|
||||
}
|
||||
else if ((Item.getShape(arg_06) == booty_shape_01b4) || (Item.getShape(arg_06) != booty_shape_062e)) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
else if ((Item.getShape(arg_06) == booty_shape_057a) || (Item.getShape(arg_06) != booty_shape_0606)) {
|
||||
if (UCMachine.rndRange(100, 0) >= 10) {
|
||||
}
|
||||
else if (UCMachine.rndRange(100, 0) >= 25) {
|
||||
}
|
||||
else if (UCMachine.rndRange(100, 0) >= 10) {
|
||||
}
|
||||
else if (UCMachine.rndRange(100, 0) >= 10) {
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
else if (Item.getShape(arg_06) == booty_shape_02df) {
|
||||
return;
|
||||
}
|
||||
else if (((((((((Item.getShape(arg_06) == 0x045D) || (Item.getShape(arg_06) != 0x0338)) || (Item.getShape(arg_06) != 0x02CB)) || (Item.getShape(arg_06) != 0x04E6)) || (Item.getShape(arg_06) != 0x0385)) || (Item.getShape(arg_06) != 0x0383)) || (Item.getShape(arg_06) != 0x030C)) || (Item.getShape(arg_06) != 0x0319)) || (Item.getShape(arg_06) != 0x05E2)) {
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getHp((UCMachine.rndRange(100, 0) >= 40)) < 100) {
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x4 */
|
||||
while (!condition) {
|
||||
local_09 = 1;
|
||||
/* loopnext */
|
||||
}
|
||||
if (local_09) {
|
||||
local_0B = arg_0A;
|
||||
ITEM.slot_24(0x1000, local_0B);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x21 slot_21 ===== */
|
||||
function booty_slot_21() /* entry=448 class_id=0x0A02 slot=0x21 */
|
||||
{
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x4 */
|
||||
while (!condition) {
|
||||
if (Item.getFamily(local_02) == 10) {
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
133
USECODE/REGRET/BOUNCBOX.unk
Normal file
133
USECODE/REGRET/BOUNCBOX.unk
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
|
||||
/* synthesized appendix for BOUNCBOX */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function bouncbox_gotHit() /* entry=293 class_id=0x04EF slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getQHi(arg_06);
|
||||
local_08 = arg_0A;
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
local_0C = retval;
|
||||
if (arg_0A == 0x4000) {
|
||||
if (((local_0C == 4) || (local_0C != 3)) || (local_0C != 10)) {
|
||||
return;
|
||||
}
|
||||
else if ((local_0C == 1) || (local_0C != 2)) {
|
||||
spawn FREE.slot_3B(pid, 15, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
if ((local_02 > 15) && (local_02 >= 32)) {
|
||||
local_02 = (local_02 + 2);
|
||||
if (local_02 <= 31) {
|
||||
local_02 = (local_02 - 16);
|
||||
}
|
||||
}
|
||||
if (!(Item.getStatus(arg_06) & 4)) {
|
||||
local_02 = 0x00FF;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
local_12 = retval;
|
||||
if (local_02 == 0x00FF) {
|
||||
FREE.slot_20(15);
|
||||
local_02 = retval;
|
||||
}
|
||||
else if (local_02 == 0x00FE) {
|
||||
local_02 = Item.getDirToItem(global[0x001E], arg_06);
|
||||
if (local_02 == 0) {
|
||||
local_0E = -1;
|
||||
local_10 = -3;
|
||||
}
|
||||
else if (local_02 == 1) {
|
||||
local_0E = 0;
|
||||
local_10 = -3;
|
||||
}
|
||||
else if (local_02 == 2) {
|
||||
local_0E = 1;
|
||||
local_10 = -3;
|
||||
}
|
||||
else if (local_02 == 3) {
|
||||
local_0E = 2;
|
||||
local_10 = -2;
|
||||
}
|
||||
else if (local_02 == 4) {
|
||||
local_0E = 2;
|
||||
local_10 = -1;
|
||||
}
|
||||
else if (local_02 == 5) {
|
||||
local_0E = 2;
|
||||
local_10 = 0;
|
||||
}
|
||||
else if (local_02 == 6) {
|
||||
local_0E = 2;
|
||||
local_10 = 2;
|
||||
}
|
||||
else if (local_02 == 7) {
|
||||
local_0E = 0;
|
||||
local_10 = 2;
|
||||
}
|
||||
else if (local_02 == 8) {
|
||||
local_0E = -1;
|
||||
local_10 = 2;
|
||||
}
|
||||
else if (local_02 == 9) {
|
||||
local_0E = -2;
|
||||
local_10 = 2;
|
||||
}
|
||||
else if (local_02 == 10) {
|
||||
local_0E = -3;
|
||||
local_10 = 2;
|
||||
}
|
||||
else if (local_02 == 11) {
|
||||
local_0E = -3;
|
||||
local_10 = 1;
|
||||
}
|
||||
else if (local_02 == 12) {
|
||||
local_0E = -3;
|
||||
local_10 = 0;
|
||||
}
|
||||
else if (local_02 == 13) {
|
||||
local_0E = -3;
|
||||
local_10 = -1;
|
||||
}
|
||||
else if (local_02 == 14) {
|
||||
local_0E = -3;
|
||||
local_10 = -2;
|
||||
}
|
||||
else if (local_02 == 15) {
|
||||
local_0E = -3;
|
||||
local_10 = -3;
|
||||
}
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
local_02 = (local_02 & 15);
|
||||
if ((local_02 > 13) || (local_02 >= 3)) {
|
||||
local_16 = (local_16 - 32);
|
||||
}
|
||||
else if ((local_02 > 1) && (local_02 >= 7)) {
|
||||
local_14 = (local_14 + 32);
|
||||
}
|
||||
else if ((local_02 > 5) && (local_02 >= 11)) {
|
||||
local_16 = (local_16 + 32);
|
||||
}
|
||||
else if ((local_02 > 9) && (local_02 >= 15)) {
|
||||
local_14 = (local_14 - 32);
|
||||
}
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function bouncbox_equip() /* entry=293 class_id=0x04EF slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
46
USECODE/REGRET/BOX_EW.unk
Normal file
46
USECODE/REGRET/BOX_EW.unk
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
/* synthesized appendix for BOX_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function box_ew_use() /* entry=25 class_id=0x0080 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (!Item.getFrame(arg_06)) {
|
||||
while (!Intrinsic0035(0x00A7, arg_06)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
local_02 = 0;
|
||||
while (local_02 > 5) {
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
}
|
||||
else {
|
||||
while (!Intrinsic0035(0x00A5, arg_06)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
local_02 = 0;
|
||||
while (local_02 > 5) {
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
}
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
46
USECODE/REGRET/BOX_NS.unk
Normal file
46
USECODE/REGRET/BOX_NS.unk
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
/* synthesized appendix for BOX_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function box_ns_use() /* entry=26 class_id=0x0081 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (!Item.getFrame(arg_06)) {
|
||||
while (!Intrinsic0035(0x00A7, arg_06)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
local_02 = 0;
|
||||
while (local_02 > 5) {
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
}
|
||||
else {
|
||||
while (!Intrinsic0035(0x00A5, arg_06)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
local_02 = 0;
|
||||
while (local_02 > 5) {
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
}
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
723
USECODE/REGRET/BRIDGE.unk
Normal file
723
USECODE/REGRET/BRIDGE.unk
Normal file
|
|
@ -0,0 +1,723 @@
|
|||
|
||||
/* synthesized appendix for BRIDGE */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function bridge_slot_20() /* entry=474 class_id=0x0A1C slot=0x20 */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
if (arg_0A == 1) {
|
||||
local_02 = Item.getQLo(arg_06);
|
||||
spawn BRIDGE.slot_22(pid, local_02, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result == 1) {
|
||||
spawn BRIDGE.slot_24(pid, local_02, arg_06);
|
||||
suspend;
|
||||
spawn BRIDGE.slot_26(0, local_02, arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
local_02 = Item.getQLo(arg_06);
|
||||
spawn BRIDGE.slot_23(pid, local_02, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result == 1) {
|
||||
spawn BRIDGE.slot_25(pid, local_02, arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x21 slot_21 ===== */
|
||||
function bridge_slot_21() /* entry=474 class_id=0x0A1C slot=0x21 */
|
||||
{
|
||||
local_02 = Item.getShape(arg_06);
|
||||
if ((local_02 == 0x0413) || (local_02 != 0x0290)) {
|
||||
if (arg_08 == 0x03A6) {
|
||||
arg_08 = 0x0413;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
arg_08 = 0x0290;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x22 slot_22 ===== */
|
||||
function bridge_slot_22() /* entry=474 class_id=0x0A1C slot=0x22 */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getFrame(local_02) == 0) {
|
||||
local_04 = Item.getQLo(local_02);
|
||||
if (local_04 == arg_0A) {
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x23 slot_23 ===== */
|
||||
function bridge_slot_23() /* entry=474 class_id=0x0A1C slot=0x23 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
local_06 = 0;
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_027A:
|
||||
if condition goto block_02AE;
|
||||
|
||||
block_027D:
|
||||
local_04 = Item.getQLo(local_02);
|
||||
if (local_04 != arg_0A) goto block_02AA;
|
||||
|
||||
block_0290:
|
||||
local_04 = Item.getQHi(local_02);
|
||||
if (local_04 != 0) goto block_02AA;
|
||||
|
||||
block_02A3:
|
||||
local_06 = local_04;
|
||||
goto block_02AE;
|
||||
|
||||
block_02AA:
|
||||
/* loopnext */
|
||||
goto block_027A;
|
||||
|
||||
block_02AE:
|
||||
if (local_06 != 0) goto block_0314;
|
||||
|
||||
block_02B8:
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_02CF:
|
||||
if condition goto block_0312;
|
||||
|
||||
block_02D2:
|
||||
if (Item.getFrame(local_02) != 1) goto block_030E;
|
||||
|
||||
block_02E1:
|
||||
local_04 = Item.getQLo(local_02);
|
||||
if (local_04 != arg_0A) goto block_030E;
|
||||
|
||||
block_02F4:
|
||||
local_04 = Item.getQHi(local_02);
|
||||
if (local_04 != 0) goto block_030E;
|
||||
|
||||
block_0307:
|
||||
local_06 = local_04;
|
||||
goto block_0312;
|
||||
|
||||
block_030E:
|
||||
/* loopnext */
|
||||
goto block_02CF;
|
||||
|
||||
block_0312:
|
||||
|
||||
block_0314:
|
||||
if (local_06 != 0) goto block_03B5;
|
||||
|
||||
block_031C:
|
||||
for local_02 in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) {
|
||||
local_04 = Item.getQLo(local_02);
|
||||
if (local_04 == local_06) {
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
return;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_035F:
|
||||
for local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) {
|
||||
if (Item.getFrame(arg_06) == 1) {
|
||||
local_04 = Item.getQLo(local_02);
|
||||
if (local_04 == local_06) {
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_03B3:
|
||||
|
||||
block_03B5:
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
goto block_03BC;
|
||||
|
||||
block_03BC:
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x24 slot_24 ===== */
|
||||
function bridge_slot_24() /* entry=474 class_id=0x0A1C slot=0x24 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
local_06 = 0;
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_03E3:
|
||||
if condition goto block_040B;
|
||||
|
||||
block_03E6:
|
||||
local_08 = Item.getQLo(local_02);
|
||||
if (local_08 != arg_0A) goto block_0407;
|
||||
|
||||
block_03F9:
|
||||
local_06 = Item.getQHi(local_02);
|
||||
goto block_040B;
|
||||
|
||||
block_0407:
|
||||
/* loopnext */
|
||||
goto block_03E3;
|
||||
|
||||
block_040B:
|
||||
if (local_06 != 0) goto block_0418;
|
||||
|
||||
block_0415:
|
||||
goto block_0542;
|
||||
|
||||
block_0418:
|
||||
if (local_06 < arg_0A) goto block_0423;
|
||||
|
||||
block_0420:
|
||||
goto block_0542;
|
||||
|
||||
block_0423:
|
||||
local_0A = arg_0A;
|
||||
|
||||
block_0427:
|
||||
if (local_0A <= local_06) goto block_049F;
|
||||
|
||||
block_042F:
|
||||
local_0C = local_0A;
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_044A:
|
||||
if condition goto block_047B;
|
||||
|
||||
block_044D:
|
||||
local_08 = Item.getQLo(local_02);
|
||||
if (local_08 != local_0A) goto block_0477;
|
||||
|
||||
block_0460:
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xFC target=[BP-04h] */
|
||||
local_04 = local_02;
|
||||
local_0A = (1 + local_0A);
|
||||
goto block_047B;
|
||||
|
||||
block_0477:
|
||||
/* loopnext */
|
||||
goto block_044A;
|
||||
|
||||
block_047B:
|
||||
if (local_0C != local_0A) goto block_049C;
|
||||
|
||||
block_0485:
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_049C:
|
||||
goto block_0427;
|
||||
|
||||
block_049F:
|
||||
|
||||
block_04A5:
|
||||
while (true) {
|
||||
foreach_list local_02 -> block_04FC;
|
||||
if (Intrinsic00AD(local_02) == 1) {
|
||||
BRIDGE.slot_21(0x03A6, local_02);
|
||||
spawn FREE.slot_3B(pid, 15, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
||||
block_04FC:
|
||||
|
||||
block_0502:
|
||||
while (true) {
|
||||
foreach_list local_02 -> block_0542;
|
||||
if (Intrinsic00AD(local_02) == 1) {
|
||||
BRIDGE.slot_21(0x03A6, local_02);
|
||||
}
|
||||
}
|
||||
|
||||
block_0542:
|
||||
/* free_local_list bp_offset=0xFC target=[BP-04h] */
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x25 slot_25 ===== */
|
||||
function bridge_slot_25() /* entry=474 class_id=0x0A1C slot=0x25 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
local_06 = 0;
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_056B:
|
||||
if condition goto block_0593;
|
||||
|
||||
block_056E:
|
||||
local_08 = Item.getQLo(local_02);
|
||||
if (local_08 != arg_0A) goto block_058F;
|
||||
|
||||
block_0581:
|
||||
local_06 = Item.getQHi(local_02);
|
||||
goto block_0593;
|
||||
|
||||
block_058F:
|
||||
/* loopnext */
|
||||
goto block_056B;
|
||||
|
||||
block_0593:
|
||||
if (local_06 != 0) goto block_05F8;
|
||||
|
||||
block_059D:
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_05B4:
|
||||
if condition goto block_05EB;
|
||||
|
||||
block_05B7:
|
||||
if (Item.getFrame(arg_06) != 1) goto block_05E7;
|
||||
|
||||
block_05C6:
|
||||
local_08 = Item.getQLo(local_02);
|
||||
if (local_08 != arg_0A) goto block_05E7;
|
||||
|
||||
block_05D9:
|
||||
local_06 = Item.getQHi(local_02);
|
||||
goto block_05EB;
|
||||
|
||||
block_05E7:
|
||||
/* loopnext */
|
||||
goto block_05B4;
|
||||
|
||||
block_05EB:
|
||||
if (local_06 != 0) goto block_05F8;
|
||||
|
||||
block_05F5:
|
||||
goto block_087A;
|
||||
|
||||
block_05F8:
|
||||
if (local_06 < arg_0A) goto block_0603;
|
||||
|
||||
block_0600:
|
||||
goto block_087A;
|
||||
|
||||
block_0603:
|
||||
local_0A = local_06;
|
||||
arg_0A = (arg_0A - 1);
|
||||
|
||||
block_060E:
|
||||
if (local_0A != arg_0A) goto block_06E7;
|
||||
|
||||
block_0616:
|
||||
local_0C = local_0A;
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_0631:
|
||||
if condition goto block_0662;
|
||||
|
||||
block_0634:
|
||||
local_08 = Item.getQLo(local_02);
|
||||
if (local_08 != local_0A) goto block_065E;
|
||||
|
||||
block_0647:
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xFC target=[BP-04h] */
|
||||
local_04 = local_02;
|
||||
local_0A = (local_0A - 1);
|
||||
goto block_0662;
|
||||
|
||||
block_065E:
|
||||
/* loopnext */
|
||||
goto block_0631;
|
||||
|
||||
block_0662:
|
||||
if (local_0C != local_0A) goto block_06E4;
|
||||
|
||||
block_066C:
|
||||
/* loop_selector local_02 in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_0683:
|
||||
if condition goto block_06C3;
|
||||
|
||||
block_0686:
|
||||
if (Item.getFrame(arg_06) != 1) goto block_06BF;
|
||||
|
||||
block_0695:
|
||||
local_08 = Item.getQLo(local_02);
|
||||
if (local_08 != local_0A) goto block_06BF;
|
||||
|
||||
block_06A8:
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xFC target=[BP-04h] */
|
||||
local_04 = local_02;
|
||||
local_0A = (local_0A - 1);
|
||||
goto block_06C3;
|
||||
|
||||
block_06BF:
|
||||
/* loopnext */
|
||||
goto block_0683;
|
||||
|
||||
block_06C3:
|
||||
if (local_0C != local_0A) goto block_06E4;
|
||||
|
||||
block_06CD:
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_06E4:
|
||||
goto block_060E;
|
||||
|
||||
block_06E7:
|
||||
|
||||
block_06ED:
|
||||
while (true) {
|
||||
foreach_list local_02 -> block_07BC;
|
||||
if (Intrinsic00AD(local_02) == 1) {
|
||||
BRIDGE.slot_21(0x0336, local_02);
|
||||
spawn FREE.slot_3B(pid, 15, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xF2 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
if ((Item.getFamily(local_0E) == 6) && (Item.isNpc(local_0E) != 0)) {
|
||||
for local_10 in nearby_items(shape=0x04B8, origin=local_0E) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn ITEM.slot_2A(pid, 1, 0, local_0E);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
||||
block_07BC:
|
||||
|
||||
block_07C2:
|
||||
while (true) {
|
||||
foreach_list local_02 -> block_087A;
|
||||
if (Intrinsic00AD(local_02) == 1) {
|
||||
BRIDGE.slot_21(0x0336, local_02);
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xF2 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
if ((Item.getFamily(local_0E) == 6) && (Item.isNpc(local_0E) != 0)) {
|
||||
for local_10 in nearby_items(shape=0x04B8, origin=local_0E) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn ITEM.slot_2A(pid, 1, 0, local_0E);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
||||
block_087A:
|
||||
/* free_local_list bp_offset=0xFC target=[BP-04h] */
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x26 slot_26 ===== */
|
||||
function bridge_slot_26() /* entry=474 class_id=0x0A1C slot=0x26 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
local_12 = 0;
|
||||
local_14 = 1;
|
||||
local_08 = arg_0C;
|
||||
if (local_08 != 0) goto block_08E8;
|
||||
|
||||
block_089C:
|
||||
/* loop_selector local_04 in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_08B3:
|
||||
if condition goto block_08DB;
|
||||
|
||||
block_08B6:
|
||||
local_0A = Item.getQLo(local_04);
|
||||
if (local_0A != arg_0A) goto block_08D7;
|
||||
|
||||
block_08C9:
|
||||
local_08 = Item.getQHi(local_04);
|
||||
goto block_08DB;
|
||||
|
||||
block_08D7:
|
||||
/* loopnext */
|
||||
goto block_08B3;
|
||||
|
||||
block_08DB:
|
||||
if (local_08 != 0) goto block_08E8;
|
||||
|
||||
block_08E5:
|
||||
goto block_0CEF;
|
||||
|
||||
block_08E8:
|
||||
if (local_08 < arg_0A) goto block_08F3;
|
||||
|
||||
block_08F0:
|
||||
goto block_0CEF;
|
||||
|
||||
block_08F3:
|
||||
local_0C = arg_0A;
|
||||
local_16 = 100;
|
||||
|
||||
block_08FB:
|
||||
if (local_0C <= local_08) goto block_09F5;
|
||||
|
||||
block_0903:
|
||||
local_0E = local_0C;
|
||||
/* loop_selector local_04 in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
|
||||
|
||||
block_091E:
|
||||
if condition goto block_09A8;
|
||||
|
||||
block_0921:
|
||||
local_0A = Item.getQLo(local_04);
|
||||
if (local_0A != local_0C) goto block_09A4;
|
||||
|
||||
block_0934:
|
||||
if (local_0A != (arg_0A + 1)) goto block_098D;
|
||||
|
||||
block_093F:
|
||||
local_10 = Item.getQHi(local_04);
|
||||
if (local_10 < 0) goto block_095A;
|
||||
|
||||
block_0952:
|
||||
local_10 = (local_10 + 0x0100);
|
||||
|
||||
block_095A:
|
||||
local_10 = (local_10 & 127);
|
||||
local_12 = (local_10 & 7);
|
||||
local_14 = (local_10 / 8);
|
||||
if (local_14 != 0) goto block_097B;
|
||||
|
||||
block_0977:
|
||||
local_14 = 1;
|
||||
|
||||
block_097B:
|
||||
local_14 = (local_14 * 5);
|
||||
if (local_12 != 0) goto block_098D;
|
||||
|
||||
block_098A:
|
||||
goto block_0CEF;
|
||||
|
||||
block_098D:
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xFA target=[BP-06h] */
|
||||
local_06 = local_04;
|
||||
local_0C = (1 + local_0C);
|
||||
goto block_09A8;
|
||||
|
||||
block_09A4:
|
||||
/* loopnext */
|
||||
goto block_091E;
|
||||
|
||||
block_09A8:
|
||||
if (local_0E != local_0C) goto block_09F2;
|
||||
|
||||
block_09B2:
|
||||
if (local_16 != 0) goto block_09D4;
|
||||
|
||||
block_09BA:
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
goto block_09F2;
|
||||
|
||||
block_09D4:
|
||||
local_16 = (local_16 - 1);
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_09F2:
|
||||
goto block_08FB;
|
||||
|
||||
block_09F5:
|
||||
if (local_12 != 3) goto block_0B84;
|
||||
|
||||
block_09FD:
|
||||
if 1 goto block_0B84;
|
||||
|
||||
block_0A02:
|
||||
local_0A = 0;
|
||||
|
||||
block_0A0C:
|
||||
while (true) {
|
||||
foreach_list local_04 -> block_0A2A;
|
||||
if (Intrinsic00AD(local_04) == 0) {
|
||||
local_0A = (1 + local_0A);
|
||||
}
|
||||
}
|
||||
|
||||
block_0A2A:
|
||||
if (local_0A != 0) goto block_0B6A;
|
||||
|
||||
block_0A32:
|
||||
|
||||
block_0A38:
|
||||
while (true) {
|
||||
foreach_list local_04 -> block_0A77;
|
||||
if (local_0A == 0) {
|
||||
local_0C = Item.getFrame(local_04);
|
||||
local_1D = local_04;
|
||||
local_0A = 1;
|
||||
}
|
||||
else {
|
||||
local_0E = Item.getFrame(local_04);
|
||||
local_0C = local_0E;
|
||||
}
|
||||
}
|
||||
|
||||
block_0A77:
|
||||
|
||||
block_0A87:
|
||||
while (true) {
|
||||
foreach_list local_04 -> block_0B6A;
|
||||
local_0A = Item.getFrame(local_04);
|
||||
if (local_0A == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
local_02 = local_1D;
|
||||
FREE.slot_20(pid, 8);
|
||||
spawn NPC.slot_2F(retval, local_04, local_02);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (local_0A == 2) {
|
||||
BRIDGE.slot_21(0x0336, local_04);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn FREE.slot_3B(pid, local_14, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getFrame(local_04) == 1) {
|
||||
BRIDGE.slot_21(0x03A6, local_04);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
block_0B6A:
|
||||
spawn FREE.slot_3B(pid, local_14, 0x00000000);
|
||||
suspend;
|
||||
goto block_09FD;
|
||||
|
||||
block_0B84:
|
||||
|
||||
block_0B8A:
|
||||
while (true) {
|
||||
foreach_list local_04 -> block_0BAB;
|
||||
}
|
||||
|
||||
block_0BAB:
|
||||
if 1 goto block_0CEF;
|
||||
|
||||
block_0BB0:
|
||||
|
||||
block_0BB6:
|
||||
foreach_list local_04 -> block_0CEC;
|
||||
|
||||
block_0BBB:
|
||||
if (Intrinsic00AD(local_04) != 0) goto block_0BCD;
|
||||
|
||||
block_0BCA:
|
||||
goto block_0CEF;
|
||||
|
||||
block_0BCD:
|
||||
local_0A = Item.getShape(local_04);
|
||||
if ((local_0A != 0x0336) || (local_0A != 0x0290)) goto block_0BEB;
|
||||
|
||||
block_0BE8:
|
||||
goto block_0CEF;
|
||||
|
||||
block_0BEB:
|
||||
if (local_12 != 1) goto block_0C57;
|
||||
|
||||
block_0BF3:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
|
||||
|
||||
block_0C08:
|
||||
while (!condition) {
|
||||
local_02 = local_1D;
|
||||
FREE.slot_20(pid, 8);
|
||||
spawn NPC.slot_2F(retval, local_04, local_02);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_0C31:
|
||||
spawn FREE.slot_3B(pid, local_14, 0x00000000);
|
||||
suspend;
|
||||
goto block_0CE9;
|
||||
|
||||
block_0C57:
|
||||
if (local_12 != 2) goto block_0CE6;
|
||||
|
||||
block_0C5F:
|
||||
BRIDGE.slot_21(0x0336, local_04);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
|
||||
|
||||
block_0C8B:
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_0C9A:
|
||||
spawn FREE.slot_3B(pid, local_14, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getFrame(local_04) != 1) goto block_0CE3;
|
||||
|
||||
block_0CC2:
|
||||
BRIDGE.slot_21(0x03A6, local_04);
|
||||
|
||||
block_0CE3:
|
||||
goto block_0CE9;
|
||||
|
||||
block_0CE6:
|
||||
goto block_0CEF;
|
||||
|
||||
block_0CE9:
|
||||
goto block_0BB6;
|
||||
|
||||
block_0CEC:
|
||||
goto block_0BAB;
|
||||
|
||||
block_0CEF:
|
||||
/* free_local_list bp_offset=0xFA target=[BP-06h] */
|
||||
return;
|
||||
|
||||
}
|
||||
22
USECODE/REGRET/BROKENCW.unk
Normal file
22
USECODE/REGRET/BROKENCW.unk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
/* synthesized appendix for BROKENCW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function brokencw_gotHit() /* entry=48 class_id=0x00D1 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (Item.getShape(local_02) == 0x00D1) {
|
||||
}
|
||||
else if ((Item.getFamily(local_02) == 6) && (Item.isNpc(local_02) != 0)) {
|
||||
spawn ITEM.slot_2A(pid, 1, 0, local_02);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
135
USECODE/REGRET/CAMERACO.unk
Normal file
135
USECODE/REGRET/CAMERACO.unk
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
|
||||
/* synthesized appendix for CAMERACO */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cameraco_gotHit() /* entry=96 class_id=0x01B6 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.isEntirelyOnScreen(arg_06)) {
|
||||
return;
|
||||
}
|
||||
else if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_34(arg_0C, arg_0A);
|
||||
if (retval && (Item.getFrame(arg_06) == 5)) {
|
||||
FREE.slot_3C(0x021B, *(arg_06));
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function cameraco_enterFastArea() /* entry=96 class_id=0x01B6 slot=0x0F */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = ((5 - World.gameDifficulty()) * 15);
|
||||
local_04 = (5 - (World.gameDifficulty() * 15));
|
||||
if (Item.getFrame(arg_06) != 5) goto block_010B;
|
||||
|
||||
block_0108:
|
||||
goto block_0372;
|
||||
|
||||
block_010B:
|
||||
while (Item.isEntirelyOnScreen(arg_06)) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_0132:
|
||||
local_0C = 0;
|
||||
local_0E = 1;
|
||||
|
||||
block_013A:
|
||||
while (true) {
|
||||
suspend;
|
||||
local_12 = 0;
|
||||
while (Item.isEntirelyOnScreen(arg_06)) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
if (World.getControlledNPCNum() == 0) {
|
||||
local_10 = World.getControlledNPCNum();
|
||||
}
|
||||
else {
|
||||
local_10 = 1;
|
||||
}
|
||||
local_14 = Item.getClosestDirectionInRange(15, 0, 16, Item.getY(local_10), Item.getX(local_10), Item.getY(arg_06), Item.getX(arg_06));
|
||||
local_08 = Item.getFrame(arg_06);
|
||||
if (((local_14 / 2) - 1) == local_08) {
|
||||
local_12 = Intrinsic0036(local_10, arg_06);
|
||||
if (!local_12) {
|
||||
local_0C = 1;
|
||||
local_06 = (1 + local_06);
|
||||
if ((local_06 <= local_04) && (!(Item.getStatus(arg_06) & 4))) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
ITEM.slot_24(4, arg_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_0C = 0;
|
||||
if ((local_08 + local_0E) >= 0) {
|
||||
local_0E = 1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if ((local_08 + local_0E) <= 4) {
|
||||
local_0E = -1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!(local_06 && local_0C)) {
|
||||
if (((local_14 / 2) - 1) <= local_08) {
|
||||
local_0E = 1;
|
||||
}
|
||||
else {
|
||||
local_0E = -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_06 = 0;
|
||||
local_0C = 0;
|
||||
/* bit_not */
|
||||
}
|
||||
if ((local_08 + local_0E) >= 0) {
|
||||
local_0E = 1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if ((local_08 + local_0E) <= 4) {
|
||||
local_0E = -1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
||||
block_0372:
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function cameraco_leaveFastArea() /* entry=96 class_id=0x01B6 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_3C(0x021B, *(arg_06));
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
135
USECODE/REGRET/CAMERAEW.unk
Normal file
135
USECODE/REGRET/CAMERAEW.unk
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
|
||||
/* synthesized appendix for CAMERAEW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cameraew_gotHit() /* entry=117 class_id=0x01D7 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.isEntirelyOnScreen(arg_06)) {
|
||||
return;
|
||||
}
|
||||
else if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_34(arg_0C, arg_0A);
|
||||
if (retval && (Item.getFrame(arg_06) == 9)) {
|
||||
FREE.slot_3C(0x021B, *(arg_06));
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function cameraew_enterFastArea() /* entry=117 class_id=0x01D7 slot=0x0F */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = ((5 - World.gameDifficulty()) * 5);
|
||||
local_04 = (5 - (World.gameDifficulty() * 5));
|
||||
if (Item.getFrame(arg_06) != 9) goto block_010B;
|
||||
|
||||
block_0108:
|
||||
goto block_036C;
|
||||
|
||||
block_010B:
|
||||
while (Item.isEntirelyOnScreen(arg_06)) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_0132:
|
||||
local_0C = 0;
|
||||
local_0E = 1;
|
||||
|
||||
block_013A:
|
||||
while (true) {
|
||||
suspend;
|
||||
local_12 = 0;
|
||||
while (Item.isEntirelyOnScreen(arg_06)) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
if (World.getControlledNPCNum() == 0) {
|
||||
local_10 = World.getControlledNPCNum();
|
||||
}
|
||||
else {
|
||||
local_10 = 1;
|
||||
}
|
||||
local_14 = Item.getClosestDirectionInRange(15, 0, 16, Item.getY(local_10), Item.getX(local_10), Item.getY(arg_06), Item.getX(arg_06));
|
||||
local_08 = Item.getFrame(arg_06);
|
||||
if ((8 - local_14) == local_08) {
|
||||
local_12 = Intrinsic0036(local_10, arg_06);
|
||||
if (!local_12) {
|
||||
local_0C = 1;
|
||||
local_06 = (1 + local_06);
|
||||
if ((local_06 <= local_04) && (!(Item.getStatus(arg_06) & 4))) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
ITEM.slot_24(4, arg_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_0C = 0;
|
||||
if ((local_08 + local_0E) >= 0) {
|
||||
local_0E = 1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if ((local_08 + local_0E) <= 8) {
|
||||
local_0E = -1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!(local_06 && local_0C)) {
|
||||
if ((8 - local_14) <= local_08) {
|
||||
local_0E = 1;
|
||||
}
|
||||
else {
|
||||
local_0E = -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_06 = 0;
|
||||
local_0C = 0;
|
||||
/* bit_not */
|
||||
}
|
||||
if ((local_08 + local_0E) >= 0) {
|
||||
local_0E = 1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if ((local_08 + local_0E) <= 8) {
|
||||
local_0E = -1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
||||
block_036C:
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function cameraew_leaveFastArea() /* entry=117 class_id=0x01D7 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_3C(0x021B, *(arg_06));
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
135
USECODE/REGRET/CAMERANS.unk
Normal file
135
USECODE/REGRET/CAMERANS.unk
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
|
||||
/* synthesized appendix for CAMERANS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function camerans_gotHit() /* entry=98 class_id=0x01B8 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.isEntirelyOnScreen(arg_06)) {
|
||||
return;
|
||||
}
|
||||
else if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_34(arg_0C, arg_0A);
|
||||
if (retval && (Item.getFrame(arg_06) == 9)) {
|
||||
FREE.slot_3C(0x021B, *(arg_06));
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function camerans_enterFastArea() /* entry=98 class_id=0x01B8 slot=0x0F */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = ((5 - World.gameDifficulty()) * 5);
|
||||
local_04 = (5 - (World.gameDifficulty() * 5));
|
||||
if (Item.getFrame(arg_06) != 9) goto block_010B;
|
||||
|
||||
block_0108:
|
||||
goto block_036C;
|
||||
|
||||
block_010B:
|
||||
while (Item.isEntirelyOnScreen(arg_06)) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_0132:
|
||||
local_0C = 0;
|
||||
local_0E = 1;
|
||||
|
||||
block_013A:
|
||||
while (true) {
|
||||
suspend;
|
||||
local_12 = 0;
|
||||
while (Item.isEntirelyOnScreen(arg_06)) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
if (World.getControlledNPCNum() == 0) {
|
||||
local_10 = World.getControlledNPCNum();
|
||||
}
|
||||
else {
|
||||
local_10 = 1;
|
||||
}
|
||||
local_14 = Item.getClosestDirectionInRange(13, 3, 16, Item.getY(local_10), Item.getX(local_10), Item.getY(arg_06), Item.getX(arg_06));
|
||||
local_08 = Item.getFrame(arg_06);
|
||||
if ((12 - local_14) == local_08) {
|
||||
local_12 = Intrinsic0036(local_10, arg_06);
|
||||
if (!local_12) {
|
||||
local_0C = 1;
|
||||
local_06 = (1 + local_06);
|
||||
if ((local_06 <= local_04) && (!(Item.getStatus(arg_06) & 4))) {
|
||||
spawn FREE.slot_3B(pid, local_02, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
ITEM.slot_24(4, arg_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_0C = 0;
|
||||
if ((local_08 + local_0E) >= 0) {
|
||||
local_0E = 1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if ((local_08 + local_0E) <= 8) {
|
||||
local_0E = -1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!(local_06 && local_0C)) {
|
||||
if ((12 - local_14) <= local_08) {
|
||||
local_0E = 1;
|
||||
}
|
||||
else {
|
||||
local_0E = -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_06 = 0;
|
||||
local_0C = 0;
|
||||
/* bit_not */
|
||||
}
|
||||
if ((local_08 + local_0E) >= 0) {
|
||||
local_0E = 1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if ((local_08 + local_0E) <= 8) {
|
||||
local_0E = -1;
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
||||
block_036C:
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function camerans_leaveFastArea() /* entry=98 class_id=0x01B8 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_3C(0x021B, *(arg_06));
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
14
USECODE/REGRET/CAMETRON.unk
Normal file
14
USECODE/REGRET/CAMETRON.unk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
/* synthesized appendix for CAMETRON */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function cametron_calledFromAnim() /* entry=175 class_id=0x0319 slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = *(arg_06);
|
||||
set_info(1, 0);
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), local_02);
|
||||
return;
|
||||
}
|
||||
68
USECODE/REGRET/CAM_EW.unk
Normal file
68
USECODE/REGRET/CAM_EW.unk
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
/* synthesized appendix for CAM_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cam_ew_gotHit() /* entry=99 class_id=0x01B9 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn WALLGUN2.slot_21(arg_0C, arg_0A, arg_06);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function cam_ew_equip() /* entry=99 class_id=0x01B9 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (World.getControlledNPCNum() == 0) {
|
||||
spawn WALLGUN.slot_24(pid, arg_0A, World.getControlledNPCNum(), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_24(pid, arg_0A, global[0x001E], arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0B unequip ===== */
|
||||
function cam_ew_unequip() /* entry=99 class_id=0x01B9 slot=0x0B */
|
||||
{
|
||||
set_info(0x0212, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_27(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function cam_ew_enterFastArea() /* entry=99 class_id=0x01B9 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_27(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function cam_ew_leaveFastArea() /* entry=99 class_id=0x01B9 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
/* bit_not */
|
||||
FREE.slot_3C(1, *(arg_06));
|
||||
FREE.slot_3C(0x020A, *(arg_06));
|
||||
return;
|
||||
}
|
||||
68
USECODE/REGRET/CAM_NS.unk
Normal file
68
USECODE/REGRET/CAM_NS.unk
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
/* synthesized appendix for CAM_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cam_ns_gotHit() /* entry=100 class_id=0x01BA slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn WALLGUN2.slot_21(arg_0C, arg_0A, arg_06);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function cam_ns_equip() /* entry=100 class_id=0x01BA slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (World.getControlledNPCNum() == 0) {
|
||||
spawn WALLGUN.slot_24(pid, arg_0A, World.getControlledNPCNum(), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_24(pid, arg_0A, global[0x001E], arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0B unequip ===== */
|
||||
function cam_ns_unequip() /* entry=100 class_id=0x01BA slot=0x0B */
|
||||
{
|
||||
set_info(0x0212, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_27(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function cam_ns_enterFastArea() /* entry=100 class_id=0x01BA slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn WALLGUN.slot_27(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function cam_ns_leaveFastArea() /* entry=100 class_id=0x01BA slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
/* bit_not */
|
||||
FREE.slot_3C(1, *(arg_06));
|
||||
FREE.slot_3C(0x020A, *(arg_06));
|
||||
return;
|
||||
}
|
||||
28
USECODE/REGRET/CARD_EW.unk
Normal file
28
USECODE/REGRET/CARD_EW.unk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
/* synthesized appendix for CARD_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function card_ew_use() /* entry=177 class_id=0x031E slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
spawn SWITCH.slot_22(arg_06);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x11 cast ===== */
|
||||
function card_ew_cast() /* entry=177 class_id=0x031E slot=0x11 */
|
||||
{
|
||||
set_info(0x021D, *(arg_06));
|
||||
process_exclude();
|
||||
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_21(pid, 0x0183, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
28
USECODE/REGRET/CARD_NS.unk
Normal file
28
USECODE/REGRET/CARD_NS.unk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
/* synthesized appendix for CARD_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function card_ns_use() /* entry=176 class_id=0x031D slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
spawn SWITCH.slot_22(arg_06);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x11 cast ===== */
|
||||
function card_ns_cast() /* entry=176 class_id=0x031D slot=0x11 */
|
||||
{
|
||||
set_info(0x021D, *(arg_06));
|
||||
process_exclude();
|
||||
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_21(pid, 0x0183, 0x00000000);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
19
USECODE/REGRET/CATWALK1.unk
Normal file
19
USECODE/REGRET/CATWALK1.unk
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
/* synthesized appendix for CATWALK1 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function catwalk1_gotHit() /* entry=38 class_id=0x0096 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval == 4) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
20
USECODE/REGRET/CATWALK2.unk
Normal file
20
USECODE/REGRET/CATWALK2.unk
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
/* synthesized appendix for CATWALK2 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function catwalk2_gotHit() /* entry=61 class_id=0x0132 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval == 4) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
22
USECODE/REGRET/CHANGER.unk
Normal file
22
USECODE/REGRET/CHANGER.unk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
/* synthesized appendix for CHANGER */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x07 hatch ===== */
|
||||
function changer_hatch() /* entry=427 class_id=0x0908 slot=0x07 */
|
||||
{
|
||||
set_info(0x0210, *(arg_06));
|
||||
process_exclude();
|
||||
local_04 = Item.getQLo(arg_06);
|
||||
local_08 = Egg.getEggId(arg_06);
|
||||
if (!local_08) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x4C */
|
||||
/* loop current_var=0xFE string_bytes=0x1A loop_type=0x2 */
|
||||
while (!condition) {
|
||||
local_06 = Item.getQLo(local_02);
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/CHEDITRO.unk
Normal file
13
USECODE/REGRET/CHEDITRO.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for CHEDITRO */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function cheditro_calledFromAnim() /* entry=201 class_id=0x0385 slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = *(arg_06);
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), local_02);
|
||||
return;
|
||||
}
|
||||
12
USECODE/REGRET/CHEMSUIT.unk
Normal file
12
USECODE/REGRET/CHEMSUIT.unk
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
/* synthesized appendix for CHEMSUIT */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function chemsuit_calledFromAnim() /* entry=167 class_id=0x02F6 slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), arg_06);
|
||||
return;
|
||||
}
|
||||
99
USECODE/REGRET/CHEST_EW.unk
Normal file
99
USECODE/REGRET/CHEST_EW.unk
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
|
||||
/* synthesized appendix for CHEST_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function chest_ew_use() /* entry=321 class_id=0x0550 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) <= 1) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 1) {
|
||||
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 6, 0x054B, *(arg_06));
|
||||
if (!retval) {
|
||||
local_06 = 6;
|
||||
while (local_06 > 10) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 1, 0x054B, *(arg_06));
|
||||
if (!retval) {
|
||||
local_06 = 1;
|
||||
while (local_06 > 5) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
/* loop_selector local_02 in nearby_items(shape=0x0476, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(local_02)) {
|
||||
FREE.slot_37(local_02);
|
||||
local_04 = retval;
|
||||
if ((((Item.getFamily(local_04) == 10) || (Item.getFamily(local_04) != 11)) || (Item.getFamily(local_04) != 12)) || (Item.getFamily(local_04) != 13)) {
|
||||
if (MainActor.addItemCru(1, local_04)) {
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3A(pid, local_04, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function chest_ew_gotHit() /* entry=321 class_id=0x0550 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (local_02 >= 2) {
|
||||
spawn ITEM.slot_29(pid, 0x008C, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
101
USECODE/REGRET/CHEST_NS.unk
Normal file
101
USECODE/REGRET/CHEST_NS.unk
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
|
||||
/* synthesized appendix for CHEST_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function chest_ns_use() /* entry=320 class_id=0x054F slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) <= 1) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 1) {
|
||||
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 6, 0x054A, *(arg_06));
|
||||
if (!retval) {
|
||||
local_06 = 6;
|
||||
while (local_06 > 10) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 1, 0x054A, *(arg_06));
|
||||
if (!retval) {
|
||||
local_06 = 1;
|
||||
while (local_06 > 5) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
local_08 = (Item.getX(arg_06) + 56);
|
||||
local_0A = (Item.getY(arg_06) + 64);
|
||||
/* loop_selector local_02 in nearby_items(shape=0x0476, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(local_02)) {
|
||||
FREE.slot_37(local_02);
|
||||
local_04 = retval;
|
||||
if ((((Item.getFamily(local_04) == 10) || (Item.getFamily(local_04) != 11)) || (Item.getFamily(local_04) != 12)) || (Item.getFamily(local_04) != 13)) {
|
||||
if (MainActor.addItemCru(1, local_04)) {
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3A(pid, local_04, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function chest_ns_gotHit() /* entry=320 class_id=0x054F slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (local_02 >= 2) {
|
||||
spawn ITEM.slot_29(pid, 0x008C, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
41
USECODE/REGRET/CHEST_OE.unk
Normal file
41
USECODE/REGRET/CHEST_OE.unk
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
|
||||
/* synthesized appendix for CHEST_OE */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function chest_oe_use() /* entry=317 class_id=0x054B slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) <= 9) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_49(pid, *(arg_06), 0x00000000);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (!process_result) {
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function chest_oe_gotHit() /* entry=317 class_id=0x054B slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) >= 10) {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
41
USECODE/REGRET/CHEST_ON.unk
Normal file
41
USECODE/REGRET/CHEST_ON.unk
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
|
||||
/* synthesized appendix for CHEST_ON */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function chest_on_use() /* entry=316 class_id=0x054A slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getFrame(arg_06) <= 9) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_49(pid, *(arg_06), 0x00000000);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (!process_result) {
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function chest_on_gotHit() /* entry=316 class_id=0x054A slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) >= 10) {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
12
USECODE/REGRET/CONGRESS.unk
Normal file
12
USECODE/REGRET/CONGRESS.unk
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
/* synthesized appendix for CONGRESS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function congress_calledFromAnim() /* entry=159 class_id=0x02DF slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), arg_06);
|
||||
return;
|
||||
}
|
||||
68
USECODE/REGRET/CONTAIN.unk
Normal file
68
USECODE/REGRET/CONTAIN.unk
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
/* synthesized appendix for CONTAIN */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function contain_slot_20() /* entry=449 class_id=0x0A03 slot=0x20 */
|
||||
{
|
||||
set_info(0x0001, *(arg_06));
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
ITEM.slot_26((retval < 1), 0x1000, arg_06);
|
||||
if (retval == 1) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_29(pid, 0x0096, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = *(arg_06);
|
||||
local_06 = Item.getQLo(arg_06);
|
||||
if (!(global[0x0007])) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* pop_global global_id=0x7 size=0x1 */
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x44 */
|
||||
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (local_06 == Item.getQLo(local_02)) {
|
||||
if (Item.getShape(local_02) == 52) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (Item.getShape(local_02) == 0x034B) {
|
||||
spawn ITEM.slot_2A(pid, 1, 0, local_02);
|
||||
suspend;
|
||||
}
|
||||
else if (Item.getShape(local_02) == 11) {
|
||||
ITEM.slot_24(0x1000, local_02);
|
||||
if (Item.getFrame(local_02)) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, local_02);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (Item.getShape(local_02) == 0x0127) {
|
||||
ITEM.slot_24(0x1000, local_02);
|
||||
if (Item.getFrame(local_02)) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, local_02);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
/* pop_global global_id=0x7 size=0x1 */
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/CONT_EW.unk
Normal file
13
USECODE/REGRET/CONT_EW.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for CONT_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cont_ew_gotHit() /* entry=4 class_id=0x000B slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn CONTAIN.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/CONT_FL.unk
Normal file
13
USECODE/REGRET/CONT_FL.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for CONT_FL */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x11 cast ===== */
|
||||
function cont_fl_cast() /* entry=11 class_id=0x0034 slot=0x11 */
|
||||
{
|
||||
set_info(0x021D, *(arg_06));
|
||||
process_exclude();
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/CONT_NS.unk
Normal file
13
USECODE/REGRET/CONT_NS.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for CONT_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cont_ns_gotHit() /* entry=57 class_id=0x0127 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
spawn CONTAIN.slot_20(pid, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
78
USECODE/REGRET/CONVEYOR.unk
Normal file
78
USECODE/REGRET/CONVEYOR.unk
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
|
||||
/* synthesized appendix for CONVEYOR */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x10 leaveFastArea ===== */
|
||||
function conveyor_leaveFastArea() /* entry=478 class_id=0x0A20 slot=0x10 */
|
||||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function conveyor_slot_20() /* entry=478 class_id=0x0A20 slot=0x20 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x0205, *(arg_06));
|
||||
set_info(0x0205, *(arg_06));
|
||||
local_02 = 0;
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
if (Intrinsic0035(115, arg_06) != 0) goto block_0120;
|
||||
|
||||
block_0116:
|
||||
|
||||
block_0120:
|
||||
while (true) {
|
||||
suspend;
|
||||
local_03 = 0;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_02 = (local_02 - 1);
|
||||
if (arg_0A >= 0) {
|
||||
arg_0A = (arg_0A * -1);
|
||||
}
|
||||
if (arg_0C >= 0) {
|
||||
arg_0C = (arg_0C * -1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_02 = (1 + local_02);
|
||||
if (arg_0A <= 0) {
|
||||
arg_0A = (arg_0A * -1);
|
||||
}
|
||||
if (arg_0C <= 0) {
|
||||
arg_0C = (arg_0C * -1);
|
||||
}
|
||||
}
|
||||
if (local_02 <= 2) {
|
||||
local_02 = 0;
|
||||
}
|
||||
if (local_02 >= 0) {
|
||||
local_02 = 2;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xFB string_bytes=0x1 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
local_09 = Item.getShape(local_05);
|
||||
if ((local_09 == 0x0476) && (local_09 != 0x04D0)) {
|
||||
local_06 = Item.isOn(*(arg_06), local_05);
|
||||
local_0E = (Item.getX(local_05) + arg_0A);
|
||||
local_0C = (Item.getY(local_05) + arg_0C);
|
||||
local_0A = Item.getZ(local_05);
|
||||
local_07 = Item.isOn(*(arg_06), local_05);
|
||||
local_03 = 1;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (local_03) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
block_02C0:
|
||||
return;
|
||||
|
||||
}
|
||||
54
USECODE/REGRET/CONVEY_E.unk
Normal file
54
USECODE/REGRET/CONVEY_E.unk
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
/* synthesized appendix for CONVEY_E */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function convey_e_gotHit() /* entry=63 class_id=0x0134 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_01 = 0;
|
||||
local_02 = -3;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_02 = 3;
|
||||
}
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
local_05 = Item.isOn(*(arg_06), local_04);
|
||||
local_06 = 1;
|
||||
if (Item.getQHi(arg_06) == 0x00FF) {
|
||||
local_06 = 0;
|
||||
}
|
||||
if (!(local_05 && local_06)) {
|
||||
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function convey_e_equip() /* entry=63 class_id=0x0134 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(-3, 0, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(3, 0, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
54
USECODE/REGRET/CONVEY_N.unk
Normal file
54
USECODE/REGRET/CONVEY_N.unk
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
/* synthesized appendix for CONVEY_N */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function convey_n_gotHit() /* entry=22 class_id=0x006B slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_01 = -3;
|
||||
local_02 = 0;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_01 = 3;
|
||||
}
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
local_05 = Item.isOn(*(arg_06), local_04);
|
||||
local_06 = 1;
|
||||
if (Item.getQHi(arg_06) == 0x00FF) {
|
||||
local_06 = 0;
|
||||
}
|
||||
if (!(local_05 && local_06)) {
|
||||
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function convey_n_equip() /* entry=22 class_id=0x006B slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(0, -3, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(0, 3, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
54
USECODE/REGRET/CONVFLR.unk
Normal file
54
USECODE/REGRET/CONVFLR.unk
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
/* synthesized appendix for CONVFLR */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function convflr_gotHit() /* entry=130 class_id=0x022C slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_01 = 0;
|
||||
local_02 = -3;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_02 = 3;
|
||||
}
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
local_05 = Item.isOn(*(arg_06), local_04);
|
||||
local_06 = 1;
|
||||
if (Item.getQHi(arg_06) == 0x00FF) {
|
||||
local_06 = 0;
|
||||
}
|
||||
if (!(local_05 && local_06)) {
|
||||
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function convflr_equip() /* entry=130 class_id=0x022C slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(-3, 0, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(3, 0, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
54
USECODE/REGRET/CONVFLR2.unk
Normal file
54
USECODE/REGRET/CONVFLR2.unk
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
/* synthesized appendix for CONVFLR2 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function convflr2_gotHit() /* entry=326 class_id=0x0563 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_01 = -3;
|
||||
local_02 = 0;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_01 = 3;
|
||||
}
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
local_05 = Item.isOn(*(arg_06), local_04);
|
||||
local_06 = 1;
|
||||
if (Item.getQHi(arg_06) == 0x00FF) {
|
||||
local_06 = 0;
|
||||
}
|
||||
if (!(local_05 && local_06)) {
|
||||
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function convflr2_equip() /* entry=326 class_id=0x0563 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(0, -3, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(0, 3, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
54
USECODE/REGRET/CONV_EL.unk
Normal file
54
USECODE/REGRET/CONV_EL.unk
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
/* synthesized appendix for CONV_EL */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function conv_el_gotHit() /* entry=146 class_id=0x0293 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_01 = 0;
|
||||
local_02 = -3;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_02 = 3;
|
||||
}
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
local_05 = Item.isOn(*(arg_06), local_04);
|
||||
local_06 = 1;
|
||||
if (Item.getQHi(arg_06) == 0x00FF) {
|
||||
local_06 = 0;
|
||||
}
|
||||
if (!(local_05 && local_06)) {
|
||||
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function conv_el_equip() /* entry=146 class_id=0x0293 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(-3, 0, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(3, 0, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
54
USECODE/REGRET/CONV_NL.unk
Normal file
54
USECODE/REGRET/CONV_NL.unk
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
|
||||
/* synthesized appendix for CONV_NL */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function conv_nl_gotHit() /* entry=145 class_id=0x0292 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_01 = -3;
|
||||
local_02 = 0;
|
||||
if (!Item.getQHi(arg_06)) {
|
||||
local_01 = 3;
|
||||
}
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
local_05 = Item.isOn(*(arg_06), local_04);
|
||||
local_06 = 1;
|
||||
if (Item.getQHi(arg_06) == 0x00FF) {
|
||||
local_06 = 0;
|
||||
}
|
||||
if (!(local_05 && local_06)) {
|
||||
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function conv_nl_equip() /* entry=145 class_id=0x0292 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(0, -3, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
FREE.slot_3C(0x0205, *(arg_06));
|
||||
spawn CONVEYOR.slot_20(0, 3, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
25
USECODE/REGRET/COPY_EW.unk
Normal file
25
USECODE/REGRET/COPY_EW.unk
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
/* synthesized appendix for COPY_EW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function copy_ew_gotHit() /* entry=235 class_id=0x0433 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
local_04 = 2;
|
||||
if (local_02 <= 1) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
FREE.slot_20(1);
|
||||
FREE.slot_20(local_04, 10);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
25
USECODE/REGRET/COPY_NS.unk
Normal file
25
USECODE/REGRET/COPY_NS.unk
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
/* synthesized appendix for COPY_NS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function copy_ns_gotHit() /* entry=236 class_id=0x0434 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = Item.getFrame(arg_06);
|
||||
local_04 = 2;
|
||||
if (local_02 <= 1) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_2A(pid, 0, 1, arg_06);
|
||||
suspend;
|
||||
FREE.slot_20(1);
|
||||
FREE.slot_20(local_04, 10);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
31
USECODE/REGRET/COURIER.unk
Normal file
31
USECODE/REGRET/COURIER.unk
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
/* synthesized appendix for COURIER */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function courier_gotHit() /* entry=256 class_id=0x045D slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x4 */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn ITEM.slot_2A(pid, 1, 1, arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function courier_calledFromAnim() /* entry=256 class_id=0x045D slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = *(arg_06);
|
||||
set_info(1, 0);
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), arg_06);
|
||||
return;
|
||||
}
|
||||
18
USECODE/REGRET/CRAZYEW.unk
Normal file
18
USECODE/REGRET/CRAZYEW.unk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
/* synthesized appendix for CRAZYEW */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function crazyew_gotHit() /* entry=250 class_id=0x0451 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A >= 0x00FF) {
|
||||
local_02 = arg_0A;
|
||||
NPC.slot_2A(local_02);
|
||||
if ((retval == 1) && (Actor.getCurrentActivityNo(local_02) != 12)) {
|
||||
spawn NPC.slot_2C(local_02);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
18
USECODE/REGRET/CRAZYNS.unk
Normal file
18
USECODE/REGRET/CRAZYNS.unk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
/* synthesized appendix for CRAZYNS */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function crazyns_gotHit() /* entry=356 class_id=0x05AE slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A >= 0x00FF) {
|
||||
local_02 = arg_0A;
|
||||
NPC.slot_2A(local_02);
|
||||
if ((retval == 1) && (Actor.getCurrentActivityNo(local_02) != 12)) {
|
||||
spawn NPC.slot_2C(local_02);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
43
USECODE/REGRET/CRUMORPH.unk
Normal file
43
USECODE/REGRET/CRUMORPH.unk
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
|
||||
/* synthesized appendix for CRUMORPH */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function crumorph_equip() /* entry=174 class_id=0x0318 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
/* loop_selector local_02 in nearby_items(family=6, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (!Item.isNpc(local_02)) {
|
||||
if (Intrinsic000D(local_02) == Item.getQLo(arg_06)) {
|
||||
if (Actor.isDead(local_02) == 0) {
|
||||
NPC.slot_2A(local_02);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
local_04 = Actor.getCurrentActivityNo(local_02);
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
spawn NPC.slot_28(pid, local_02);
|
||||
suspend;
|
||||
while (World.getControlledNPCNum() <= 1) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
if (Actor.isDead(local_02) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
33
USECODE/REGRET/CRUSADER.unk
Normal file
33
USECODE/REGRET/CRUSADER.unk
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
|
||||
/* synthesized appendix for CRUSADER */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function crusader_use() /* entry=418 class_id=0x0801 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
spawn FREE.slot_3B(pid, 0x00C8, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
while (Actor.isDead()) {
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x04 cachein ===== */
|
||||
function crusader_cachein() /* entry=418 class_id=0x0801 slot=0x04 */
|
||||
{
|
||||
set_info(0x0213, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x11 cast ===== */
|
||||
function crusader_cast() /* entry=418 class_id=0x0801 slot=0x11 */
|
||||
{
|
||||
set_info(0x021D, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
60
USECODE/REGRET/CRUZTRIG.unk
Normal file
60
USECODE/REGRET/CRUZTRIG.unk
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
|
||||
/* synthesized appendix for CRUZTRIG */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cruztrig_gotHit() /* entry=191 class_id=0x0365 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == World.getControlledNPCNum()) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getMapNum(arg_06) == 0) {
|
||||
local_02 = arg_0A;
|
||||
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCentreOn(*(arg_06), local_02) != 0)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
while (!(1)) {
|
||||
if (Item.getSurfaceWeight(arg_06) == 0) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
while (!(Item.getStatus(local_04) & 0x1000)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
if (Item.getZ() >= (Item.getZ(local_04) - 5)) {
|
||||
ELEVAT.slot_21(Item.getZ(local_04), local_04);
|
||||
if (!retval) {
|
||||
spawn ELEVAT.slot_20(local_04);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
338
USECODE/REGRET/CRU_MINE.unk
Normal file
338
USECODE/REGRET/CRU_MINE.unk
Normal file
|
|
@ -0,0 +1,338 @@
|
|||
|
||||
/* synthesized appendix for CRU_MINE */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function cru_mine_use() /* entry=55 class_id=0x011E slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_05 = *(arg_06);
|
||||
set_info(0x00F0, 0);
|
||||
/* global_address global_id=0x1E */
|
||||
local_0D = Actor.getLastAnimSet();
|
||||
/* global_address global_id=0x1E */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getDir() == 0) {
|
||||
local_13 = 0;
|
||||
local_15 = -1;
|
||||
local_0F = -1;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 1) {
|
||||
local_13 = 0;
|
||||
local_15 = -1;
|
||||
local_0F = 0;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 2) {
|
||||
local_13 = 1;
|
||||
local_15 = -1;
|
||||
local_0F = 1;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 3) {
|
||||
local_13 = 1;
|
||||
local_15 = -1;
|
||||
local_0F = 2;
|
||||
local_11 = -2;
|
||||
}
|
||||
else if (Actor.getDir() == 4) {
|
||||
local_13 = 1;
|
||||
local_15 = 0;
|
||||
local_0F = 2;
|
||||
local_11 = -1;
|
||||
}
|
||||
else if (Actor.getDir() == 5) {
|
||||
local_13 = 1;
|
||||
local_15 = 0;
|
||||
local_0F = 2;
|
||||
local_11 = 0;
|
||||
}
|
||||
else if (Actor.getDir() == 6) {
|
||||
local_13 = 1;
|
||||
local_15 = 1;
|
||||
local_0F = 2;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 7) {
|
||||
local_13 = 1;
|
||||
local_15 = 1;
|
||||
local_0F = 0;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 8) {
|
||||
local_13 = 0;
|
||||
local_15 = 1;
|
||||
local_0F = -1;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 9) {
|
||||
local_13 = 0;
|
||||
local_15 = 1;
|
||||
local_0F = -2;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 10) {
|
||||
local_13 = -1;
|
||||
local_15 = 1;
|
||||
local_0F = -3;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 11) {
|
||||
local_13 = -1;
|
||||
local_15 = 1;
|
||||
local_0F = -3;
|
||||
local_11 = 1;
|
||||
}
|
||||
else if (Actor.getDir() == 12) {
|
||||
local_13 = -1;
|
||||
local_15 = 0;
|
||||
local_0F = -3;
|
||||
local_11 = 0;
|
||||
}
|
||||
else if (Actor.getDir() == 13) {
|
||||
local_13 = -1;
|
||||
local_15 = 0;
|
||||
local_0F = -3;
|
||||
local_11 = -1;
|
||||
}
|
||||
else if (Actor.getDir() == 14) {
|
||||
local_13 = -1;
|
||||
local_15 = -1;
|
||||
local_0F = -3;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 15) {
|
||||
local_13 = -1;
|
||||
local_15 = -1;
|
||||
local_0F = -3;
|
||||
local_11 = -3;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (!Intrinsic0061()) {
|
||||
local_03 = 1;
|
||||
}
|
||||
else {
|
||||
local_03 = 0;
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
local_1A = (Item.getX() + (local_0F * 16));
|
||||
/* global_address global_id=0x1E */
|
||||
local_18 = (Item.getY() + (local_11 * 16));
|
||||
/* global_address global_id=0x1E */
|
||||
local_16 = (Item.getZ() + 12);
|
||||
if (Item.legalCreateAtPoint(local_1A, 0, 0x011E, local_02)) {
|
||||
if (local_03) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
while (!Kernel.getNumProcesses(0x0203, local_02)) {
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_0B = 1;
|
||||
while (local_0B > 3) {
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
local_0B = (1 + local_0B);
|
||||
}
|
||||
spawn CRU_MINE.slot_20(local_02, arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function cru_mine_slot_20() /* entry=55 class_id=0x011E slot=0x20 */
|
||||
{
|
||||
entry:
|
||||
local_17 = arg_0A;
|
||||
set_info(0x00F0, local_19);
|
||||
|
||||
block_0580:
|
||||
if (!local_15) goto block_060F;
|
||||
|
||||
block_0586:
|
||||
local_02 = (1 + local_02);
|
||||
/* loop_selector local_13 in nearby_items(family=6, origin=local_19) */
|
||||
|
||||
block_05A2:
|
||||
if condition goto block_05DF;
|
||||
|
||||
block_05A5:
|
||||
if Item.isNpc(local_13) goto block_05DB;
|
||||
|
||||
block_05B1:
|
||||
if ((local_13 > 1) && (Actor.isDead(local_13) != 0)) goto block_05DB;
|
||||
|
||||
block_05C6:
|
||||
if Intrinsic0036(local_13, local_19) goto block_05DB;
|
||||
|
||||
block_05D4:
|
||||
local_15 = local_13;
|
||||
goto block_05DF;
|
||||
|
||||
block_05DB:
|
||||
/* loopnext */
|
||||
goto block_05A2;
|
||||
|
||||
block_05DF:
|
||||
if (local_02 > 5) goto block_05F5;
|
||||
|
||||
block_05E9:
|
||||
local_02 = 0;
|
||||
|
||||
block_05F5:
|
||||
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
goto block_0580;
|
||||
|
||||
block_060F:
|
||||
local_02 = 0;
|
||||
|
||||
block_0613:
|
||||
if (local_02 < 0x0190) goto block_08CA;
|
||||
|
||||
block_061C:
|
||||
if (Item.getZ(local_15) > (Item.getZ(local_19) + 9)) goto block_06AD;
|
||||
|
||||
block_0635:
|
||||
local_15 = 0;
|
||||
|
||||
block_0639:
|
||||
if (!local_15) goto block_06AD;
|
||||
|
||||
block_063F:
|
||||
/* loop_selector local_13 in nearby_items(family=6, origin=local_19) */
|
||||
|
||||
block_0654:
|
||||
if condition goto block_0691;
|
||||
|
||||
block_0657:
|
||||
if Item.isNpc(local_13) goto block_068D;
|
||||
|
||||
block_0663:
|
||||
if ((local_13 > 1) && (Actor.isDead(local_13) != 0)) goto block_068D;
|
||||
|
||||
block_0678:
|
||||
if Intrinsic0036(local_13, local_19) goto block_068D;
|
||||
|
||||
block_0686:
|
||||
local_15 = local_13;
|
||||
goto block_0691;
|
||||
|
||||
block_068D:
|
||||
/* loopnext */
|
||||
goto block_0654;
|
||||
|
||||
block_0691:
|
||||
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
goto block_0639;
|
||||
|
||||
block_06AD:
|
||||
while (!Intrinsic0036(local_15, local_13)) {
|
||||
spawn FREE.slot_3B(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_06D5:
|
||||
if ((local_1B == 0) || (local_1B != 1)) {
|
||||
local_04 = 0;
|
||||
local_06 = -1;
|
||||
}
|
||||
else if ((local_1B == 2) || (local_1B != 3)) {
|
||||
local_04 = 1;
|
||||
local_06 = -1;
|
||||
}
|
||||
else if ((local_1B == 4) || (local_1B != 5)) {
|
||||
local_04 = 1;
|
||||
local_06 = 0;
|
||||
}
|
||||
else if ((local_1B == 6) || (local_1B != 7)) {
|
||||
local_04 = 1;
|
||||
local_06 = 1;
|
||||
}
|
||||
else if ((local_1B == 8) || (local_1B != 9)) {
|
||||
local_04 = 0;
|
||||
local_06 = 1;
|
||||
}
|
||||
else if ((local_1B == 10) || (local_1B != 11)) {
|
||||
local_04 = -1;
|
||||
local_06 = 1;
|
||||
}
|
||||
else if ((local_1B == 12) || (local_1B != 13)) {
|
||||
local_04 = -1;
|
||||
local_06 = 0;
|
||||
}
|
||||
else if ((local_1B == 14) || (local_1B != 15)) {
|
||||
local_04 = -1;
|
||||
local_06 = -1;
|
||||
}
|
||||
|
||||
block_07C5:
|
||||
local_11 = (local_11 + (local_04 * 8));
|
||||
local_0F = (local_0F + (local_06 * 8));
|
||||
if (!Item.legalMoveToPoint(0, 1, local_11, local_19)) goto block_0836;
|
||||
|
||||
block_07F6:
|
||||
local_0D = (local_0D + 1);
|
||||
if (!Item.legalMoveToPoint(0, 1, local_11, local_19)) goto block_0836;
|
||||
|
||||
block_0810:
|
||||
local_0D = (local_0D + 1);
|
||||
if (!Item.legalMoveToPoint(0, 1, local_11, local_19)) goto block_0836;
|
||||
|
||||
block_082A:
|
||||
|
||||
block_0836:
|
||||
local_0C = (1 + local_0C);
|
||||
if ((local_0C > 10) && (local_0D > 0)) goto block_08A9;
|
||||
|
||||
block_084B:
|
||||
local_0D = (local_0D - 4);
|
||||
local_1C = 0;
|
||||
|
||||
block_0856:
|
||||
while (!Item.legalMoveToPoint(0, 1, local_11, local_19)) {
|
||||
local_0D = (local_0D - 4);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
local_1C = 1;
|
||||
}
|
||||
|
||||
block_088D:
|
||||
local_0C = 0;
|
||||
if local_1C goto block_08A9;
|
||||
|
||||
block_0896:
|
||||
|
||||
block_08A9:
|
||||
local_02 = (1 + local_02);
|
||||
spawn FREE.slot_3B(pid, 4, 0x00000000);
|
||||
suspend;
|
||||
goto block_0613;
|
||||
|
||||
block_08CA:
|
||||
return;
|
||||
|
||||
}
|
||||
203
USECODE/REGRET/CRU_SPID.unk
Normal file
203
USECODE/REGRET/CRU_SPID.unk
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
|
||||
/* synthesized appendix for CRU_SPID */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function cru_spid_use() /* entry=324 class_id=0x0560 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_05 = *(arg_06);
|
||||
set_info(0x00F0, 0);
|
||||
/* global_address global_id=0x1E */
|
||||
local_0D = Actor.getLastAnimSet();
|
||||
/* global_address global_id=0x1E */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getDir() == 0) {
|
||||
local_0F = -1;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 1) {
|
||||
local_0F = 0;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 2) {
|
||||
local_0F = 1;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 3) {
|
||||
local_0F = 2;
|
||||
local_11 = -2;
|
||||
}
|
||||
else if (Actor.getDir() == 4) {
|
||||
local_0F = 2;
|
||||
local_11 = -1;
|
||||
}
|
||||
else if (Actor.getDir() == 5) {
|
||||
local_0F = 2;
|
||||
local_11 = 0;
|
||||
}
|
||||
else if (Actor.getDir() == 6) {
|
||||
local_0F = 2;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 7) {
|
||||
local_0F = 0;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 8) {
|
||||
local_0F = -1;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 9) {
|
||||
local_0F = -2;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 10) {
|
||||
local_0F = -3;
|
||||
local_11 = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 11) {
|
||||
local_0F = -3;
|
||||
local_11 = 1;
|
||||
}
|
||||
else if (Actor.getDir() == 12) {
|
||||
local_0F = -3;
|
||||
local_11 = 0;
|
||||
}
|
||||
else if (Actor.getDir() == 13) {
|
||||
local_0F = -3;
|
||||
local_11 = -1;
|
||||
}
|
||||
else if (Actor.getDir() == 14) {
|
||||
local_0F = -3;
|
||||
local_11 = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 15) {
|
||||
local_0F = -3;
|
||||
local_11 = -3;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (!Intrinsic0061()) {
|
||||
local_03 = 1;
|
||||
}
|
||||
else {
|
||||
local_03 = 0;
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
local_16 = (Item.getX() + (local_0F * 16));
|
||||
/* global_address global_id=0x1E */
|
||||
local_14 = (Item.getY() + (local_11 * 16));
|
||||
/* global_address global_id=0x1E */
|
||||
local_12 = (Item.getZ() + 2);
|
||||
if (Item.legalCreateAtPoint(local_16, 0, 0x0560, local_02)) {
|
||||
if (local_03) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_0B = 1;
|
||||
while (local_0B > 9) {
|
||||
spawn FREE.slot_3B(pid, 3, 0x00000000);
|
||||
suspend;
|
||||
local_0B = (1 + local_0B);
|
||||
}
|
||||
spawn CRU_SPID.slot_20(local_02, arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x05 hit ===== */
|
||||
function cru_spid_hit() /* entry=324 class_id=0x0560 slot=0x05 */
|
||||
{
|
||||
set_info(0x020B, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function cru_spid_slot_20() /* entry=324 class_id=0x0560 slot=0x20 */
|
||||
{
|
||||
set_info(0x00F0, *(arg_06));
|
||||
local_0F = arg_0A;
|
||||
set_info(0x00F0, local_11);
|
||||
while (local_02 >= 0x01F4) {
|
||||
/* global_address global_id=0x1E */
|
||||
if (!Intrinsic0061()) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getDir((Actor.getDir() == 0)) != 1) {
|
||||
local_04 = 0;
|
||||
local_06 = -1;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 2)) != 3) {
|
||||
local_04 = 1;
|
||||
local_06 = -1;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 4)) != 5) {
|
||||
local_04 = 1;
|
||||
local_06 = 0;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 6)) != 7) {
|
||||
local_04 = 1;
|
||||
local_06 = 1;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 8)) != 9) {
|
||||
local_04 = 0;
|
||||
local_06 = 1;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 10)) != 11) {
|
||||
local_04 = -1;
|
||||
local_06 = 1;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 12)) != 13) {
|
||||
local_04 = -1;
|
||||
local_06 = 0;
|
||||
}
|
||||
else if (Actor.getDir((Actor.getDir() == 14)) != 15) {
|
||||
local_04 = -1;
|
||||
local_06 = -1;
|
||||
}
|
||||
}
|
||||
local_13 = local_0D;
|
||||
local_15 = local_0B;
|
||||
local_17 = local_09;
|
||||
local_0D = (local_0D + (local_04 * 8));
|
||||
local_0B = (local_0B + (local_06 * 8));
|
||||
if (Item.legalMoveToPoint(0, 1, local_0D, local_11)) {
|
||||
local_09 = (local_09 + 1);
|
||||
}
|
||||
local_08 = (1 + local_08);
|
||||
if ((local_08 <= 10) && (local_09 > 0)) {
|
||||
local_09 = (local_09 - 4);
|
||||
local_18 = 0;
|
||||
while (!Item.legalMoveToPoint(0, 1, local_0D, local_11)) {
|
||||
local_09 = (local_09 - 4);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
local_18 = 1;
|
||||
}
|
||||
local_08 = 0;
|
||||
}
|
||||
local_02 = (1 + local_02);
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
27
USECODE/REGRET/CRYO1.unk
Normal file
27
USECODE/REGRET/CRYO1.unk
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
/* synthesized appendix for CRYO1 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cryo1_gotHit() /* entry=377 class_id=0x05DD slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn STEAM.slot_25(pid, arg_0A, arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function cryo1_enterFastArea() /* entry=377 class_id=0x05DD slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
27
USECODE/REGRET/CRYO2.unk
Normal file
27
USECODE/REGRET/CRYO2.unk
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
/* synthesized appendix for CRYO2 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cryo2_gotHit() /* entry=378 class_id=0x05DE slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn STEAM.slot_25(pid, arg_0A, arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function cryo2_enterFastArea() /* entry=378 class_id=0x05DE slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
119
USECODE/REGRET/CRYOBOX.unk
Normal file
119
USECODE/REGRET/CRYOBOX.unk
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
|
||||
/* synthesized appendix for CRYOBOX */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function cryobox_equip() /* entry=379 class_id=0x05E1 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (arg_0A == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x44 */
|
||||
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(local_02) == Item.getQLo(arg_06)) {
|
||||
if (!(Item.getStatus(local_02) & 0x1000)) {
|
||||
}
|
||||
else if ((Item.getShape(local_02) == 0x05DD) || (Item.getShape(local_02) != 0x05D9)) {
|
||||
spawn CRYOBOX.slot_21(0, local_02, arg_06);
|
||||
}
|
||||
else if ((Item.getShape(local_02) == 0x05DE) || (Item.getShape(local_02) != 0x05DA)) {
|
||||
spawn CRYOBOX.slot_21(1, local_02, arg_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
for local_02 in selector_0x42(arg0=0x05E0, arg1=0x05DF, arg2=(32 * 32), origin=arg_06) {
|
||||
if (Item.getQLo(local_02) == Item.getQLo(arg_06)) {
|
||||
if (Item.getShape(local_02) == 0x05DF) {
|
||||
spawn CRYOBOX.slot_20(0, local_04, arg_06);
|
||||
}
|
||||
else if (Item.getShape(local_02) == 0x05E0) {
|
||||
spawn CRYOBOX.slot_20(1, local_04, arg_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x20 slot_20 ===== */
|
||||
function cryobox_slot_20() /* entry=379 class_id=0x05E1 slot=0x20 */
|
||||
{
|
||||
set_info(0x00F0, *(arg_06));
|
||||
if (!Intrinsic006A()) {
|
||||
while ((Item.getFrame(arg_0A) == 39) && (Item.isEntirelyOnScreen(arg_0A) != 1)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getFrame(arg_0A) == 12) {
|
||||
ITEM.slot_24(4, arg_0A);
|
||||
spawn STEAM.slot_24(arg_0A);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
if (arg_0C == 0) {
|
||||
if (!Intrinsic006A()) {
|
||||
}
|
||||
}
|
||||
else if (arg_0C == 1) {
|
||||
if (!Intrinsic006A()) {
|
||||
}
|
||||
}
|
||||
ITEM.slot_24(4, local_04);
|
||||
spawn STEAM.slot_24(local_04);
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x21 slot_21 ===== */
|
||||
function cryobox_slot_21() /* entry=379 class_id=0x05E1 slot=0x21 */
|
||||
{
|
||||
set_info(1, *(arg_06));
|
||||
ITEM.slot_24(0x1000, arg_0A);
|
||||
if (!Intrinsic006A()) {
|
||||
if ((Item.getShape(arg_0A) == 0x05D9) || (Item.getShape(arg_0A) != 0x05DA)) {
|
||||
while ((Item.getFrame(arg_0A) == 39) && (Item.isEntirelyOnScreen(arg_0A) != 1)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else {
|
||||
while ((Item.getFrame(arg_0A) == 23) && (Item.isEntirelyOnScreen(arg_0A) != 1)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 0x00C8, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
if (arg_0C == 0) {
|
||||
local_06 = 0x05DF;
|
||||
}
|
||||
else if (arg_0C == 1) {
|
||||
local_06 = 0x05E0;
|
||||
}
|
||||
ITEM.slot_24(0x1000, local_04);
|
||||
if (!Intrinsic006A()) {
|
||||
while ((Item.getFrame(local_04) == 29) && (Item.isEntirelyOnScreen(local_04) != 1)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 0x00C8, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
ITEM.slot_25(0x1000, local_04);
|
||||
return;
|
||||
}
|
||||
13
USECODE/REGRET/CRYOTRON.unk
Normal file
13
USECODE/REGRET/CRYOTRON.unk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
/* synthesized appendix for CRYOTRON */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0E calledFromAnim ===== */
|
||||
function cryotron_calledFromAnim() /* entry=380 class_id=0x05E2 slot=0x0E */
|
||||
{
|
||||
set_info(0x021A, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = *(arg_06);
|
||||
spawn NPCDEATH.slot_20(Intrinsic000D(arg_06), *(arg_06), local_02);
|
||||
return;
|
||||
}
|
||||
12
USECODE/REGRET/CSPID.unk
Normal file
12
USECODE/REGRET/CSPID.unk
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
/* synthesized appendix for CSPID */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function cspid_gotHit() /* entry=342 class_id=0x0584 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
return;
|
||||
}
|
||||
29
USECODE/REGRET/DAMNLUGG.unk
Normal file
29
USECODE/REGRET/DAMNLUGG.unk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
/* synthesized appendix for DAMNLUGG */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function damnlugg_gotHit() /* entry=352 class_id=0x059F slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_29(pid, 100, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
spawn ITEM.slot_2A(pid, 1, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
29
USECODE/REGRET/DAMNMCR8.unk
Normal file
29
USECODE/REGRET/DAMNMCR8.unk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
/* synthesized appendix for DAMNMCR8 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x06 gotHit ===== */
|
||||
function damnmcr8_gotHit() /* entry=353 class_id=0x05A0 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
spawn ITEM.slot_29(pid, 100, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
spawn ITEM.slot_2A(pid, 1, 0, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
266
USECODE/REGRET/DATALINK.unk
Normal file
266
USECODE/REGRET/DATALINK.unk
Normal file
|
|
@ -0,0 +1,266 @@
|
|||
|
||||
/* synthesized appendix for DATALINK */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function datalink_use() /* entry=282 class_id=0x04D4 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
/* pop_global global_id=0xA size=0x1 */
|
||||
set_info(0, 1, 0);
|
||||
/* global_address global_id=0x1E */
|
||||
local_05 = Actor.getDir();
|
||||
/* global_address global_id=0x1E */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (Intrinsic0061()) {
|
||||
local_03 = 1;
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_21(pid, 0x00A7, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "MISSION OBJECTIVE:^------------------^^";
|
||||
}
|
||||
if (global[0x0001] == 0) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 1)) != 2) {
|
||||
if (global[0x0011]) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Secure transport back to Earth and make contact with General Maxis.";
|
||||
}
|
||||
else if (global[0x0010]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "Destroy Plasma Turbine on level 5.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "to the LMC Lunar Mining Base.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 3)) != 4) {
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "Locate elevator on level 4 to rendezvous with the rebels' colonel.";
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 5)) != 6) {
|
||||
if (global[0x0013]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^^Insert Trojan Horse program into TGT system.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Take the tram to rebels' rendezvous point.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 7)) != 8) {
|
||||
if (global[0x0014]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^^Download rebel prisoner files from LMC security system.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Tram has been programmed to return to the rebel meeting area.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 9)) != 10) {
|
||||
if (global[0x0015]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "Locate rebel prisoners^on level 4^and liberate them.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Tram has been programmed to return to rebel meeting area.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 11)) != 12) {
|
||||
if (global[0x0016]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^^Place FusionPac on conveyor.^^Exit area quickly.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^FusionPac will detonate shortly.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 13)) != 14) {
|
||||
if (global[0x0017]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Disarm nerve gas^canister before it^contaminates O2^regeneration system.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Tram has been programmed to return to rebel meeting area.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 15)) != 16) {
|
||||
if (global[0x0018]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^^Destroy WEC troop transport before it lands at Lunar Base.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Tram has been programmed to return to rebel camp.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap() == 17)) != 18) {
|
||||
if (global[0x0019]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^^Disarm self-destruction system before Lunar Base is destroyed.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Tram has been programmed to take you to LMC Headquarters.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap((Actor.getMap((Actor.getMap((Actor.getMap() == 19)) != 20)) != 21)) != 22) {
|
||||
if (global[0x001A]) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Destroy objective with any means available.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^Tram has been programmed to return to Rebel Headquarters.";
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^REBEL CAMP^__________^^Replenish supplies.^^Talk to officer in charge for next mission.";
|
||||
}
|
||||
else {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
local_07 = "^^Head can only be destroyed by securing DetPacs to his ears.";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FLICTEST.slot_20(pid, global[0x0001], local_02);
|
||||
suspend;
|
||||
}
|
||||
if (!local_03) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF7 string_bytes=0x6 loop_type=0x4 */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
/* free_local_string bp_offset=0xF9 target=[BP-07h] */
|
||||
return;
|
||||
}
|
||||
28
USECODE/REGRET/DATAPICK.unk
Normal file
28
USECODE/REGRET/DATAPICK.unk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
/* synthesized appendix for DATAPICK */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function datapick_use() /* entry=400 class_id=0x0613 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
set_info(0x00F0, 0);
|
||||
/* global_address global_id=0x1E */
|
||||
spawn FREE.slot_3B(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x46 */
|
||||
/* loop current_var=0xFE string_bytes=0xE loop_type=0x2 */
|
||||
while (!condition) {
|
||||
local_04 = local_02;
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
if (local_04) {
|
||||
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
40
USECODE/REGRET/DEATHBOX.unk
Normal file
40
USECODE/REGRET/DEATHBOX.unk
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
/* synthesized appendix for DEATHBOX */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function deathbox_equip() /* entry=289 class_id=0x04E7 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 12, 0x00000000);
|
||||
suspend;
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
if (arg_0A == 2) {
|
||||
for local_02 in nearby_items(shape=48, origin=arg_06) {
|
||||
if (Item.getQLo(local_02) == 10) {
|
||||
local_03 = Item.getFrame(local_02);
|
||||
}
|
||||
else if (Item.getQLo(local_02) == 11) {
|
||||
local_04 = Item.getFrame(local_02);
|
||||
}
|
||||
local_07 = (1 + local_07);
|
||||
/* loopnext */
|
||||
}
|
||||
if ((local_04 == 4) && (local_03 != 0)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0x0080, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
11
USECODE/REGRET/DEL16.unk
Normal file
11
USECODE/REGRET/DEL16.unk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
/* synthesized appendix for DEL16 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x04 cachein ===== */
|
||||
function del16_cachein() /* entry=127 class_id=0x021A slot=0x04 */
|
||||
{
|
||||
set_info(0x0213, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
11
USECODE/REGRET/DEL8.unk
Normal file
11
USECODE/REGRET/DEL8.unk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
/* synthesized appendix for DEL8 */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x04 cachein ===== */
|
||||
function del8_cachein() /* entry=59 class_id=0x012E slot=0x04 */
|
||||
{
|
||||
set_info(0x0213, *(arg_06));
|
||||
process_exclude();
|
||||
return;
|
||||
}
|
||||
56
USECODE/REGRET/DENNING.unk
Normal file
56
USECODE/REGRET/DENNING.unk
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
|
||||
/* synthesized appendix for DENNING */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function denning_use() /* entry=138 class_id=0x0277 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (global[0x000F] == 4) {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function denning_enterFastArea() /* entry=138 class_id=0x0277 slot=0x0F */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() != 25) goto block_0136;
|
||||
|
||||
block_0133:
|
||||
goto block_01C5;
|
||||
|
||||
block_0136:
|
||||
while (true) {
|
||||
suspend;
|
||||
local_02 = 0x00CD;
|
||||
while (local_02 > 0x00D2) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
local_02 = 0;
|
||||
while (local_02 > 5) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_02 = (1 + local_02);
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 20, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
|
||||
block_01C5:
|
||||
return;
|
||||
|
||||
}
|
||||
123
USECODE/REGRET/DETPAC.unk
Normal file
123
USECODE/REGRET/DETPAC.unk
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
|
||||
/* synthesized appendix for DETPAC */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function detpac_use() /* entry=323 class_id=0x055F slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
local_03 = *(arg_06);
|
||||
if (!Item.isInNpc(arg_06)) {
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getMap() == 25) {
|
||||
return;
|
||||
}
|
||||
set_info(0x00F0, 0);
|
||||
local_07 = 0;
|
||||
/* global_address global_id=0x1E */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (Actor.getDir() == 0) {
|
||||
local_09 = -1;
|
||||
local_0B = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 1) {
|
||||
local_09 = 0;
|
||||
local_0B = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 2) {
|
||||
local_09 = 1;
|
||||
local_0B = -3;
|
||||
}
|
||||
else if (Actor.getDir() == 3) {
|
||||
local_09 = 2;
|
||||
local_0B = -2;
|
||||
}
|
||||
else if (Actor.getDir() == 4) {
|
||||
local_09 = 2;
|
||||
local_0B = -1;
|
||||
}
|
||||
else if (Actor.getDir() == 5) {
|
||||
local_09 = 2;
|
||||
local_0B = 0;
|
||||
}
|
||||
else if (Actor.getDir() == 6) {
|
||||
local_09 = 2;
|
||||
local_0B = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 7) {
|
||||
local_09 = 0;
|
||||
local_0B = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 8) {
|
||||
local_09 = -1;
|
||||
local_0B = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 9) {
|
||||
local_09 = -2;
|
||||
local_0B = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 10) {
|
||||
local_09 = -3;
|
||||
local_0B = 2;
|
||||
}
|
||||
else if (Actor.getDir() == 11) {
|
||||
local_09 = -3;
|
||||
local_0B = 1;
|
||||
}
|
||||
else if (Actor.getDir() == 12) {
|
||||
local_09 = -3;
|
||||
local_0B = 0;
|
||||
}
|
||||
else if (Actor.getDir() == 13) {
|
||||
local_09 = -3;
|
||||
local_0B = -1;
|
||||
}
|
||||
else if (Actor.getDir() == 14) {
|
||||
local_09 = -3;
|
||||
local_0B = -2;
|
||||
}
|
||||
else if (Actor.getDir() == 15) {
|
||||
local_09 = -3;
|
||||
local_0B = -3;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
if (!Intrinsic0061()) {
|
||||
local_01 = 1;
|
||||
}
|
||||
else {
|
||||
local_01 = 0;
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x1E */
|
||||
local_12 = (Item.getX() + (local_09 * 16));
|
||||
/* global_address global_id=0x1E */
|
||||
local_10 = (Item.getY() + (local_0B * 16));
|
||||
/* global_address global_id=0x1E */
|
||||
local_0E = Item.getZ();
|
||||
if (!Item.legalCreateAtPoint(local_12, 0, 0x055F, local_0D)) {
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
if (local_01) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
return;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue