summaryrefslogtreecommitdiff
path: root/src/mods/hit64.c
blob: 68e34ad1b90ff52f582d7b3f65ba9e75904f5085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "global.h"
#include "hit64.h"

// gHit64SelfDestruct

void Hit64_Main(void) {
    if (CVarGetInteger("gHit64SelfDestruct", 0) == 1) {
        Player* player = &gPlayer[0];

        if (gControllerPress[0].button & D_JPAD) {
            player->shields = 0;
            Player_ApplyDamage(player, 0, 10000);
        }
    }
}