mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-19 13:24:12 -04:00
Demo matches (#767)
This commit is contained in:
@@ -22,17 +22,16 @@ static BOOL daBossItem_Delete(bossitem_class* i_this) {
|
||||
|
||||
/* 00000088-00000128 .text daBossItem_Create__FP10fopAc_ac_c */
|
||||
static cPhs_State daBossItem_Create(fopAc_ac_c* i_this) {
|
||||
bossitem_class* bItem = static_cast<bossitem_class*>(i_this);
|
||||
bossitem_class* a_this = (bossitem_class*)i_this;
|
||||
fopAcM_SetupActor(i_this, bossitem_class);
|
||||
|
||||
fopAcM_SetupActor(bItem, bossitem_class);
|
||||
|
||||
int stageNo = bItem->base.mParameters & 0xFF;
|
||||
int stageNo = daBossItem_prm::getStage(a_this);
|
||||
BOOL isStageBossDead = dComIfGs_isStageBossEnemy(stageNo);
|
||||
|
||||
if (isStageBossDead && !dComIfGs_isStageLife(stageNo)) {
|
||||
fopAcM_createItemForBoss(
|
||||
&bItem->current.pos, 1, bItem->current.roomNo,
|
||||
&bItem->current.angle, NULL, 1
|
||||
&i_this->current.pos, 1, fopAcM_GetRoomNo(i_this),
|
||||
&i_this->current.angle, NULL, 1
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user