mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-27 06:31:42 -04:00
make nbomb inherit instead of creating a fopAc_ac_c object (#1937)
* make nbomb inherit instead of creating an object * add newline at the end of the cpp
This commit is contained in:
+5
-5
@@ -7,8 +7,8 @@
|
||||
#include "d/d_procname.h"
|
||||
|
||||
bool dBomb_c::checkStateCarry() {
|
||||
return (fopAcM_checkCarryNow(&mActor) || fopAcM_checkHookCarryNow(&mActor) ||
|
||||
fopAcM_GetParam(&mActor) == 2 || fopAcM_GetParam(&mActor) == 1);
|
||||
return (fopAcM_checkCarryNow(this) || fopAcM_checkHookCarryNow(this) ||
|
||||
fopAcM_GetParam(this) == 2 || fopAcM_GetParam(this) == 1);
|
||||
}
|
||||
|
||||
bool dBomb_c::checkFlowerBombWait(fopAc_ac_c* param_1) {
|
||||
@@ -16,9 +16,9 @@ bool dBomb_c::checkFlowerBombWait(fopAc_ac_c* param_1) {
|
||||
}
|
||||
|
||||
bool dBomb_c::checkWaterBomb(fopAc_ac_c* param_1) {
|
||||
return (fopAcM_GetName(&mActor) == PROC_NBOMB && daNbomb_c::checkWaterBomb());
|
||||
return (fopAcM_GetName(this) == PROC_NBOMB && daNbomb_c::checkWaterBomb());
|
||||
}
|
||||
|
||||
bool dBomb_c::checkInsectBombMove(fopAc_ac_c* param_1) {
|
||||
return (fopAcM_GetName(&mActor) == PROC_NBOMB && fopAcM_GetParam(&mActor) == 7);
|
||||
}
|
||||
return (fopAcM_GetName(this) == PROC_NBOMB && fopAcM_GetParam(this) == 7);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user