summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorKiloku <mateus.sateles@protonmail.com>2025-01-04 00:32:59 -0300
committerGitHub <noreply@github.com>2025-01-03 21:32:59 -0600
commit97e63d6b066232ab9ced38adfb6131027fb0bad1 (patch)
tree3062ebdb3931cf86c6972aedb56a17c31020221c /src/engine
parentb4457a03a98edf41e7c2b4cc12c3907a439fcb37 (diff)
Laser range cheat (#112)
* Add Laser Range cheat * Change range cheat to be a multiplier instead * Address bomb weirdness * Move cheat to Hooks system
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/fox_play.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/fox_play.c b/src/engine/fox_play.c
index e4690eb5..3f811f3b 100644
--- a/src/engine/fox_play.c
+++ b/src/engine/fox_play.c
@@ -3081,6 +3081,7 @@ void Player_SetupArwingShot(Player* player, PlayerShot* shot, f32 arg2, f32 arg3
shot->timer = 30;
}
}
+
shot->sourceId = player->num;
}
@@ -3156,7 +3157,7 @@ void Player_TankCannon(Player* player) {
}
}
if (!PlayerActionPreShootEvent_.event.cancelled){
- CALL_EVENT(PlayerActionPostShootEvent, player, gLaserStrength[gPlayerNum]);
+ CALL_EVENT(PlayerActionPostShootEvent, player, &gPlayerShots[i]);
}
}
@@ -3205,7 +3206,7 @@ void Player_ArwingLaser(Player* player) {
}
break;
}
- CALL_EVENT(PlayerActionPostShootEvent, player, laser);
+ CALL_EVENT(PlayerActionPostShootEvent, player, &gPlayerShots[i]);
}
void Player_SmartBomb(Player* player) {