You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
added define for the 100 coin star
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
#define JUMP_KICK_FIX
|
||||
// Disables fall damage
|
||||
#define NO_FALL_DAMAGE
|
||||
// Number of coins to spawn the "100 coin" star. If you remove the define altogether, then there won't be a 100 coin star at all.
|
||||
#define X_COIN_STAR 100
|
||||
// Stars don't kick you out of the level
|
||||
// #define NON_STOP_STARS
|
||||
// Uncomment this if you want global star IDs (useful for creating an open world hack ala MVC)
|
||||
|
||||
@@ -746,11 +746,12 @@ u32 interact_coin(struct MarioState *m, UNUSED u32 interactType, struct Object *
|
||||
m->healCounter += 4 * o->oDamageOrCoinValue;
|
||||
|
||||
o->oInteractStatus = INT_STATUS_INTERACTED;
|
||||
|
||||
if (COURSE_IS_MAIN_COURSE(gCurrCourseNum) && m->numCoins - o->oDamageOrCoinValue < 100
|
||||
&& m->numCoins >= 100) {
|
||||
#ifdef X_COIN_STAR
|
||||
if (COURSE_IS_MAIN_COURSE(gCurrCourseNum) && m->numCoins - o->oDamageOrCoinValue < X_COIN_STAR
|
||||
&& m->numCoins >= X_COIN_STAR) {
|
||||
bhv_spawn_star_no_level_exit(6);
|
||||
}
|
||||
#endif
|
||||
#if ENABLE_RUMBLE
|
||||
if (o->oDamageOrCoinValue >= 2) {
|
||||
queue_rumble_data(5, 80);
|
||||
|
||||
Reference in New Issue
Block a user