Skip to content

Commit

Permalink
Make new perks obtainable
Browse files Browse the repository at this point in the history
  • Loading branch information
bit69tream committed Jan 9, 2024
1 parent 6abb7b8 commit ad57f08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stribun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ void tryDashing(void) {
#define PLAYER_FIRE_COOLDOWN 0.15f
#define PLAYER_PROJECTILE_RADIUS 9
#define PLAYER_PROJECTILE_SPEED 30.0f
#define PLAYER_PROJECTILE_BASE_DAMAGE 40
#define PLAYER_PROJECTILE_BASE_DAMAGE 4

void tryFiringAShot(void) {
if (!IsMouseButtonDown(MOUSE_BUTTON_LEFT) ||
Expand Down Expand Up @@ -4796,7 +4796,7 @@ static Perk firstNewPerk;
static Perk secondNewPerk;

void playerGiveOneRandomPerk(void) {
if (player.perks == 0b1111111111) {
if (player.perks == 0b111111111111) {
return;
}

Expand All @@ -4811,6 +4811,8 @@ void playerGiveOneRandomPerk(void) {
PERK_FAST_BULLETS,
PERK_DOUBLE_HP,
PERK_GLASS_CANON,
PERK_VAMPIRISM,
PERK_OMINOUS_AURA,
};
int perks_len = sizeof(perks) / sizeof(perks[0]);

Expand Down

0 comments on commit ad57f08

Please sign in to comment.