summaryrefslogtreecommitdiff
path: root/menuchoixpersos.c
diff options
context:
space:
mode:
Diffstat (limited to 'menuchoixpersos.c')
-rw-r--r--menuchoixpersos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/menuchoixpersos.c b/menuchoixpersos.c
index ef8b8a1..91e0c7d 100644
--- a/menuchoixpersos.c
+++ b/menuchoixpersos.c
@@ -60,6 +60,10 @@ struct team_t *new_ally_team(SURFACES *surfaces,
chr->defense = base_stats_g[chr->class_].defense;
chr->spirit = base_stats_g[chr->class_].spirit;
+ for (int j = 0; j < countof(chr->affinities); ++j) {
+ chr->affinities[j] = rand() % AFFINITY_COUNT;
+ }
+
/* set its position */
chr->pos.x = 20;
chr->pos.y = (YWIN / (cnt + 1)) * (i + 1) - chr->def_surf->h / 2;