summaryrefslogtreecommitdiff
path: root/src/mods/hit64.c
blob: 7ebfbbb9a47c5bb74045a7fc072f8414de6edf79 (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);
        }
    }
}