mirror of
https://github.com/zeldaret/ss
synced 2026-09-01 09:32:58 -04:00
match actorCreate
This commit is contained in:
@@ -87,31 +87,13 @@ private:
|
||||
return isSubtype(10);
|
||||
}
|
||||
bool isTrialGateType() const {
|
||||
if (getSubtype() != SUBTYPE_BUTTERFLY) {
|
||||
return false;
|
||||
}
|
||||
if (getSpawnSubtype() != SPAWN_TRIAL_GATE) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return getSubtype() != SUBTYPE_BUTTERFLY ? false : getSpawnSubtype() == SPAWN_TRIAL_GATE;
|
||||
}
|
||||
bool isGossipStoneType() const {
|
||||
if (!isButterfly()) {
|
||||
return false;
|
||||
}
|
||||
if (!isSpawnSubtype(SPAWN_GOSSIP_STONE)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return getSubtype() != SUBTYPE_BUTTERFLY ? false : getSpawnSubtype() == SPAWN_GOSSIP_STONE;
|
||||
}
|
||||
bool isGoddessWallType() const {
|
||||
if (!isButterfly()) {
|
||||
return false;
|
||||
}
|
||||
if (!isSpawnSubtype(SPAWN_GODDESS_WALL)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return getSubtype() != SUBTYPE_BUTTERFLY ? false : getSpawnSubtype() == SPAWN_GODDESS_WALL;
|
||||
}
|
||||
f32 getOriginalScaleX() const {
|
||||
return 100 * mScale.x;
|
||||
|
||||
@@ -45,7 +45,6 @@ const s32 *useUnused() {
|
||||
return unused;
|
||||
}
|
||||
|
||||
// non matching
|
||||
int dTgInsect_c::actorCreate() {
|
||||
if (getSubtype() == 0) {
|
||||
return FAILED;
|
||||
@@ -67,8 +66,6 @@ int dTgInsect_c::actorCreate() {
|
||||
mScale *= 0.01f;
|
||||
mRevealed = 0;
|
||||
mRevealedSpawnPos = mPosition;
|
||||
// non matching: load of 0 in r0
|
||||
// that is already 0
|
||||
if (isTrialGateType() || isGossipStoneType() || isGoddessWallType() || isSpawnSubtype(SPAWN_BUG_MINIGAME)) {
|
||||
unk24E = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user