fix incomplete specification of primary attack skill

This commit is contained in:
Lephenixnoir 2022-06-25 19:34:49 +01:00
parent f349d6b69b
commit df39290329
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include "player.h"
#include "item.h"
#include "aoe.h"
#include <gint/defs/util.h>
static int xp_to_next_level(int level)
@ -48,6 +49,8 @@ void player_compute_skills(entity_t *e, int *equips, int *skills)
for(int i = 0; i < 6; i++)
skills[i] = -1;
/* Default attack */
skills[0] = AOE_SLASH;
/* Sword/staff */
if(equips[0] >= 0)