mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
Match BoostDefense, VanishActor, ElectrifyActor, and HealActor (#481)
* Match BoostDefense, VanishActor, ElectrifyActor, and HealActor * Delete BoostDefense.s * Delete VanishActor.s * Delete ElectrifyActor.s * Delete HealActor.s * Update 197F40.c * Add D_8029FBD0 * Add inflict_status * Address comments.
This commit is contained in:
parent
08edbc6e01
commit
ce1c0c715e
@ -544,6 +544,7 @@ void dispatch_event_actor(Actor*, s32);
|
|||||||
void btl_show_variable_battle_message(s32, s32, s32);
|
void btl_show_variable_battle_message(s32, s32, s32);
|
||||||
s32 btl_is_popup_displayed(void);
|
s32 btl_is_popup_displayed(void);
|
||||||
void func_8024E3D8(s32);
|
void func_8024E3D8(s32);
|
||||||
|
s32 inflict_status(Actor*, s32, s32);
|
||||||
|
|
||||||
void enforce_hpfp_limits(void);
|
void enforce_hpfp_limits(void);
|
||||||
|
|
||||||
|
@ -383,6 +383,8 @@ extern s32 D_802920C0[];
|
|||||||
extern s32 D_802920E8[];
|
extern s32 D_802920E8[];
|
||||||
extern s32 D_80292110[];
|
extern s32 D_80292110[];
|
||||||
|
|
||||||
|
extern s32 D_8029FBD0;
|
||||||
|
|
||||||
extern s32 D_800F7BE8[];
|
extern s32 D_800F7BE8[];
|
||||||
extern s32 D_800F7BBC[];
|
extern s32 D_800F7BBC[];
|
||||||
|
|
||||||
|
468
src/197F40.c
468
src/197F40.c
@ -2320,10 +2320,10 @@ ApiStatus BoostAttack(Evt* script, s32 isInitialCall) {
|
|||||||
script->functionTemp[2] = attackBoost;
|
script->functionTemp[2] = attackBoost;
|
||||||
|
|
||||||
func_8024E40C(8);
|
func_8024E40C(8);
|
||||||
btl_cam_set_zoffset(0xC);
|
btl_cam_set_zoffset(12);
|
||||||
btl_cam_target_actor(actor->actorID);
|
btl_cam_target_actor(actor->actorID);
|
||||||
btl_cam_set_zoom(0xFA);
|
btl_cam_set_zoom(0xFA);
|
||||||
btl_cam_move(0xA);
|
btl_cam_move(10);
|
||||||
func_8024E60C();
|
func_8024E60C();
|
||||||
if (actor->flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
if (actor->flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
btl_cam_set_zoffset(0);
|
btl_cam_set_zoffset(0);
|
||||||
@ -2374,7 +2374,7 @@ ApiStatus BoostAttack(Evt* script, s32 isInitialCall) {
|
|||||||
if (script->functionTemp[3] == 0) {
|
if (script->functionTemp[3] == 0) {
|
||||||
dispatch_event_actor(actor, EVENT_SWAP_PARTNER);
|
dispatch_event_actor(actor, EVENT_SWAP_PARTNER);
|
||||||
func_8024E40C(2);
|
func_8024E40C(2);
|
||||||
btl_cam_move(0xF);
|
btl_cam_move(15);
|
||||||
actor->isGlowing = 1;
|
actor->isGlowing = 1;
|
||||||
actor->attackBoost += attackBoost;
|
actor->attackBoost += attackBoost;
|
||||||
if (actor->attackBoost > 20) {
|
if (actor->attackBoost > 20) {
|
||||||
@ -2409,7 +2409,7 @@ ApiStatus BoostAttack(Evt* script, s32 isInitialCall) {
|
|||||||
script->functionTemp[3]--;
|
script->functionTemp[3]--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((actor->onHitScript == NULL) || (does_script_exist(actor->onHitID) == 0)) {
|
if ((actor->onHitScript == NULL) || !does_script_exist(actor->onHitID)) {
|
||||||
D_8029FBD4 = 0;
|
D_8029FBD4 = 0;
|
||||||
return ApiStatus_DONE2;
|
return ApiStatus_DONE2;
|
||||||
}
|
}
|
||||||
@ -2418,13 +2418,465 @@ ApiStatus BoostAttack(Evt* script, s32 isInitialCall) {
|
|||||||
return ApiStatus_BLOCK;
|
return ApiStatus_BLOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "197F40", BoostDefense);
|
ApiStatus BoostDefense(Evt* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
s32 actorID;
|
||||||
|
Actor* actor;
|
||||||
|
f32 x1, y1, z1;
|
||||||
|
f32 x2, y2, z2;
|
||||||
|
s32 defenseBoost;
|
||||||
|
s32 flags;
|
||||||
|
s32 flags2;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "197F40", VanishActor);
|
if (isInitialCall) {
|
||||||
|
script->functionTemp[0] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "197F40", ElectrifyActor);
|
if (script->functionTemp[0] == 0) {
|
||||||
|
actorID = evt_get_variable(script, *args++);
|
||||||
|
if (actorID == ACTOR_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
defenseBoost = evt_get_variable(script, *args++);
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
script->functionTemp[1] = (s32) actor;
|
||||||
|
script->functionTemp[2] = defenseBoost;
|
||||||
|
|
||||||
INCLUDE_ASM(s32, "197F40", HealActor);
|
func_8024E40C(8);
|
||||||
|
btl_cam_set_zoffset(12);
|
||||||
|
btl_cam_target_actor(actor->actorID);
|
||||||
|
btl_cam_set_zoom(0xFA);
|
||||||
|
btl_cam_move(10);
|
||||||
|
func_8024E60C();
|
||||||
|
if (actor->flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
btl_cam_set_zoffset(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
D_8029FBD4 = 1;
|
||||||
|
script->functionTemp[3] = 5;
|
||||||
|
script->functionTemp[0] = 1;
|
||||||
|
}
|
||||||
|
get_actor(script->owner1.actorID);
|
||||||
|
actor = (Actor*) script->functionTemp[1];
|
||||||
|
defenseBoost = script->functionTemp[2];
|
||||||
|
|
||||||
|
flags = actor->flags;
|
||||||
|
x1 = actor->currentPos.x + actor->headOffset.x;
|
||||||
|
if (flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
y1 = actor->currentPos.y + actor->headOffset.y - actor->size.y / 2;
|
||||||
|
} else if (!(flags & ACTOR_FLAG_8000)) {
|
||||||
|
y1 = actor->currentPos.y + actor->headOffset.y + actor->size.y / 2;
|
||||||
|
} else {
|
||||||
|
y1 = actor->currentPos.y + actor->headOffset.y + actor->size.y;
|
||||||
|
}
|
||||||
|
z1 = actor->currentPos.z + actor->headOffset.z + 10.0f;
|
||||||
|
|
||||||
|
flags2 = actor->flags;
|
||||||
|
x2 = actor->currentPos.x + actor->headOffset.x + actor->size.x / 2;
|
||||||
|
if (flags2 & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
y2 = actor->currentPos.y + actor->headOffset.y - actor->size.y;
|
||||||
|
} else if (!(flags2 & ACTOR_FLAG_8000)) {
|
||||||
|
y2 = actor->currentPos.y + actor->headOffset.y + actor->size.y;
|
||||||
|
} else {
|
||||||
|
y2 = actor->currentPos.y + actor->headOffset.y + actor->size.y * 2;
|
||||||
|
}
|
||||||
|
z2 = actor->currentPos.z + actor->headOffset.z + 10.0f;
|
||||||
|
|
||||||
|
switch (script->functionTemp[0]) {
|
||||||
|
case 1:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
playFX_33(2, x1, y1, z1, 1.0f, 30);
|
||||||
|
func_8024E3D8(0x13);
|
||||||
|
script->functionTemp[3] = 30;
|
||||||
|
script->functionTemp[0] = 2;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
dispatch_event_actor(actor, EVENT_SWAP_PARTNER);
|
||||||
|
func_8024E40C(2);
|
||||||
|
btl_cam_move(15);
|
||||||
|
actor->isGlowing = 1;
|
||||||
|
actor->defenseBoost += defenseBoost;
|
||||||
|
if (actor->defenseBoost > 20) {
|
||||||
|
actor->defenseBoost = 20;
|
||||||
|
}
|
||||||
|
playFX_56(defenseBoost + 5, x2, y2, z2, 1.0f, 60);
|
||||||
|
script->functionTemp[3] = 15;
|
||||||
|
script->functionTemp[0] = 3;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
btl_show_variable_battle_message(0x1E, 60, defenseBoost);
|
||||||
|
script->functionTemp[0] = 4;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
if (btl_is_popup_displayed() == 0) {
|
||||||
|
func_8024E40C(2);
|
||||||
|
script->functionTemp[3] = 10;
|
||||||
|
script->functionTemp[0] = 5;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
if (script->functionTemp[3] != 0) {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ((actor->onHitScript == NULL) || !does_script_exist(actor->onHitID)) {
|
||||||
|
D_8029FBD4 = 0;
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return ApiStatus_BLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus VanishActor(Evt* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
s32 actorID;
|
||||||
|
Actor* actor;
|
||||||
|
f32 x, y, z;
|
||||||
|
s32 vanished;
|
||||||
|
s32 flags;
|
||||||
|
|
||||||
|
if (isInitialCall) {
|
||||||
|
script->functionTemp[0] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (script->functionTemp[0] == 0) {
|
||||||
|
actorID = evt_get_variable(script, *args++);
|
||||||
|
if (actorID == ACTOR_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
vanished = evt_get_variable(script, *args++);
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
script->functionTemp[1] = (s32) actor;
|
||||||
|
script->functionTemp[2] = vanished;
|
||||||
|
|
||||||
|
func_8024E40C(8);
|
||||||
|
btl_cam_set_zoffset(12);
|
||||||
|
btl_cam_target_actor(actor->actorID);
|
||||||
|
btl_cam_set_zoom(0xFA);
|
||||||
|
btl_cam_move(10);
|
||||||
|
func_8024E60C();
|
||||||
|
if (actor->flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
btl_cam_set_zoffset(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
D_8029FBD4 = 1;
|
||||||
|
script->functionTemp[3] = 5;
|
||||||
|
script->functionTemp[0] = 1;
|
||||||
|
}
|
||||||
|
get_actor(script->owner1.actorID);
|
||||||
|
actor = (Actor*) script->functionTemp[1];
|
||||||
|
vanished = script->functionTemp[2];
|
||||||
|
|
||||||
|
flags = actor->flags;
|
||||||
|
x = actor->currentPos.x + actor->headOffset.x;
|
||||||
|
if (flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
y = actor->currentPos.y + actor->headOffset.y - actor->size.y / 2;
|
||||||
|
} else if (!(flags & ACTOR_FLAG_8000)) {
|
||||||
|
y = actor->currentPos.y + actor->headOffset.y + actor->size.y / 2;
|
||||||
|
} else {
|
||||||
|
y = actor->currentPos.y + actor->headOffset.y + actor->size.y;
|
||||||
|
}
|
||||||
|
z = actor->currentPos.z + actor->headOffset.z + 10.0f;
|
||||||
|
|
||||||
|
switch (script->functionTemp[0]) {
|
||||||
|
case 1:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
playFX_33(3, x, y, z, 1.0f, 30);
|
||||||
|
func_8024E3D8(0x13);
|
||||||
|
script->functionTemp[3] = 0x1E;
|
||||||
|
script->functionTemp[0] = 2;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
dispatch_event_actor(actor, EVENT_SWAP_PARTNER);
|
||||||
|
func_8024E40C(2);
|
||||||
|
btl_cam_move(15);
|
||||||
|
inflict_status(actor, 0xE, vanished);
|
||||||
|
script->functionTemp[3] = 15;
|
||||||
|
script->functionTemp[0] = 3;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
btl_show_variable_battle_message(0x21, 60, vanished);
|
||||||
|
script->functionTemp[0] = 4;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
if (btl_is_popup_displayed() == 0) {
|
||||||
|
func_8024E40C(2);
|
||||||
|
script->functionTemp[3] = 10;
|
||||||
|
script->functionTemp[0] = 5;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
if (script->functionTemp[3] != 0) {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ((actor->onHitScript == NULL) || !does_script_exist(actor->onHitID)) {
|
||||||
|
D_8029FBD4 = 0;
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return ApiStatus_BLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus ElectrifyActor(Evt* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
s32 actorID;
|
||||||
|
Actor* actor;
|
||||||
|
f32 x, y, z;
|
||||||
|
s32 electrified;
|
||||||
|
s32 flags;
|
||||||
|
|
||||||
|
if (isInitialCall) {
|
||||||
|
script->functionTemp[0] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (script->functionTemp[0] == 0) {
|
||||||
|
actorID = evt_get_variable(script, *args++);
|
||||||
|
if (actorID == ACTOR_SELF) {
|
||||||
|
actorID = script->owner1.actorID;
|
||||||
|
}
|
||||||
|
electrified = evt_get_variable(script, *args++);
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
script->functionTemp[1] = (s32) actor;
|
||||||
|
script->functionTemp[2] = electrified;
|
||||||
|
|
||||||
|
func_8024E40C(8);
|
||||||
|
btl_cam_set_zoffset(12);
|
||||||
|
btl_cam_target_actor(actor->actorID);
|
||||||
|
btl_cam_set_zoom(0xFA);
|
||||||
|
btl_cam_move(10);
|
||||||
|
func_8024E60C();
|
||||||
|
if (actor->flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
btl_cam_set_zoffset(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
D_8029FBD4 = 1;
|
||||||
|
script->functionTemp[3] = 5;
|
||||||
|
script->functionTemp[0] = 1;
|
||||||
|
}
|
||||||
|
get_actor(script->owner1.actorID);
|
||||||
|
actor = (Actor*) script->functionTemp[1];
|
||||||
|
electrified = script->functionTemp[2];
|
||||||
|
|
||||||
|
flags = actor->flags;
|
||||||
|
x = actor->currentPos.x + actor->headOffset.x;
|
||||||
|
if (flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
y = actor->currentPos.y + actor->headOffset.y - actor->size.y / 2;
|
||||||
|
} else if (!(flags & ACTOR_FLAG_8000)) {
|
||||||
|
y = actor->currentPos.y + actor->headOffset.y + actor->size.y / 2;
|
||||||
|
} else {
|
||||||
|
y = actor->currentPos.y + actor->headOffset.y + actor->size.y;
|
||||||
|
}
|
||||||
|
z = actor->currentPos.z + actor->headOffset.z + 10.0f;
|
||||||
|
|
||||||
|
switch (script->functionTemp[0]) {
|
||||||
|
case 1:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
playFX_57(8, x, y, z, 1.0f, 30);
|
||||||
|
func_8024E3D8(0x13);
|
||||||
|
script->functionTemp[3] = 0x1E;
|
||||||
|
script->functionTemp[0] = 2;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
dispatch_event_actor(actor, EVENT_SWAP_PARTNER);
|
||||||
|
func_8024E40C(2);
|
||||||
|
btl_cam_move(15);
|
||||||
|
inflict_status(actor, 0xB, electrified);
|
||||||
|
script->functionTemp[3] = 15;
|
||||||
|
script->functionTemp[0] = 3;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
btl_show_variable_battle_message(0x22, 60, electrified);
|
||||||
|
script->functionTemp[0] = 4;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
if (btl_is_popup_displayed() == 0) {
|
||||||
|
func_8024E40C(2);
|
||||||
|
script->functionTemp[3] = 10;
|
||||||
|
script->functionTemp[0] = 5;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
if (script->functionTemp[3] != 0) {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ((actor->onHitScript == NULL) || !does_script_exist(actor->onHitID)) {
|
||||||
|
D_8029FBD4 = 0;
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return ApiStatus_BLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
|
ApiStatus HealActor(Evt* script, s32 isInitialCall) {
|
||||||
|
Bytecode* args = script->ptrReadPos;
|
||||||
|
s32 actorID;
|
||||||
|
Actor* actor;
|
||||||
|
f32 x1, y1, z1;
|
||||||
|
f32 x2, y2, z2;
|
||||||
|
s32 hpBoost;
|
||||||
|
s32 flags;
|
||||||
|
s32 flags2;
|
||||||
|
s32 message;
|
||||||
|
|
||||||
|
if (isInitialCall) {
|
||||||
|
script->functionTemp[0] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (script->functionTemp[0] == 0) {
|
||||||
|
actorID = evt_get_variable(script, *args++);
|
||||||
|
if (actorID == ACTOR_SELF) {
|
||||||
|
actorID = script->owner1.enemyID;
|
||||||
|
}
|
||||||
|
hpBoost = evt_get_variable(script, *args++);
|
||||||
|
D_8029FBD0 = evt_get_variable(script, *args++);
|
||||||
|
actor = get_actor(actorID);
|
||||||
|
script->functionTemp[1] = (s32) actor;
|
||||||
|
script->functionTemp[2] = hpBoost;
|
||||||
|
|
||||||
|
func_8024E40C(8);
|
||||||
|
btl_cam_set_zoffset(12);
|
||||||
|
btl_cam_target_actor(actor->actorID);
|
||||||
|
btl_cam_move(10);
|
||||||
|
func_8024E60C();
|
||||||
|
|
||||||
|
D_8029FBD4 = 1;
|
||||||
|
script->functionTemp[3] = 5;
|
||||||
|
script->functionTemp[0] = 1;
|
||||||
|
}
|
||||||
|
get_actor(script->owner1.enemyID);
|
||||||
|
actor = (Actor*) script->functionTemp[1];
|
||||||
|
hpBoost = script->functionTemp[2];
|
||||||
|
|
||||||
|
flags = actor->flags;
|
||||||
|
x1 = actor->currentPos.x + actor->headOffset.x;
|
||||||
|
if (flags & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
y1 = actor->currentPos.y + actor->headOffset.y - actor->size.y / 2;
|
||||||
|
} else if (!(flags & ACTOR_FLAG_8000)) {
|
||||||
|
y1 = actor->currentPos.y + actor->headOffset.y + actor->size.y / 2;
|
||||||
|
} else {
|
||||||
|
y1 = actor->currentPos.y + actor->headOffset.y + actor->size.y;
|
||||||
|
}
|
||||||
|
z1 = actor->currentPos.z + actor->headOffset.z + 10.0f;
|
||||||
|
|
||||||
|
flags2 = actor->flags;
|
||||||
|
x2 = actor->currentPos.x + actor->headOffset.x + actor->size.x / 2;
|
||||||
|
if (flags2 & ACTOR_FLAG_HP_OFFSET_BELOW) {
|
||||||
|
y2 = actor->currentPos.y + actor->headOffset.y - actor->size.y;
|
||||||
|
} else if (!(flags2 & ACTOR_FLAG_8000)) {
|
||||||
|
y2 = actor->currentPos.y + actor->headOffset.y + actor->size.y;
|
||||||
|
} else {
|
||||||
|
y2 = actor->currentPos.y + actor->headOffset.y + actor->size.y * 2;
|
||||||
|
}
|
||||||
|
z2 = actor->currentPos.z + actor->headOffset.z + 10.0f;
|
||||||
|
|
||||||
|
switch (script->functionTemp[0]) {
|
||||||
|
case 1:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
dispatch_event_actor(actor, EVENT_SWAP_PARTNER);
|
||||||
|
playFX_40(0, x2, y2, z2, hpBoost);
|
||||||
|
func_802D7460(x1, y1, z1, hpBoost);
|
||||||
|
script->functionTemp[3] = 30;
|
||||||
|
script->functionTemp[0] = 2;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
func_8024E40C(2);
|
||||||
|
btl_cam_move(15);
|
||||||
|
actor->currentHP += hpBoost;
|
||||||
|
if (actor->maxHP < actor->currentHP) {
|
||||||
|
actor->currentHP = actor->maxHP;
|
||||||
|
}
|
||||||
|
func_802D74C0(x1, y1, z1, hpBoost);
|
||||||
|
script->functionTemp[3] = 15;
|
||||||
|
script->functionTemp[0] = 3;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
if (script->functionTemp[3] == 0) {
|
||||||
|
message = 0x20;
|
||||||
|
if (D_8029FBD0 == 0) {
|
||||||
|
message = 0x1F;
|
||||||
|
}
|
||||||
|
btl_show_variable_battle_message(message, 60, hpBoost);
|
||||||
|
script->functionTemp[0] = 4;
|
||||||
|
} else {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
if (btl_is_popup_displayed() == 0) {
|
||||||
|
script->functionTemp[3] = 10;
|
||||||
|
script->functionTemp[0] = 5;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
if (script->functionTemp[3] != 0) {
|
||||||
|
script->functionTemp[3]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if ((actor->onHitScript == NULL) || !does_script_exist(actor->onHitID)) {
|
||||||
|
D_8029FBD4 = 0;
|
||||||
|
return ApiStatus_DONE2;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return ApiStatus_BLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
ApiStatus WaitForBuffDone(Evt* script, s32 isInitialCall) {
|
ApiStatus WaitForBuffDone(Evt* script, s32 isInitialCall) {
|
||||||
return (D_8029FBD4 == 0) * ApiStatus_DONE2;
|
return (D_8029FBD4 == 0) * ApiStatus_DONE2;
|
||||||
|
@ -1,330 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.section .rodata
|
|
||||||
|
|
||||||
.word 0
|
|
||||||
|
|
||||||
glabel jtbl_8029D820
|
|
||||||
.word L8027047C_19ED5C, L802704C8_19EDA8, L80270558_19EE38, L80270580_19EE60, L802705AC_19EE8C, 0
|
|
||||||
|
|
||||||
.section .text
|
|
||||||
|
|
||||||
glabel BoostDefense
|
|
||||||
/* 19EA54 80270174 27BDFFC0 */ addiu $sp, $sp, -0x40
|
|
||||||
/* 19EA58 80270178 AFB20020 */ sw $s2, 0x20($sp)
|
|
||||||
/* 19EA5C 8027017C 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19EA60 80270180 AFBF0024 */ sw $ra, 0x24($sp)
|
|
||||||
/* 19EA64 80270184 AFB1001C */ sw $s1, 0x1c($sp)
|
|
||||||
/* 19EA68 80270188 AFB00018 */ sw $s0, 0x18($sp)
|
|
||||||
/* 19EA6C 8027018C F7B80038 */ sdc1 $f24, 0x38($sp)
|
|
||||||
/* 19EA70 80270190 F7B60030 */ sdc1 $f22, 0x30($sp)
|
|
||||||
/* 19EA74 80270194 F7B40028 */ sdc1 $f20, 0x28($sp)
|
|
||||||
/* 19EA78 80270198 8E51000C */ lw $s1, 0xc($s2)
|
|
||||||
/* 19EA7C 8027019C 54A00001 */ bnel $a1, $zero, .L802701A4
|
|
||||||
/* 19EA80 802701A0 AE400070 */ sw $zero, 0x70($s2)
|
|
||||||
.L802701A4:
|
|
||||||
/* 19EA84 802701A4 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19EA88 802701A8 1440002D */ bnez $v0, .L80270260
|
|
||||||
/* 19EA8C 802701AC 00000000 */ nop
|
|
||||||
/* 19EA90 802701B0 8E250000 */ lw $a1, ($s1)
|
|
||||||
/* 19EA94 802701B4 26310004 */ addiu $s1, $s1, 4
|
|
||||||
/* 19EA98 802701B8 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19EA9C 802701BC 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19EAA0 802701C0 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19EAA4 802701C4 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19EAA8 802701C8 16020002 */ bne $s0, $v0, .L802701D4
|
|
||||||
/* 19EAAC 802701CC 00000000 */ nop
|
|
||||||
/* 19EAB0 802701D0 8E500148 */ lw $s0, 0x148($s2)
|
|
||||||
.L802701D4:
|
|
||||||
/* 19EAB4 802701D4 8E250000 */ lw $a1, ($s1)
|
|
||||||
/* 19EAB8 802701D8 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19EABC 802701DC 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19EAC0 802701E0 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19EAC4 802701E4 0C09A75B */ jal get_actor
|
|
||||||
/* 19EAC8 802701E8 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19EACC 802701EC 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19EAD0 802701F0 24040008 */ addiu $a0, $zero, 8
|
|
||||||
/* 19EAD4 802701F4 AE500074 */ sw $s0, 0x74($s2)
|
|
||||||
/* 19EAD8 802701F8 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19EADC 802701FC AE510078 */ sw $s1, 0x78($s2)
|
|
||||||
/* 19EAE0 80270200 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19EAE4 80270204 2404000C */ addiu $a0, $zero, 0xc
|
|
||||||
/* 19EAE8 80270208 86040192 */ lh $a0, 0x192($s0)
|
|
||||||
/* 19EAEC 8027020C 0C09390F */ jal btl_cam_target_actor
|
|
||||||
/* 19EAF0 80270210 00000000 */ nop
|
|
||||||
/* 19EAF4 80270214 0C093965 */ jal btl_cam_set_zoom
|
|
||||||
/* 19EAF8 80270218 240400FA */ addiu $a0, $zero, 0xfa
|
|
||||||
/* 19EAFC 8027021C 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19EB00 80270220 2404000A */ addiu $a0, $zero, 0xa
|
|
||||||
/* 19EB04 80270224 0C093983 */ jal func_8024E60C
|
|
||||||
/* 19EB08 80270228 00000000 */ nop
|
|
||||||
/* 19EB0C 8027022C 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 19EB10 80270230 30420800 */ andi $v0, $v0, 0x800
|
|
||||||
/* 19EB14 80270234 10400004 */ beqz $v0, .L80270248
|
|
||||||
/* 19EB18 80270238 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19EB1C 8027023C 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19EB20 80270240 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 19EB24 80270244 24020001 */ addiu $v0, $zero, 1
|
|
||||||
.L80270248:
|
|
||||||
/* 19EB28 80270248 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19EB2C 8027024C A022FBD4 */ sb $v0, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19EB30 80270250 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19EB34 80270254 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19EB38 80270258 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19EB3C 8027025C AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
.L80270260:
|
|
||||||
/* 19EB40 80270260 0C09A75B */ jal get_actor
|
|
||||||
/* 19EB44 80270264 8E440148 */ lw $a0, 0x148($s2)
|
|
||||||
/* 19EB48 80270268 8E500074 */ lw $s0, 0x74($s2)
|
|
||||||
/* 19EB4C 8027026C 8E510078 */ lw $s1, 0x78($s2)
|
|
||||||
/* 19EB50 80270270 86020150 */ lh $v0, 0x150($s0)
|
|
||||||
/* 19EB54 80270274 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 19EB58 80270278 C6000144 */ lwc1 $f0, 0x144($s0)
|
|
||||||
/* 19EB5C 8027027C 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EB60 80270280 00000000 */ nop
|
|
||||||
/* 19EB64 80270284 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EB68 80270288 30620800 */ andi $v0, $v1, 0x800
|
|
||||||
/* 19EB6C 8027028C 1040000E */ beqz $v0, .L802702C8
|
|
||||||
/* 19EB70 80270290 46020280 */ add.s $f10, $f0, $f2
|
|
||||||
/* 19EB74 80270294 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19EB78 80270298 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19EB7C 8027029C 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19EB80 802702A0 00000000 */ nop
|
|
||||||
/* 19EB84 802702A4 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19EB88 802702A8 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19EB8C 802702AC 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19EB90 802702B0 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19EB94 802702B4 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19EB98 802702B8 00000000 */ nop
|
|
||||||
/* 19EB9C 802702BC 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19EBA0 802702C0 0809C0CD */ j .L80270334
|
|
||||||
/* 19EBA4 802702C4 46001181 */ sub.s $f6, $f2, $f0
|
|
||||||
.L802702C8:
|
|
||||||
/* 19EBA8 802702C8 30628000 */ andi $v0, $v1, 0x8000
|
|
||||||
/* 19EBAC 802702CC 1440000E */ bnez $v0, .L80270308
|
|
||||||
/* 19EBB0 802702D0 00000000 */ nop
|
|
||||||
/* 19EBB4 802702D4 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19EBB8 802702D8 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19EBBC 802702DC 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19EBC0 802702E0 00000000 */ nop
|
|
||||||
/* 19EBC4 802702E4 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19EBC8 802702E8 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19EBCC 802702EC 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19EBD0 802702F0 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19EBD4 802702F4 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19EBD8 802702F8 00000000 */ nop
|
|
||||||
/* 19EBDC 802702FC 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19EBE0 80270300 0809C0CD */ j .L80270334
|
|
||||||
/* 19EBE4 80270304 46020180 */ add.s $f6, $f0, $f2
|
|
||||||
.L80270308:
|
|
||||||
/* 19EBE8 80270308 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19EBEC 8027030C C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19EBF0 80270310 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EBF4 80270314 00000000 */ nop
|
|
||||||
/* 19EBF8 80270318 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EBFC 8027031C 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19EC00 80270320 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19EC04 80270324 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EC08 80270328 00000000 */ nop
|
|
||||||
/* 19EC0C 8027032C 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EC10 80270330 46020180 */ add.s $f6, $f0, $f2
|
|
||||||
.L80270334:
|
|
||||||
/* 19EC14 80270334 86020154 */ lh $v0, 0x154($s0)
|
|
||||||
/* 19EC18 80270338 86030150 */ lh $v1, 0x150($s0)
|
|
||||||
/* 19EC1C 8027033C C600014C */ lwc1 $f0, 0x14c($s0)
|
|
||||||
/* 19EC20 80270340 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EC24 80270344 00000000 */ nop
|
|
||||||
/* 19EC28 80270348 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EC2C 8027034C 44832000 */ mtc1 $v1, $f4
|
|
||||||
/* 19EC30 80270350 00000000 */ nop
|
|
||||||
/* 19EC34 80270354 46802120 */ cvt.s.w $f4, $f4
|
|
||||||
/* 19EC38 80270358 92020190 */ lbu $v0, 0x190($s0)
|
|
||||||
/* 19EC3C 8027035C 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19EC40 80270360 3C014120 */ lui $at, 0x4120
|
|
||||||
/* 19EC44 80270364 44811000 */ mtc1 $at, $f2
|
|
||||||
/* 19EC48 80270368 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 19EC4C 8027036C 46020200 */ add.s $f8, $f0, $f2
|
|
||||||
/* 19EC50 80270370 C6000144 */ lwc1 $f0, 0x144($s0)
|
|
||||||
/* 19EC54 80270374 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19EC58 80270378 46040000 */ add.s $f0, $f0, $f4
|
|
||||||
/* 19EC5C 8027037C 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EC60 80270380 00000000 */ nop
|
|
||||||
/* 19EC64 80270384 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EC68 80270388 30620800 */ andi $v0, $v1, 0x800
|
|
||||||
/* 19EC6C 8027038C 1040000D */ beqz $v0, .L802703C4
|
|
||||||
/* 19EC70 80270390 46020600 */ add.s $f24, $f0, $f2
|
|
||||||
/* 19EC74 80270394 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19EC78 80270398 C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19EC7C 8027039C 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EC80 802703A0 00000000 */ nop
|
|
||||||
/* 19EC84 802703A4 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EC88 802703A8 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19EC8C 802703AC 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19EC90 802703B0 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EC94 802703B4 00000000 */ nop
|
|
||||||
/* 19EC98 802703B8 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EC9C 802703BC 0809C10C */ j .L80270430
|
|
||||||
/* 19ECA0 802703C0 46020501 */ sub.s $f20, $f0, $f2
|
|
||||||
.L802703C4:
|
|
||||||
/* 19ECA4 802703C4 30628000 */ andi $v0, $v1, 0x8000
|
|
||||||
/* 19ECA8 802703C8 1440000D */ bnez $v0, .L80270400
|
|
||||||
/* 19ECAC 802703CC 00000000 */ nop
|
|
||||||
/* 19ECB0 802703D0 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19ECB4 802703D4 C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19ECB8 802703D8 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19ECBC 802703DC 00000000 */ nop
|
|
||||||
/* 19ECC0 802703E0 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19ECC4 802703E4 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19ECC8 802703E8 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19ECCC 802703EC 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19ECD0 802703F0 00000000 */ nop
|
|
||||||
/* 19ECD4 802703F4 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19ECD8 802703F8 0809C10C */ j .L80270430
|
|
||||||
/* 19ECDC 802703FC 46001500 */ add.s $f20, $f2, $f0
|
|
||||||
.L80270400:
|
|
||||||
/* 19ECE0 80270400 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19ECE4 80270404 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19ECE8 80270408 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19ECEC 8027040C 00000000 */ nop
|
|
||||||
/* 19ECF0 80270410 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19ECF4 80270414 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19ECF8 80270418 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19ECFC 8027041C 00021040 */ sll $v0, $v0, 1
|
|
||||||
/* 19ED00 80270420 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19ED04 80270424 00000000 */ nop
|
|
||||||
/* 19ED08 80270428 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19ED0C 8027042C 46001500 */ add.s $f20, $f2, $f0
|
|
||||||
.L80270430:
|
|
||||||
/* 19ED10 80270430 86020154 */ lh $v0, 0x154($s0)
|
|
||||||
/* 19ED14 80270434 C600014C */ lwc1 $f0, 0x14c($s0)
|
|
||||||
/* 19ED18 80270438 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19ED1C 8027043C 00000000 */ nop
|
|
||||||
/* 19ED20 80270440 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19ED24 80270444 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19ED28 80270448 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19ED2C 8027044C 3C014120 */ lui $at, 0x4120
|
|
||||||
/* 19ED30 80270450 44811000 */ mtc1 $at, $f2
|
|
||||||
/* 19ED34 80270454 2443FFFF */ addiu $v1, $v0, -1
|
|
||||||
/* 19ED38 80270458 2C620005 */ sltiu $v0, $v1, 5
|
|
||||||
/* 19ED3C 8027045C 10400063 */ beqz $v0, .L802705EC
|
|
||||||
/* 19ED40 80270460 46020580 */ add.s $f22, $f0, $f2
|
|
||||||
/* 19ED44 80270464 00031080 */ sll $v0, $v1, 2
|
|
||||||
/* 19ED48 80270468 3C01802A */ lui $at, %hi(jtbl_8029D820)
|
|
||||||
/* 19ED4C 8027046C 00220821 */ addu $at, $at, $v0
|
|
||||||
/* 19ED50 80270470 8C22D820 */ lw $v0, %lo(jtbl_8029D820)($at)
|
|
||||||
/* 19ED54 80270474 00400008 */ jr $v0
|
|
||||||
/* 19ED58 80270478 00000000 */ nop
|
|
||||||
glabel L8027047C_19ED5C
|
|
||||||
/* 19ED5C 8027047C 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19ED60 80270480 1440004D */ bnez $v0, .L802705B8
|
|
||||||
/* 19ED64 80270484 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19ED68 80270488 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19ED6C 8027048C 44055000 */ mfc1 $a1, $f10
|
|
||||||
/* 19ED70 80270490 44063000 */ mfc1 $a2, $f6
|
|
||||||
/* 19ED74 80270494 44074000 */ mfc1 $a3, $f8
|
|
||||||
/* 19ED78 80270498 3C013F80 */ lui $at, 0x3f80
|
|
||||||
/* 19ED7C 8027049C 44810000 */ mtc1 $at, $f0
|
|
||||||
/* 19ED80 802704A0 2410001E */ addiu $s0, $zero, 0x1e
|
|
||||||
/* 19ED84 802704A4 AFB00014 */ sw $s0, 0x14($sp)
|
|
||||||
/* 19ED88 802704A8 0C01C2EC */ jal playFX_33
|
|
||||||
/* 19ED8C 802704AC E7A00010 */ swc1 $f0, 0x10($sp)
|
|
||||||
/* 19ED90 802704B0 0C0938F6 */ jal func_8024E3D8
|
|
||||||
/* 19ED94 802704B4 24040013 */ addiu $a0, $zero, 0x13
|
|
||||||
/* 19ED98 802704B8 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19ED9C 802704BC AE50007C */ sw $s0, 0x7c($s2)
|
|
||||||
/* 19EDA0 802704C0 0809C17B */ j .L802705EC
|
|
||||||
/* 19EDA4 802704C4 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L802704C8_19EDA8
|
|
||||||
/* 19EDA8 802704C8 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19EDAC 802704CC 1440003A */ bnez $v0, .L802705B8
|
|
||||||
/* 19EDB0 802704D0 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19EDB4 802704D4 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19EDB8 802704D8 0C09DC58 */ jal dispatch_event_actor
|
|
||||||
/* 19EDBC 802704DC 2405003F */ addiu $a1, $zero, 0x3f
|
|
||||||
/* 19EDC0 802704E0 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19EDC4 802704E4 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19EDC8 802704E8 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19EDCC 802704EC 2404000F */ addiu $a0, $zero, 0xf
|
|
||||||
/* 19EDD0 802704F0 92020222 */ lbu $v0, 0x222($s0)
|
|
||||||
/* 19EDD4 802704F4 24030001 */ addiu $v1, $zero, 1
|
|
||||||
/* 19EDD8 802704F8 A2030220 */ sb $v1, 0x220($s0)
|
|
||||||
/* 19EDDC 802704FC 00511021 */ addu $v0, $v0, $s1
|
|
||||||
/* 19EDE0 80270500 A2020222 */ sb $v0, 0x222($s0)
|
|
||||||
/* 19EDE4 80270504 00021600 */ sll $v0, $v0, 0x18
|
|
||||||
/* 19EDE8 80270508 00021603 */ sra $v0, $v0, 0x18
|
|
||||||
/* 19EDEC 8027050C 28420015 */ slti $v0, $v0, 0x15
|
|
||||||
/* 19EDF0 80270510 14400003 */ bnez $v0, .L80270520
|
|
||||||
/* 19EDF4 80270514 26240005 */ addiu $a0, $s1, 5
|
|
||||||
/* 19EDF8 80270518 24020014 */ addiu $v0, $zero, 0x14
|
|
||||||
/* 19EDFC 8027051C A2020222 */ sb $v0, 0x222($s0)
|
|
||||||
.L80270520:
|
|
||||||
/* 19EE00 80270520 4405C000 */ mfc1 $a1, $f24
|
|
||||||
/* 19EE04 80270524 4406A000 */ mfc1 $a2, $f20
|
|
||||||
/* 19EE08 80270528 4407B000 */ mfc1 $a3, $f22
|
|
||||||
/* 19EE0C 8027052C 3C013F80 */ lui $at, 0x3f80
|
|
||||||
/* 19EE10 80270530 44810000 */ mtc1 $at, $f0
|
|
||||||
/* 19EE14 80270534 2402003C */ addiu $v0, $zero, 0x3c
|
|
||||||
/* 19EE18 80270538 AFA20014 */ sw $v0, 0x14($sp)
|
|
||||||
/* 19EE1C 8027053C 0C01C634 */ jal playFX_56
|
|
||||||
/* 19EE20 80270540 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
||||||
/* 19EE24 80270544 2402000F */ addiu $v0, $zero, 0xf
|
|
||||||
/* 19EE28 80270548 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19EE2C 8027054C 24020003 */ addiu $v0, $zero, 3
|
|
||||||
/* 19EE30 80270550 0809C17B */ j .L802705EC
|
|
||||||
/* 19EE34 80270554 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270558_19EE38
|
|
||||||
/* 19EE38 80270558 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19EE3C 8027055C 14400016 */ bnez $v0, .L802705B8
|
|
||||||
/* 19EE40 80270560 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19EE44 80270564 2404001E */ addiu $a0, $zero, 0x1e
|
|
||||||
/* 19EE48 80270568 2405003C */ addiu $a1, $zero, 0x3c
|
|
||||||
/* 19EE4C 8027056C 0C093E81 */ jal btl_show_variable_battle_message
|
|
||||||
/* 19EE50 80270570 0220302D */ daddu $a2, $s1, $zero
|
|
||||||
/* 19EE54 80270574 24020004 */ addiu $v0, $zero, 4
|
|
||||||
/* 19EE58 80270578 0809C17B */ j .L802705EC
|
|
||||||
/* 19EE5C 8027057C AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270580_19EE60
|
|
||||||
/* 19EE60 80270580 0C093EAD */ jal btl_is_popup_displayed
|
|
||||||
/* 19EE64 80270584 00000000 */ nop
|
|
||||||
/* 19EE68 80270588 14400019 */ bnez $v0, .L802705F0
|
|
||||||
/* 19EE6C 8027058C 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
/* 19EE70 80270590 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19EE74 80270594 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19EE78 80270598 2402000A */ addiu $v0, $zero, 0xa
|
|
||||||
/* 19EE7C 8027059C AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19EE80 802705A0 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19EE84 802705A4 0809C17B */ j .L802705EC
|
|
||||||
/* 19EE88 802705A8 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L802705AC_19EE8C
|
|
||||||
/* 19EE8C 802705AC 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19EE90 802705B0 10400003 */ beqz $v0, .L802705C0
|
|
||||||
/* 19EE94 802705B4 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
.L802705B8:
|
|
||||||
/* 19EE98 802705B8 0809C17B */ j .L802705EC
|
|
||||||
/* 19EE9C 802705BC AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
.L802705C0:
|
|
||||||
/* 19EEA0 802705C0 8E0201D8 */ lw $v0, 0x1d8($s0)
|
|
||||||
/* 19EEA4 802705C4 10400005 */ beqz $v0, .L802705DC
|
|
||||||
/* 19EEA8 802705C8 00000000 */ nop
|
|
||||||
/* 19EEAC 802705CC 0C0B1059 */ jal does_script_exist
|
|
||||||
/* 19EEB0 802705D0 8E0401E8 */ lw $a0, 0x1e8($s0)
|
|
||||||
/* 19EEB4 802705D4 14400006 */ bnez $v0, .L802705F0
|
|
||||||
/* 19EEB8 802705D8 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L802705DC:
|
|
||||||
/* 19EEBC 802705DC 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19EEC0 802705E0 A020FBD4 */ sb $zero, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19EEC4 802705E4 0809C17C */ j .L802705F0
|
|
||||||
/* 19EEC8 802705E8 24020002 */ addiu $v0, $zero, 2
|
|
||||||
.L802705EC:
|
|
||||||
/* 19EECC 802705EC 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L802705F0:
|
|
||||||
/* 19EED0 802705F0 8FBF0024 */ lw $ra, 0x24($sp)
|
|
||||||
/* 19EED4 802705F4 8FB20020 */ lw $s2, 0x20($sp)
|
|
||||||
/* 19EED8 802705F8 8FB1001C */ lw $s1, 0x1c($sp)
|
|
||||||
/* 19EEDC 802705FC 8FB00018 */ lw $s0, 0x18($sp)
|
|
||||||
/* 19EEE0 80270600 D7B80038 */ ldc1 $f24, 0x38($sp)
|
|
||||||
/* 19EEE4 80270604 D7B60030 */ ldc1 $f22, 0x30($sp)
|
|
||||||
/* 19EEE8 80270608 D7B40028 */ ldc1 $f20, 0x28($sp)
|
|
||||||
/* 19EEEC 8027060C 03E00008 */ jr $ra
|
|
||||||
/* 19EEF0 80270610 27BD0040 */ addiu $sp, $sp, 0x40
|
|
@ -1,238 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.section .rodata
|
|
||||||
|
|
||||||
glabel jtbl_8029D850
|
|
||||||
.word L80270B5C_19F43C, L80270BA8_19F488, L80270BF4_19F4D4, L80270C1C_19F4FC, L80270C48_19F528, 0
|
|
||||||
|
|
||||||
.section .text
|
|
||||||
|
|
||||||
glabel ElectrifyActor
|
|
||||||
/* 19F23C 8027095C 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19F240 80270960 AFB20020 */ sw $s2, 0x20($sp)
|
|
||||||
/* 19F244 80270964 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19F248 80270968 AFBF0024 */ sw $ra, 0x24($sp)
|
|
||||||
/* 19F24C 8027096C AFB1001C */ sw $s1, 0x1c($sp)
|
|
||||||
/* 19F250 80270970 AFB00018 */ sw $s0, 0x18($sp)
|
|
||||||
/* 19F254 80270974 8E51000C */ lw $s1, 0xc($s2)
|
|
||||||
/* 19F258 80270978 54A00001 */ bnel $a1, $zero, .L80270980
|
|
||||||
/* 19F25C 8027097C AE400070 */ sw $zero, 0x70($s2)
|
|
||||||
.L80270980:
|
|
||||||
/* 19F260 80270980 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19F264 80270984 1440002D */ bnez $v0, .L80270A3C
|
|
||||||
/* 19F268 80270988 00000000 */ nop
|
|
||||||
/* 19F26C 8027098C 8E250000 */ lw $a1, ($s1)
|
|
||||||
/* 19F270 80270990 26310004 */ addiu $s1, $s1, 4
|
|
||||||
/* 19F274 80270994 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19F278 80270998 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19F27C 8027099C 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19F280 802709A0 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19F284 802709A4 16020002 */ bne $s0, $v0, .L802709B0
|
|
||||||
/* 19F288 802709A8 00000000 */ nop
|
|
||||||
/* 19F28C 802709AC 8E500148 */ lw $s0, 0x148($s2)
|
|
||||||
.L802709B0:
|
|
||||||
/* 19F290 802709B0 8E250000 */ lw $a1, ($s1)
|
|
||||||
/* 19F294 802709B4 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19F298 802709B8 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19F29C 802709BC 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19F2A0 802709C0 0C09A75B */ jal get_actor
|
|
||||||
/* 19F2A4 802709C4 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19F2A8 802709C8 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19F2AC 802709CC 24040008 */ addiu $a0, $zero, 8
|
|
||||||
/* 19F2B0 802709D0 AE500074 */ sw $s0, 0x74($s2)
|
|
||||||
/* 19F2B4 802709D4 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F2B8 802709D8 AE510078 */ sw $s1, 0x78($s2)
|
|
||||||
/* 19F2BC 802709DC 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19F2C0 802709E0 2404000C */ addiu $a0, $zero, 0xc
|
|
||||||
/* 19F2C4 802709E4 86040192 */ lh $a0, 0x192($s0)
|
|
||||||
/* 19F2C8 802709E8 0C09390F */ jal btl_cam_target_actor
|
|
||||||
/* 19F2CC 802709EC 00000000 */ nop
|
|
||||||
/* 19F2D0 802709F0 0C093965 */ jal btl_cam_set_zoom
|
|
||||||
/* 19F2D4 802709F4 240400FA */ addiu $a0, $zero, 0xfa
|
|
||||||
/* 19F2D8 802709F8 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19F2DC 802709FC 2404000A */ addiu $a0, $zero, 0xa
|
|
||||||
/* 19F2E0 80270A00 0C093983 */ jal func_8024E60C
|
|
||||||
/* 19F2E4 80270A04 00000000 */ nop
|
|
||||||
/* 19F2E8 80270A08 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 19F2EC 80270A0C 30420800 */ andi $v0, $v0, 0x800
|
|
||||||
/* 19F2F0 80270A10 10400004 */ beqz $v0, .L80270A24
|
|
||||||
/* 19F2F4 80270A14 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19F2F8 80270A18 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19F2FC 80270A1C 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 19F300 80270A20 24020001 */ addiu $v0, $zero, 1
|
|
||||||
.L80270A24:
|
|
||||||
/* 19F304 80270A24 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19F308 80270A28 A022FBD4 */ sb $v0, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19F30C 80270A2C 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19F310 80270A30 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F314 80270A34 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19F318 80270A38 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
.L80270A3C:
|
|
||||||
/* 19F31C 80270A3C 0C09A75B */ jal get_actor
|
|
||||||
/* 19F320 80270A40 8E440148 */ lw $a0, 0x148($s2)
|
|
||||||
/* 19F324 80270A44 8E500074 */ lw $s0, 0x74($s2)
|
|
||||||
/* 19F328 80270A48 8E510078 */ lw $s1, 0x78($s2)
|
|
||||||
/* 19F32C 80270A4C 86020150 */ lh $v0, 0x150($s0)
|
|
||||||
/* 19F330 80270A50 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 19F334 80270A54 C6000144 */ lwc1 $f0, 0x144($s0)
|
|
||||||
/* 19F338 80270A58 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F33C 80270A5C 00000000 */ nop
|
|
||||||
/* 19F340 80270A60 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F344 80270A64 30620800 */ andi $v0, $v1, 0x800
|
|
||||||
/* 19F348 80270A68 1040000E */ beqz $v0, .L80270AA4
|
|
||||||
/* 19F34C 80270A6C 46020180 */ add.s $f6, $f0, $f2
|
|
||||||
/* 19F350 80270A70 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F354 80270A74 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F358 80270A78 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F35C 80270A7C 00000000 */ nop
|
|
||||||
/* 19F360 80270A80 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F364 80270A84 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F368 80270A88 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F36C 80270A8C 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F370 80270A90 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F374 80270A94 00000000 */ nop
|
|
||||||
/* 19F378 80270A98 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F37C 80270A9C 0809C2C4 */ j .L80270B10
|
|
||||||
/* 19F380 80270AA0 46001101 */ sub.s $f4, $f2, $f0
|
|
||||||
.L80270AA4:
|
|
||||||
/* 19F384 80270AA4 30628000 */ andi $v0, $v1, 0x8000
|
|
||||||
/* 19F388 80270AA8 1440000E */ bnez $v0, .L80270AE4
|
|
||||||
/* 19F38C 80270AAC 00000000 */ nop
|
|
||||||
/* 19F390 80270AB0 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F394 80270AB4 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F398 80270AB8 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F39C 80270ABC 00000000 */ nop
|
|
||||||
/* 19F3A0 80270AC0 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F3A4 80270AC4 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F3A8 80270AC8 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F3AC 80270ACC 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F3B0 80270AD0 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F3B4 80270AD4 00000000 */ nop
|
|
||||||
/* 19F3B8 80270AD8 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F3BC 80270ADC 0809C2C4 */ j .L80270B10
|
|
||||||
/* 19F3C0 80270AE0 46020100 */ add.s $f4, $f0, $f2
|
|
||||||
.L80270AE4:
|
|
||||||
/* 19F3C4 80270AE4 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F3C8 80270AE8 C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19F3CC 80270AEC 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F3D0 80270AF0 00000000 */ nop
|
|
||||||
/* 19F3D4 80270AF4 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F3D8 80270AF8 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F3DC 80270AFC 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F3E0 80270B00 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F3E4 80270B04 00000000 */ nop
|
|
||||||
/* 19F3E8 80270B08 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F3EC 80270B0C 46020100 */ add.s $f4, $f0, $f2
|
|
||||||
.L80270B10:
|
|
||||||
/* 19F3F0 80270B10 86020154 */ lh $v0, 0x154($s0)
|
|
||||||
/* 19F3F4 80270B14 C600014C */ lwc1 $f0, 0x14c($s0)
|
|
||||||
/* 19F3F8 80270B18 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F3FC 80270B1C 00000000 */ nop
|
|
||||||
/* 19F400 80270B20 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F404 80270B24 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F408 80270B28 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19F40C 80270B2C 3C014120 */ lui $at, 0x4120
|
|
||||||
/* 19F410 80270B30 44811000 */ mtc1 $at, $f2
|
|
||||||
/* 19F414 80270B34 2443FFFF */ addiu $v1, $v0, -1
|
|
||||||
/* 19F418 80270B38 2C620005 */ sltiu $v0, $v1, 5
|
|
||||||
/* 19F41C 80270B3C 10400052 */ beqz $v0, .L80270C88
|
|
||||||
/* 19F420 80270B40 46020080 */ add.s $f2, $f0, $f2
|
|
||||||
/* 19F424 80270B44 00031080 */ sll $v0, $v1, 2
|
|
||||||
/* 19F428 80270B48 3C01802A */ lui $at, %hi(jtbl_8029D850)
|
|
||||||
/* 19F42C 80270B4C 00220821 */ addu $at, $at, $v0
|
|
||||||
/* 19F430 80270B50 8C22D850 */ lw $v0, %lo(jtbl_8029D850)($at)
|
|
||||||
/* 19F434 80270B54 00400008 */ jr $v0
|
|
||||||
/* 19F438 80270B58 00000000 */ nop
|
|
||||||
glabel L80270B5C_19F43C
|
|
||||||
/* 19F43C 80270B5C 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F440 80270B60 1440003C */ bnez $v0, .L80270C54
|
|
||||||
/* 19F444 80270B64 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F448 80270B68 24040008 */ addiu $a0, $zero, 8
|
|
||||||
/* 19F44C 80270B6C 44053000 */ mfc1 $a1, $f6
|
|
||||||
/* 19F450 80270B70 44062000 */ mfc1 $a2, $f4
|
|
||||||
/* 19F454 80270B74 3C013F80 */ lui $at, 0x3f80
|
|
||||||
/* 19F458 80270B78 44810000 */ mtc1 $at, $f0
|
|
||||||
/* 19F45C 80270B7C 44071000 */ mfc1 $a3, $f2
|
|
||||||
/* 19F460 80270B80 2410001E */ addiu $s0, $zero, 0x1e
|
|
||||||
/* 19F464 80270B84 AFB00014 */ sw $s0, 0x14($sp)
|
|
||||||
/* 19F468 80270B88 0C01C64C */ jal playFX_57
|
|
||||||
/* 19F46C 80270B8C E7A00010 */ swc1 $f0, 0x10($sp)
|
|
||||||
/* 19F470 80270B90 0C0938F6 */ jal func_8024E3D8
|
|
||||||
/* 19F474 80270B94 24040013 */ addiu $a0, $zero, 0x13
|
|
||||||
/* 19F478 80270B98 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19F47C 80270B9C AE50007C */ sw $s0, 0x7c($s2)
|
|
||||||
/* 19F480 80270BA0 0809C322 */ j .L80270C88
|
|
||||||
/* 19F484 80270BA4 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270BA8_19F488
|
|
||||||
/* 19F488 80270BA8 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F48C 80270BAC 14400029 */ bnez $v0, .L80270C54
|
|
||||||
/* 19F490 80270BB0 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F494 80270BB4 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19F498 80270BB8 0C09DC58 */ jal dispatch_event_actor
|
|
||||||
/* 19F49C 80270BBC 2405003F */ addiu $a1, $zero, 0x3f
|
|
||||||
/* 19F4A0 80270BC0 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F4A4 80270BC4 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19F4A8 80270BC8 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19F4AC 80270BCC 2404000F */ addiu $a0, $zero, 0xf
|
|
||||||
/* 19F4B0 80270BD0 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19F4B4 80270BD4 2405000B */ addiu $a1, $zero, 0xb
|
|
||||||
/* 19F4B8 80270BD8 0C0997D0 */ jal inflict_status
|
|
||||||
/* 19F4BC 80270BDC 0220302D */ daddu $a2, $s1, $zero
|
|
||||||
/* 19F4C0 80270BE0 2402000F */ addiu $v0, $zero, 0xf
|
|
||||||
/* 19F4C4 80270BE4 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F4C8 80270BE8 24020003 */ addiu $v0, $zero, 3
|
|
||||||
/* 19F4CC 80270BEC 0809C322 */ j .L80270C88
|
|
||||||
/* 19F4D0 80270BF0 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270BF4_19F4D4
|
|
||||||
/* 19F4D4 80270BF4 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F4D8 80270BF8 14400016 */ bnez $v0, .L80270C54
|
|
||||||
/* 19F4DC 80270BFC 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F4E0 80270C00 24040022 */ addiu $a0, $zero, 0x22
|
|
||||||
/* 19F4E4 80270C04 2405003C */ addiu $a1, $zero, 0x3c
|
|
||||||
/* 19F4E8 80270C08 0C093E81 */ jal btl_show_variable_battle_message
|
|
||||||
/* 19F4EC 80270C0C 0220302D */ daddu $a2, $s1, $zero
|
|
||||||
/* 19F4F0 80270C10 24020004 */ addiu $v0, $zero, 4
|
|
||||||
/* 19F4F4 80270C14 0809C322 */ j .L80270C88
|
|
||||||
/* 19F4F8 80270C18 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270C1C_19F4FC
|
|
||||||
/* 19F4FC 80270C1C 0C093EAD */ jal btl_is_popup_displayed
|
|
||||||
/* 19F500 80270C20 00000000 */ nop
|
|
||||||
/* 19F504 80270C24 14400019 */ bnez $v0, .L80270C8C
|
|
||||||
/* 19F508 80270C28 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
/* 19F50C 80270C2C 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F510 80270C30 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19F514 80270C34 2402000A */ addiu $v0, $zero, 0xa
|
|
||||||
/* 19F518 80270C38 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F51C 80270C3C 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19F520 80270C40 0809C322 */ j .L80270C88
|
|
||||||
/* 19F524 80270C44 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270C48_19F528
|
|
||||||
/* 19F528 80270C48 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F52C 80270C4C 10400003 */ beqz $v0, .L80270C5C
|
|
||||||
/* 19F530 80270C50 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
.L80270C54:
|
|
||||||
/* 19F534 80270C54 0809C322 */ j .L80270C88
|
|
||||||
/* 19F538 80270C58 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
.L80270C5C:
|
|
||||||
/* 19F53C 80270C5C 8E0201D8 */ lw $v0, 0x1d8($s0)
|
|
||||||
/* 19F540 80270C60 10400005 */ beqz $v0, .L80270C78
|
|
||||||
/* 19F544 80270C64 00000000 */ nop
|
|
||||||
/* 19F548 80270C68 0C0B1059 */ jal does_script_exist
|
|
||||||
/* 19F54C 80270C6C 8E0401E8 */ lw $a0, 0x1e8($s0)
|
|
||||||
/* 19F550 80270C70 14400006 */ bnez $v0, .L80270C8C
|
|
||||||
/* 19F554 80270C74 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L80270C78:
|
|
||||||
/* 19F558 80270C78 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19F55C 80270C7C A020FBD4 */ sb $zero, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19F560 80270C80 0809C323 */ j .L80270C8C
|
|
||||||
/* 19F564 80270C84 24020002 */ addiu $v0, $zero, 2
|
|
||||||
.L80270C88:
|
|
||||||
/* 19F568 80270C88 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L80270C8C:
|
|
||||||
/* 19F56C 80270C8C 8FBF0024 */ lw $ra, 0x24($sp)
|
|
||||||
/* 19F570 80270C90 8FB20020 */ lw $s2, 0x20($sp)
|
|
||||||
/* 19F574 80270C94 8FB1001C */ lw $s1, 0x1c($sp)
|
|
||||||
/* 19F578 80270C98 8FB00018 */ lw $s0, 0x18($sp)
|
|
||||||
/* 19F57C 80270C9C 03E00008 */ jr $ra
|
|
||||||
/* 19F580 80270CA0 27BD0028 */ addiu $sp, $sp, 0x28
|
|
@ -1,330 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.section .rodata
|
|
||||||
|
|
||||||
glabel jtbl_8029D868
|
|
||||||
.word L80270FB4_19F894, L8027100C_19F8EC, L80271078_19F958, L802710B0_19F990, L802710D4_19F9B4, 0
|
|
||||||
|
|
||||||
.section .text
|
|
||||||
|
|
||||||
glabel HealActor
|
|
||||||
/* 19F584 80270CA4 27BDFFA0 */ addiu $sp, $sp, -0x60
|
|
||||||
/* 19F588 80270CA8 AFB20020 */ sw $s2, 0x20($sp)
|
|
||||||
/* 19F58C 80270CAC 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19F590 80270CB0 AFBF0028 */ sw $ra, 0x28($sp)
|
|
||||||
/* 19F594 80270CB4 AFB30024 */ sw $s3, 0x24($sp)
|
|
||||||
/* 19F598 80270CB8 AFB1001C */ sw $s1, 0x1c($sp)
|
|
||||||
/* 19F59C 80270CBC AFB00018 */ sw $s0, 0x18($sp)
|
|
||||||
/* 19F5A0 80270CC0 F7BE0058 */ sdc1 $f30, 0x58($sp)
|
|
||||||
/* 19F5A4 80270CC4 F7BC0050 */ sdc1 $f28, 0x50($sp)
|
|
||||||
/* 19F5A8 80270CC8 F7BA0048 */ sdc1 $f26, 0x48($sp)
|
|
||||||
/* 19F5AC 80270CCC F7B80040 */ sdc1 $f24, 0x40($sp)
|
|
||||||
/* 19F5B0 80270CD0 F7B60038 */ sdc1 $f22, 0x38($sp)
|
|
||||||
/* 19F5B4 80270CD4 F7B40030 */ sdc1 $f20, 0x30($sp)
|
|
||||||
/* 19F5B8 80270CD8 8E50000C */ lw $s0, 0xc($s2)
|
|
||||||
/* 19F5BC 80270CDC 54A00001 */ bnel $a1, $zero, .L80270CE4
|
|
||||||
/* 19F5C0 80270CE0 AE400070 */ sw $zero, 0x70($s2)
|
|
||||||
.L80270CE4:
|
|
||||||
/* 19F5C4 80270CE4 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19F5C8 80270CE8 1440002B */ bnez $v0, .L80270D98
|
|
||||||
/* 19F5CC 80270CEC 00000000 */ nop
|
|
||||||
/* 19F5D0 80270CF0 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19F5D4 80270CF4 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19F5D8 80270CF8 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19F5DC 80270CFC 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19F5E0 80270D00 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19F5E4 80270D04 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19F5E8 80270D08 16220002 */ bne $s1, $v0, .L80270D14
|
|
||||||
/* 19F5EC 80270D0C 00000000 */ nop
|
|
||||||
/* 19F5F0 80270D10 8E510148 */ lw $s1, 0x148($s2)
|
|
||||||
.L80270D14:
|
|
||||||
/* 19F5F4 80270D14 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19F5F8 80270D18 26100004 */ addiu $s0, $s0, 4
|
|
||||||
/* 19F5FC 80270D1C 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19F600 80270D20 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19F604 80270D24 0040982D */ daddu $s3, $v0, $zero
|
|
||||||
/* 19F608 80270D28 8E050000 */ lw $a1, ($s0)
|
|
||||||
/* 19F60C 80270D2C 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19F610 80270D30 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19F614 80270D34 3C01802A */ lui $at, %hi(D_8029FBD0)
|
|
||||||
/* 19F618 80270D38 AC22FBD0 */ sw $v0, %lo(D_8029FBD0)($at)
|
|
||||||
/* 19F61C 80270D3C 0C09A75B */ jal get_actor
|
|
||||||
/* 19F620 80270D40 0220202D */ daddu $a0, $s1, $zero
|
|
||||||
/* 19F624 80270D44 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19F628 80270D48 24040008 */ addiu $a0, $zero, 8
|
|
||||||
/* 19F62C 80270D4C AE500074 */ sw $s0, 0x74($s2)
|
|
||||||
/* 19F630 80270D50 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F634 80270D54 AE530078 */ sw $s3, 0x78($s2)
|
|
||||||
/* 19F638 80270D58 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19F63C 80270D5C 2404000C */ addiu $a0, $zero, 0xc
|
|
||||||
/* 19F640 80270D60 86040192 */ lh $a0, 0x192($s0)
|
|
||||||
/* 19F644 80270D64 0C09390F */ jal btl_cam_target_actor
|
|
||||||
/* 19F648 80270D68 00000000 */ nop
|
|
||||||
/* 19F64C 80270D6C 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19F650 80270D70 2404000A */ addiu $a0, $zero, 0xa
|
|
||||||
/* 19F654 80270D74 0C093983 */ jal func_8024E60C
|
|
||||||
/* 19F658 80270D78 00000000 */ nop
|
|
||||||
/* 19F65C 80270D7C 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19F660 80270D80 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19F664 80270D84 A022FBD4 */ sb $v0, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19F668 80270D88 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19F66C 80270D8C AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F670 80270D90 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19F674 80270D94 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
.L80270D98:
|
|
||||||
/* 19F678 80270D98 0C09A75B */ jal get_actor
|
|
||||||
/* 19F67C 80270D9C 8E440148 */ lw $a0, 0x148($s2)
|
|
||||||
/* 19F680 80270DA0 8E500074 */ lw $s0, 0x74($s2)
|
|
||||||
/* 19F684 80270DA4 8E530078 */ lw $s3, 0x78($s2)
|
|
||||||
/* 19F688 80270DA8 86020150 */ lh $v0, 0x150($s0)
|
|
||||||
/* 19F68C 80270DAC 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 19F690 80270DB0 C6000144 */ lwc1 $f0, 0x144($s0)
|
|
||||||
/* 19F694 80270DB4 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F698 80270DB8 00000000 */ nop
|
|
||||||
/* 19F69C 80270DBC 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F6A0 80270DC0 30620800 */ andi $v0, $v1, 0x800
|
|
||||||
/* 19F6A4 80270DC4 1040000E */ beqz $v0, .L80270E00
|
|
||||||
/* 19F6A8 80270DC8 46020780 */ add.s $f30, $f0, $f2
|
|
||||||
/* 19F6AC 80270DCC 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F6B0 80270DD0 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F6B4 80270DD4 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F6B8 80270DD8 00000000 */ nop
|
|
||||||
/* 19F6BC 80270DDC 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F6C0 80270DE0 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F6C4 80270DE4 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F6C8 80270DE8 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F6CC 80270DEC 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F6D0 80270DF0 00000000 */ nop
|
|
||||||
/* 19F6D4 80270DF4 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F6D8 80270DF8 0809C39B */ j .L80270E6C
|
|
||||||
/* 19F6DC 80270DFC 46001601 */ sub.s $f24, $f2, $f0
|
|
||||||
.L80270E00:
|
|
||||||
/* 19F6E0 80270E00 30628000 */ andi $v0, $v1, 0x8000
|
|
||||||
/* 19F6E4 80270E04 1440000E */ bnez $v0, .L80270E40
|
|
||||||
/* 19F6E8 80270E08 00000000 */ nop
|
|
||||||
/* 19F6EC 80270E0C 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F6F0 80270E10 C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F6F4 80270E14 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F6F8 80270E18 00000000 */ nop
|
|
||||||
/* 19F6FC 80270E1C 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F700 80270E20 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F704 80270E24 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F708 80270E28 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F70C 80270E2C 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F710 80270E30 00000000 */ nop
|
|
||||||
/* 19F714 80270E34 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F718 80270E38 0809C39B */ j .L80270E6C
|
|
||||||
/* 19F71C 80270E3C 46020600 */ add.s $f24, $f0, $f2
|
|
||||||
.L80270E40:
|
|
||||||
/* 19F720 80270E40 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F724 80270E44 C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19F728 80270E48 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F72C 80270E4C 00000000 */ nop
|
|
||||||
/* 19F730 80270E50 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F734 80270E54 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F738 80270E58 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F73C 80270E5C 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F740 80270E60 00000000 */ nop
|
|
||||||
/* 19F744 80270E64 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F748 80270E68 46020600 */ add.s $f24, $f0, $f2
|
|
||||||
.L80270E6C:
|
|
||||||
/* 19F74C 80270E6C 86020154 */ lh $v0, 0x154($s0)
|
|
||||||
/* 19F750 80270E70 86030150 */ lh $v1, 0x150($s0)
|
|
||||||
/* 19F754 80270E74 C600014C */ lwc1 $f0, 0x14c($s0)
|
|
||||||
/* 19F758 80270E78 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F75C 80270E7C 00000000 */ nop
|
|
||||||
/* 19F760 80270E80 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F764 80270E84 44832000 */ mtc1 $v1, $f4
|
|
||||||
/* 19F768 80270E88 00000000 */ nop
|
|
||||||
/* 19F76C 80270E8C 46802120 */ cvt.s.w $f4, $f4
|
|
||||||
/* 19F770 80270E90 92020190 */ lbu $v0, 0x190($s0)
|
|
||||||
/* 19F774 80270E94 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F778 80270E98 3C014120 */ lui $at, 0x4120
|
|
||||||
/* 19F77C 80270E9C 44811000 */ mtc1 $at, $f2
|
|
||||||
/* 19F780 80270EA0 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 19F784 80270EA4 46020700 */ add.s $f28, $f0, $f2
|
|
||||||
/* 19F788 80270EA8 C6000144 */ lwc1 $f0, 0x144($s0)
|
|
||||||
/* 19F78C 80270EAC 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F790 80270EB0 46040000 */ add.s $f0, $f0, $f4
|
|
||||||
/* 19F794 80270EB4 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F798 80270EB8 00000000 */ nop
|
|
||||||
/* 19F79C 80270EBC 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F7A0 80270EC0 30620800 */ andi $v0, $v1, 0x800
|
|
||||||
/* 19F7A4 80270EC4 1040000D */ beqz $v0, .L80270EFC
|
|
||||||
/* 19F7A8 80270EC8 46020680 */ add.s $f26, $f0, $f2
|
|
||||||
/* 19F7AC 80270ECC 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F7B0 80270ED0 C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19F7B4 80270ED4 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F7B8 80270ED8 00000000 */ nop
|
|
||||||
/* 19F7BC 80270EDC 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F7C0 80270EE0 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F7C4 80270EE4 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F7C8 80270EE8 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F7CC 80270EEC 00000000 */ nop
|
|
||||||
/* 19F7D0 80270EF0 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F7D4 80270EF4 0809C3DA */ j .L80270F68
|
|
||||||
/* 19F7D8 80270EF8 46020501 */ sub.s $f20, $f0, $f2
|
|
||||||
.L80270EFC:
|
|
||||||
/* 19F7DC 80270EFC 30628000 */ andi $v0, $v1, 0x8000
|
|
||||||
/* 19F7E0 80270F00 1440000D */ bnez $v0, .L80270F38
|
|
||||||
/* 19F7E4 80270F04 00000000 */ nop
|
|
||||||
/* 19F7E8 80270F08 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F7EC 80270F0C C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19F7F0 80270F10 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F7F4 80270F14 00000000 */ nop
|
|
||||||
/* 19F7F8 80270F18 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F7FC 80270F1C 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F800 80270F20 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F804 80270F24 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F808 80270F28 00000000 */ nop
|
|
||||||
/* 19F80C 80270F2C 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F810 80270F30 0809C3DA */ j .L80270F68
|
|
||||||
/* 19F814 80270F34 46001500 */ add.s $f20, $f2, $f0
|
|
||||||
.L80270F38:
|
|
||||||
/* 19F818 80270F38 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F81C 80270F3C C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F820 80270F40 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F824 80270F44 00000000 */ nop
|
|
||||||
/* 19F828 80270F48 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F82C 80270F4C 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F830 80270F50 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F834 80270F54 00021040 */ sll $v0, $v0, 1
|
|
||||||
/* 19F838 80270F58 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F83C 80270F5C 00000000 */ nop
|
|
||||||
/* 19F840 80270F60 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F844 80270F64 46001500 */ add.s $f20, $f2, $f0
|
|
||||||
.L80270F68:
|
|
||||||
/* 19F848 80270F68 86020154 */ lh $v0, 0x154($s0)
|
|
||||||
/* 19F84C 80270F6C C600014C */ lwc1 $f0, 0x14c($s0)
|
|
||||||
/* 19F850 80270F70 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F854 80270F74 00000000 */ nop
|
|
||||||
/* 19F858 80270F78 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F85C 80270F7C 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F860 80270F80 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19F864 80270F84 3C014120 */ lui $at, 0x4120
|
|
||||||
/* 19F868 80270F88 44811000 */ mtc1 $at, $f2
|
|
||||||
/* 19F86C 80270F8C 2443FFFF */ addiu $v1, $v0, -1
|
|
||||||
/* 19F870 80270F90 2C620005 */ sltiu $v0, $v1, 5
|
|
||||||
/* 19F874 80270F94 1040005F */ beqz $v0, .L80271114
|
|
||||||
/* 19F878 80270F98 46020580 */ add.s $f22, $f0, $f2
|
|
||||||
/* 19F87C 80270F9C 00031080 */ sll $v0, $v1, 2
|
|
||||||
/* 19F880 80270FA0 3C01802A */ lui $at, %hi(jtbl_8029D868)
|
|
||||||
/* 19F884 80270FA4 00220821 */ addu $at, $at, $v0
|
|
||||||
/* 19F888 80270FA8 8C22D868 */ lw $v0, %lo(jtbl_8029D868)($at)
|
|
||||||
/* 19F88C 80270FAC 00400008 */ jr $v0
|
|
||||||
/* 19F890 80270FB0 00000000 */ nop
|
|
||||||
glabel L80270FB4_19F894
|
|
||||||
/* 19F894 80270FB4 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F898 80270FB8 14400049 */ bnez $v0, .L802710E0
|
|
||||||
/* 19F89C 80270FBC 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F8A0 80270FC0 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19F8A4 80270FC4 0C09DC58 */ jal dispatch_event_actor
|
|
||||||
/* 19F8A8 80270FC8 2405003F */ addiu $a1, $zero, 0x3f
|
|
||||||
/* 19F8AC 80270FCC 4405D000 */ mfc1 $a1, $f26
|
|
||||||
/* 19F8B0 80270FD0 4406A000 */ mfc1 $a2, $f20
|
|
||||||
/* 19F8B4 80270FD4 4407B000 */ mfc1 $a3, $f22
|
|
||||||
/* 19F8B8 80270FD8 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 19F8BC 80270FDC 0C01C424 */ jal playFX_40
|
|
||||||
/* 19F8C0 80270FE0 AFB30010 */ sw $s3, 0x10($sp)
|
|
||||||
/* 19F8C4 80270FE4 4600F306 */ mov.s $f12, $f30
|
|
||||||
/* 19F8C8 80270FE8 4600C386 */ mov.s $f14, $f24
|
|
||||||
/* 19F8CC 80270FEC 4406E000 */ mfc1 $a2, $f28
|
|
||||||
/* 19F8D0 80270FF0 0C0B5D18 */ jal func_802D7460
|
|
||||||
/* 19F8D4 80270FF4 0260382D */ daddu $a3, $s3, $zero
|
|
||||||
/* 19F8D8 80270FF8 2402001E */ addiu $v0, $zero, 0x1e
|
|
||||||
/* 19F8DC 80270FFC AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F8E0 80271000 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19F8E4 80271004 0809C445 */ j .L80271114
|
|
||||||
/* 19F8E8 80271008 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L8027100C_19F8EC
|
|
||||||
/* 19F8EC 8027100C 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F8F0 80271010 14400033 */ bnez $v0, .L802710E0
|
|
||||||
/* 19F8F4 80271014 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F8F8 80271018 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F8FC 8027101C 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19F900 80271020 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19F904 80271024 2404000F */ addiu $a0, $zero, 0xf
|
|
||||||
/* 19F908 80271028 920201B8 */ lbu $v0, 0x1b8($s0)
|
|
||||||
/* 19F90C 8027102C 820301B9 */ lb $v1, 0x1b9($s0)
|
|
||||||
/* 19F910 80271030 00531021 */ addu $v0, $v0, $s3
|
|
||||||
/* 19F914 80271034 A20201B8 */ sb $v0, 0x1b8($s0)
|
|
||||||
/* 19F918 80271038 00021600 */ sll $v0, $v0, 0x18
|
|
||||||
/* 19F91C 8027103C 00021603 */ sra $v0, $v0, 0x18
|
|
||||||
/* 19F920 80271040 0062182A */ slt $v1, $v1, $v0
|
|
||||||
/* 19F924 80271044 920201B9 */ lbu $v0, 0x1b9($s0)
|
|
||||||
/* 19F928 80271048 54600001 */ bnel $v1, $zero, .L80271050
|
|
||||||
/* 19F92C 8027104C A20201B8 */ sb $v0, 0x1b8($s0)
|
|
||||||
.L80271050:
|
|
||||||
/* 19F930 80271050 4600F306 */ mov.s $f12, $f30
|
|
||||||
/* 19F934 80271054 4600C386 */ mov.s $f14, $f24
|
|
||||||
/* 19F938 80271058 4406E000 */ mfc1 $a2, $f28
|
|
||||||
/* 19F93C 8027105C 0C0B5D30 */ jal func_802D74C0
|
|
||||||
/* 19F940 80271060 0260382D */ daddu $a3, $s3, $zero
|
|
||||||
/* 19F944 80271064 2402000F */ addiu $v0, $zero, 0xf
|
|
||||||
/* 19F948 80271068 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F94C 8027106C 24020003 */ addiu $v0, $zero, 3
|
|
||||||
/* 19F950 80271070 0809C445 */ j .L80271114
|
|
||||||
/* 19F954 80271074 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80271078_19F958
|
|
||||||
/* 19F958 80271078 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F95C 8027107C 14400018 */ bnez $v0, .L802710E0
|
|
||||||
/* 19F960 80271080 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F964 80271084 3C02802A */ lui $v0, %hi(D_8029FBD0)
|
|
||||||
/* 19F968 80271088 8C42FBD0 */ lw $v0, %lo(D_8029FBD0)($v0)
|
|
||||||
/* 19F96C 8027108C 14400002 */ bnez $v0, .L80271098
|
|
||||||
/* 19F970 80271090 24040020 */ addiu $a0, $zero, 0x20
|
|
||||||
/* 19F974 80271094 2404001F */ addiu $a0, $zero, 0x1f
|
|
||||||
.L80271098:
|
|
||||||
/* 19F978 80271098 2405003C */ addiu $a1, $zero, 0x3c
|
|
||||||
/* 19F97C 8027109C 0C093E81 */ jal btl_show_variable_battle_message
|
|
||||||
/* 19F980 802710A0 0260302D */ daddu $a2, $s3, $zero
|
|
||||||
/* 19F984 802710A4 24020004 */ addiu $v0, $zero, 4
|
|
||||||
/* 19F988 802710A8 0809C445 */ j .L80271114
|
|
||||||
/* 19F98C 802710AC AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L802710B0_19F990
|
|
||||||
/* 19F990 802710B0 0C093EAD */ jal btl_is_popup_displayed
|
|
||||||
/* 19F994 802710B4 00000000 */ nop
|
|
||||||
/* 19F998 802710B8 14400017 */ bnez $v0, .L80271118
|
|
||||||
/* 19F99C 802710BC 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
/* 19F9A0 802710C0 2402000A */ addiu $v0, $zero, 0xa
|
|
||||||
/* 19F9A4 802710C4 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F9A8 802710C8 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19F9AC 802710CC 0809C445 */ j .L80271114
|
|
||||||
/* 19F9B0 802710D0 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L802710D4_19F9B4
|
|
||||||
/* 19F9B4 802710D4 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F9B8 802710D8 10400003 */ beqz $v0, .L802710E8
|
|
||||||
/* 19F9BC 802710DC 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
.L802710E0:
|
|
||||||
/* 19F9C0 802710E0 0809C445 */ j .L80271114
|
|
||||||
/* 19F9C4 802710E4 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
.L802710E8:
|
|
||||||
/* 19F9C8 802710E8 8E0201D8 */ lw $v0, 0x1d8($s0)
|
|
||||||
/* 19F9CC 802710EC 10400005 */ beqz $v0, .L80271104
|
|
||||||
/* 19F9D0 802710F0 00000000 */ nop
|
|
||||||
/* 19F9D4 802710F4 0C0B1059 */ jal does_script_exist
|
|
||||||
/* 19F9D8 802710F8 8E0401E8 */ lw $a0, 0x1e8($s0)
|
|
||||||
/* 19F9DC 802710FC 14400006 */ bnez $v0, .L80271118
|
|
||||||
/* 19F9E0 80271100 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L80271104:
|
|
||||||
/* 19F9E4 80271104 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19F9E8 80271108 A020FBD4 */ sb $zero, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19F9EC 8027110C 0809C446 */ j .L80271118
|
|
||||||
/* 19F9F0 80271110 24020002 */ addiu $v0, $zero, 2
|
|
||||||
.L80271114:
|
|
||||||
/* 19F9F4 80271114 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L80271118:
|
|
||||||
/* 19F9F8 80271118 8FBF0028 */ lw $ra, 0x28($sp)
|
|
||||||
/* 19F9FC 8027111C 8FB30024 */ lw $s3, 0x24($sp)
|
|
||||||
/* 19FA00 80271120 8FB20020 */ lw $s2, 0x20($sp)
|
|
||||||
/* 19FA04 80271124 8FB1001C */ lw $s1, 0x1c($sp)
|
|
||||||
/* 19FA08 80271128 8FB00018 */ lw $s0, 0x18($sp)
|
|
||||||
/* 19FA0C 8027112C D7BE0058 */ ldc1 $f30, 0x58($sp)
|
|
||||||
/* 19FA10 80271130 D7BC0050 */ ldc1 $f28, 0x50($sp)
|
|
||||||
/* 19FA14 80271134 D7BA0048 */ ldc1 $f26, 0x48($sp)
|
|
||||||
/* 19FA18 80271138 D7B80040 */ ldc1 $f24, 0x40($sp)
|
|
||||||
/* 19FA1C 8027113C D7B60038 */ ldc1 $f22, 0x38($sp)
|
|
||||||
/* 19FA20 80271140 D7B40030 */ ldc1 $f20, 0x30($sp)
|
|
||||||
/* 19FA24 80271144 03E00008 */ jr $ra
|
|
||||||
/* 19FA28 80271148 27BD0060 */ addiu $sp, $sp, 0x60
|
|
@ -1,238 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.section .rodata
|
|
||||||
|
|
||||||
glabel jtbl_8029D838
|
|
||||||
.word L80270814_19F0F4, L80270860_19F140, L802708AC_19F18C, L802708D4_19F1B4, L80270900_19F1E0, 0
|
|
||||||
|
|
||||||
.section .text
|
|
||||||
|
|
||||||
glabel VanishActor
|
|
||||||
/* 19EEF4 80270614 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
||||||
/* 19EEF8 80270618 AFB20020 */ sw $s2, 0x20($sp)
|
|
||||||
/* 19EEFC 8027061C 0080902D */ daddu $s2, $a0, $zero
|
|
||||||
/* 19EF00 80270620 AFBF0024 */ sw $ra, 0x24($sp)
|
|
||||||
/* 19EF04 80270624 AFB1001C */ sw $s1, 0x1c($sp)
|
|
||||||
/* 19EF08 80270628 AFB00018 */ sw $s0, 0x18($sp)
|
|
||||||
/* 19EF0C 8027062C 8E51000C */ lw $s1, 0xc($s2)
|
|
||||||
/* 19EF10 80270630 54A00001 */ bnel $a1, $zero, .L80270638
|
|
||||||
/* 19EF14 80270634 AE400070 */ sw $zero, 0x70($s2)
|
|
||||||
.L80270638:
|
|
||||||
/* 19EF18 80270638 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19EF1C 8027063C 1440002D */ bnez $v0, .L802706F4
|
|
||||||
/* 19EF20 80270640 00000000 */ nop
|
|
||||||
/* 19EF24 80270644 8E250000 */ lw $a1, ($s1)
|
|
||||||
/* 19EF28 80270648 26310004 */ addiu $s1, $s1, 4
|
|
||||||
/* 19EF2C 8027064C 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19EF30 80270650 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19EF34 80270654 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19EF38 80270658 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
||||||
/* 19EF3C 8027065C 16020002 */ bne $s0, $v0, .L80270668
|
|
||||||
/* 19EF40 80270660 00000000 */ nop
|
|
||||||
/* 19EF44 80270664 8E500148 */ lw $s0, 0x148($s2)
|
|
||||||
.L80270668:
|
|
||||||
/* 19EF48 80270668 8E250000 */ lw $a1, ($s1)
|
|
||||||
/* 19EF4C 8027066C 0C0B1EAF */ jal evt_get_variable
|
|
||||||
/* 19EF50 80270670 0240202D */ daddu $a0, $s2, $zero
|
|
||||||
/* 19EF54 80270674 0040882D */ daddu $s1, $v0, $zero
|
|
||||||
/* 19EF58 80270678 0C09A75B */ jal get_actor
|
|
||||||
/* 19EF5C 8027067C 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19EF60 80270680 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 19EF64 80270684 24040008 */ addiu $a0, $zero, 8
|
|
||||||
/* 19EF68 80270688 AE500074 */ sw $s0, 0x74($s2)
|
|
||||||
/* 19EF6C 8027068C 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19EF70 80270690 AE510078 */ sw $s1, 0x78($s2)
|
|
||||||
/* 19EF74 80270694 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19EF78 80270698 2404000C */ addiu $a0, $zero, 0xc
|
|
||||||
/* 19EF7C 8027069C 86040192 */ lh $a0, 0x192($s0)
|
|
||||||
/* 19EF80 802706A0 0C09390F */ jal btl_cam_target_actor
|
|
||||||
/* 19EF84 802706A4 00000000 */ nop
|
|
||||||
/* 19EF88 802706A8 0C093965 */ jal btl_cam_set_zoom
|
|
||||||
/* 19EF8C 802706AC 240400FA */ addiu $a0, $zero, 0xfa
|
|
||||||
/* 19EF90 802706B0 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19EF94 802706B4 2404000A */ addiu $a0, $zero, 0xa
|
|
||||||
/* 19EF98 802706B8 0C093983 */ jal func_8024E60C
|
|
||||||
/* 19EF9C 802706BC 00000000 */ nop
|
|
||||||
/* 19EFA0 802706C0 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 19EFA4 802706C4 30420800 */ andi $v0, $v0, 0x800
|
|
||||||
/* 19EFA8 802706C8 10400004 */ beqz $v0, .L802706DC
|
|
||||||
/* 19EFAC 802706CC 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19EFB0 802706D0 0C093978 */ jal btl_cam_set_zoffset
|
|
||||||
/* 19EFB4 802706D4 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 19EFB8 802706D8 24020001 */ addiu $v0, $zero, 1
|
|
||||||
.L802706DC:
|
|
||||||
/* 19EFBC 802706DC 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19EFC0 802706E0 A022FBD4 */ sb $v0, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19EFC4 802706E4 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19EFC8 802706E8 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19EFCC 802706EC 24020001 */ addiu $v0, $zero, 1
|
|
||||||
/* 19EFD0 802706F0 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
.L802706F4:
|
|
||||||
/* 19EFD4 802706F4 0C09A75B */ jal get_actor
|
|
||||||
/* 19EFD8 802706F8 8E440148 */ lw $a0, 0x148($s2)
|
|
||||||
/* 19EFDC 802706FC 8E500074 */ lw $s0, 0x74($s2)
|
|
||||||
/* 19EFE0 80270700 8E510078 */ lw $s1, 0x78($s2)
|
|
||||||
/* 19EFE4 80270704 86020150 */ lh $v0, 0x150($s0)
|
|
||||||
/* 19EFE8 80270708 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 19EFEC 8027070C C6000144 */ lwc1 $f0, 0x144($s0)
|
|
||||||
/* 19EFF0 80270710 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19EFF4 80270714 00000000 */ nop
|
|
||||||
/* 19EFF8 80270718 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19EFFC 8027071C 30620800 */ andi $v0, $v1, 0x800
|
|
||||||
/* 19F000 80270720 1040000E */ beqz $v0, .L8027075C
|
|
||||||
/* 19F004 80270724 46020180 */ add.s $f6, $f0, $f2
|
|
||||||
/* 19F008 80270728 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F00C 8027072C C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F010 80270730 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F014 80270734 00000000 */ nop
|
|
||||||
/* 19F018 80270738 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F01C 8027073C 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F020 80270740 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F024 80270744 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F028 80270748 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F02C 8027074C 00000000 */ nop
|
|
||||||
/* 19F030 80270750 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F034 80270754 0809C1F2 */ j .L802707C8
|
|
||||||
/* 19F038 80270758 46001101 */ sub.s $f4, $f2, $f0
|
|
||||||
.L8027075C:
|
|
||||||
/* 19F03C 8027075C 30628000 */ andi $v0, $v1, 0x8000
|
|
||||||
/* 19F040 80270760 1440000E */ bnez $v0, .L8027079C
|
|
||||||
/* 19F044 80270764 00000000 */ nop
|
|
||||||
/* 19F048 80270768 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F04C 8027076C C6020148 */ lwc1 $f2, 0x148($s0)
|
|
||||||
/* 19F050 80270770 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F054 80270774 00000000 */ nop
|
|
||||||
/* 19F058 80270778 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F05C 8027077C 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F060 80270780 46001080 */ add.s $f2, $f2, $f0
|
|
||||||
/* 19F064 80270784 00021042 */ srl $v0, $v0, 1
|
|
||||||
/* 19F068 80270788 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 19F06C 8027078C 00000000 */ nop
|
|
||||||
/* 19F070 80270790 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 19F074 80270794 0809C1F2 */ j .L802707C8
|
|
||||||
/* 19F078 80270798 46020100 */ add.s $f4, $f0, $f2
|
|
||||||
.L8027079C:
|
|
||||||
/* 19F07C 8027079C 86020152 */ lh $v0, 0x152($s0)
|
|
||||||
/* 19F080 802707A0 C6000148 */ lwc1 $f0, 0x148($s0)
|
|
||||||
/* 19F084 802707A4 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F088 802707A8 00000000 */ nop
|
|
||||||
/* 19F08C 802707AC 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F090 802707B0 92020191 */ lbu $v0, 0x191($s0)
|
|
||||||
/* 19F094 802707B4 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F098 802707B8 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F09C 802707BC 00000000 */ nop
|
|
||||||
/* 19F0A0 802707C0 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F0A4 802707C4 46020100 */ add.s $f4, $f0, $f2
|
|
||||||
.L802707C8:
|
|
||||||
/* 19F0A8 802707C8 86020154 */ lh $v0, 0x154($s0)
|
|
||||||
/* 19F0AC 802707CC C600014C */ lwc1 $f0, 0x14c($s0)
|
|
||||||
/* 19F0B0 802707D0 44821000 */ mtc1 $v0, $f2
|
|
||||||
/* 19F0B4 802707D4 00000000 */ nop
|
|
||||||
/* 19F0B8 802707D8 468010A0 */ cvt.s.w $f2, $f2
|
|
||||||
/* 19F0BC 802707DC 46020000 */ add.s $f0, $f0, $f2
|
|
||||||
/* 19F0C0 802707E0 8E420070 */ lw $v0, 0x70($s2)
|
|
||||||
/* 19F0C4 802707E4 3C014120 */ lui $at, 0x4120
|
|
||||||
/* 19F0C8 802707E8 44811000 */ mtc1 $at, $f2
|
|
||||||
/* 19F0CC 802707EC 2443FFFF */ addiu $v1, $v0, -1
|
|
||||||
/* 19F0D0 802707F0 2C620005 */ sltiu $v0, $v1, 5
|
|
||||||
/* 19F0D4 802707F4 10400052 */ beqz $v0, .L80270940
|
|
||||||
/* 19F0D8 802707F8 46020080 */ add.s $f2, $f0, $f2
|
|
||||||
/* 19F0DC 802707FC 00031080 */ sll $v0, $v1, 2
|
|
||||||
/* 19F0E0 80270800 3C01802A */ lui $at, %hi(jtbl_8029D838)
|
|
||||||
/* 19F0E4 80270804 00220821 */ addu $at, $at, $v0
|
|
||||||
/* 19F0E8 80270808 8C22D838 */ lw $v0, %lo(jtbl_8029D838)($at)
|
|
||||||
/* 19F0EC 8027080C 00400008 */ jr $v0
|
|
||||||
/* 19F0F0 80270810 00000000 */ nop
|
|
||||||
glabel L80270814_19F0F4
|
|
||||||
/* 19F0F4 80270814 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F0F8 80270818 1440003C */ bnez $v0, .L8027090C
|
|
||||||
/* 19F0FC 8027081C 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F100 80270820 24040003 */ addiu $a0, $zero, 3
|
|
||||||
/* 19F104 80270824 44053000 */ mfc1 $a1, $f6
|
|
||||||
/* 19F108 80270828 44062000 */ mfc1 $a2, $f4
|
|
||||||
/* 19F10C 8027082C 3C013F80 */ lui $at, 0x3f80
|
|
||||||
/* 19F110 80270830 44810000 */ mtc1 $at, $f0
|
|
||||||
/* 19F114 80270834 44071000 */ mfc1 $a3, $f2
|
|
||||||
/* 19F118 80270838 2410001E */ addiu $s0, $zero, 0x1e
|
|
||||||
/* 19F11C 8027083C AFB00014 */ sw $s0, 0x14($sp)
|
|
||||||
/* 19F120 80270840 0C01C2EC */ jal playFX_33
|
|
||||||
/* 19F124 80270844 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
||||||
/* 19F128 80270848 0C0938F6 */ jal func_8024E3D8
|
|
||||||
/* 19F12C 8027084C 24040013 */ addiu $a0, $zero, 0x13
|
|
||||||
/* 19F130 80270850 24020002 */ addiu $v0, $zero, 2
|
|
||||||
/* 19F134 80270854 AE50007C */ sw $s0, 0x7c($s2)
|
|
||||||
/* 19F138 80270858 0809C250 */ j .L80270940
|
|
||||||
/* 19F13C 8027085C AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270860_19F140
|
|
||||||
/* 19F140 80270860 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F144 80270864 14400029 */ bnez $v0, .L8027090C
|
|
||||||
/* 19F148 80270868 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F14C 8027086C 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19F150 80270870 0C09DC58 */ jal dispatch_event_actor
|
|
||||||
/* 19F154 80270874 2405003F */ addiu $a1, $zero, 0x3f
|
|
||||||
/* 19F158 80270878 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F15C 8027087C 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19F160 80270880 0C093936 */ jal btl_cam_move
|
|
||||||
/* 19F164 80270884 2404000F */ addiu $a0, $zero, 0xf
|
|
||||||
/* 19F168 80270888 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 19F16C 8027088C 2405000E */ addiu $a1, $zero, 0xe
|
|
||||||
/* 19F170 80270890 0C0997D0 */ jal inflict_status
|
|
||||||
/* 19F174 80270894 0220302D */ daddu $a2, $s1, $zero
|
|
||||||
/* 19F178 80270898 2402000F */ addiu $v0, $zero, 0xf
|
|
||||||
/* 19F17C 8027089C AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F180 802708A0 24020003 */ addiu $v0, $zero, 3
|
|
||||||
/* 19F184 802708A4 0809C250 */ j .L80270940
|
|
||||||
/* 19F188 802708A8 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L802708AC_19F18C
|
|
||||||
/* 19F18C 802708AC 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F190 802708B0 14400016 */ bnez $v0, .L8027090C
|
|
||||||
/* 19F194 802708B4 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
/* 19F198 802708B8 24040021 */ addiu $a0, $zero, 0x21
|
|
||||||
/* 19F19C 802708BC 2405003C */ addiu $a1, $zero, 0x3c
|
|
||||||
/* 19F1A0 802708C0 0C093E81 */ jal btl_show_variable_battle_message
|
|
||||||
/* 19F1A4 802708C4 0220302D */ daddu $a2, $s1, $zero
|
|
||||||
/* 19F1A8 802708C8 24020004 */ addiu $v0, $zero, 4
|
|
||||||
/* 19F1AC 802708CC 0809C250 */ j .L80270940
|
|
||||||
/* 19F1B0 802708D0 AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L802708D4_19F1B4
|
|
||||||
/* 19F1B4 802708D4 0C093EAD */ jal btl_is_popup_displayed
|
|
||||||
/* 19F1B8 802708D8 00000000 */ nop
|
|
||||||
/* 19F1BC 802708DC 14400019 */ bnez $v0, .L80270944
|
|
||||||
/* 19F1C0 802708E0 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
/* 19F1C4 802708E4 0C093903 */ jal func_8024E40C
|
|
||||||
/* 19F1C8 802708E8 24040002 */ addiu $a0, $zero, 2
|
|
||||||
/* 19F1CC 802708EC 2402000A */ addiu $v0, $zero, 0xa
|
|
||||||
/* 19F1D0 802708F0 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
/* 19F1D4 802708F4 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 19F1D8 802708F8 0809C250 */ j .L80270940
|
|
||||||
/* 19F1DC 802708FC AE420070 */ sw $v0, 0x70($s2)
|
|
||||||
glabel L80270900_19F1E0
|
|
||||||
/* 19F1E0 80270900 8E42007C */ lw $v0, 0x7c($s2)
|
|
||||||
/* 19F1E4 80270904 10400003 */ beqz $v0, .L80270914
|
|
||||||
/* 19F1E8 80270908 2442FFFF */ addiu $v0, $v0, -1
|
|
||||||
.L8027090C:
|
|
||||||
/* 19F1EC 8027090C 0809C250 */ j .L80270940
|
|
||||||
/* 19F1F0 80270910 AE42007C */ sw $v0, 0x7c($s2)
|
|
||||||
.L80270914:
|
|
||||||
/* 19F1F4 80270914 8E0201D8 */ lw $v0, 0x1d8($s0)
|
|
||||||
/* 19F1F8 80270918 10400005 */ beqz $v0, .L80270930
|
|
||||||
/* 19F1FC 8027091C 00000000 */ nop
|
|
||||||
/* 19F200 80270920 0C0B1059 */ jal does_script_exist
|
|
||||||
/* 19F204 80270924 8E0401E8 */ lw $a0, 0x1e8($s0)
|
|
||||||
/* 19F208 80270928 14400006 */ bnez $v0, .L80270944
|
|
||||||
/* 19F20C 8027092C 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L80270930:
|
|
||||||
/* 19F210 80270930 3C01802A */ lui $at, %hi(D_8029FBD4)
|
|
||||||
/* 19F214 80270934 A020FBD4 */ sb $zero, %lo(D_8029FBD4)($at)
|
|
||||||
/* 19F218 80270938 0809C251 */ j .L80270944
|
|
||||||
/* 19F21C 8027093C 24020002 */ addiu $v0, $zero, 2
|
|
||||||
.L80270940:
|
|
||||||
/* 19F220 80270940 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
.L80270944:
|
|
||||||
/* 19F224 80270944 8FBF0024 */ lw $ra, 0x24($sp)
|
|
||||||
/* 19F228 80270948 8FB20020 */ lw $s2, 0x20($sp)
|
|
||||||
/* 19F22C 8027094C 8FB1001C */ lw $s1, 0x1c($sp)
|
|
||||||
/* 19F230 80270950 8FB00018 */ lw $s0, 0x18($sp)
|
|
||||||
/* 19F234 80270954 03E00008 */ jr $ra
|
|
||||||
/* 19F238 80270958 27BD0028 */ addiu $sp, $sp, 0x28
|
|
Loading…
Reference in New Issue
Block a user