Add dBgS_AttributeCode enum

This commit is contained in:
LagoLunatic
2023-12-02 15:05:50 -05:00
parent 5b0183182e
commit fdbb0225bf
6 changed files with 90 additions and 19 deletions
+7 -1
View File
@@ -821,7 +821,13 @@ BOOL daArrow_c::procMove() {
s32 attribCode = dComIfG_Bgsp()->GetAttributeCode(mLinChk);
s32 mtrlSndId = dComIfG_Bgsp()->GetMtrlSndId(mLinChk);
if (mArrowType == TYPE_NORMAL && (attribCode == 0x3 || attribCode == 0x14 || attribCode == 0xF || attribCode == 0x9 || attribCode == 0x15)) {
if (mArrowType == TYPE_NORMAL && (
attribCode == dBgS_Attr_STONE_e ||
attribCode == dBgS_Attr_METAL_e ||
attribCode == dBgS_Attr_ICE_e ||
attribCode == dBgS_Attr_DAMAGE_e ||
attribCode == dBgS_Attr_FREEZE_e
)) {
mCurrProcFunc = &procReturn;
fopAcM_SetParam(this, 3);
speed *= -0.1f;
+2 -2
View File
@@ -4108,7 +4108,7 @@ BOOL daPy_lk_c::checkLavaFace(cXyz* param_1, int attributeCode) {
}
}
if (attributeCode == 6) {
if (attributeCode == dBgS_Attr_LAVA_e) {
if (param_1) {
current.pos.y = m35D4;
}
@@ -4117,7 +4117,7 @@ BOOL daPy_lk_c::checkLavaFace(cXyz* param_1, int attributeCode) {
} else {
return dProcLavaDamage_init();
}
} else if (attributeCode == 8) {
} else if (attributeCode == dBgS_Attr_VOID_e) {
startRestartRoom(5, 0xC9, -1.0f, 0);
}