|
|
|
@ -173,7 +173,7 @@ void Recharge(int *tptsbought, int place, char *tcateg)
|
|
|
|
|
topay = dizpts * 2;
|
|
|
|
|
tptsbought[place] += nbpts;
|
|
|
|
|
|
|
|
|
|
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
|
|
|
|
|
printf("Vous avez désormais %d points sur la carte, vous nous devez %d €\n", tptsbought[place], topay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (tcateg[place] == 'S')
|
|
|
|
@ -182,7 +182,7 @@ void Recharge(int *tptsbought, int place, char *tcateg)
|
|
|
|
|
topay = dizpts * 4;
|
|
|
|
|
tptsbought[place] += nbpts;
|
|
|
|
|
|
|
|
|
|
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
|
|
|
|
|
printf("Vous avez désormais %d points sur la carte, vous nous devez %d €\n", tptsbought[place], topay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (tcateg[place] == 'A')
|
|
|
|
@ -191,7 +191,7 @@ void Recharge(int *tptsbought, int place, char *tcateg)
|
|
|
|
|
topay = dizpts * 6;
|
|
|
|
|
tptsbought[place] += nbpts;
|
|
|
|
|
|
|
|
|
|
printf("Vous avez désormais %d points sur la carte, vous nous devez %d\n", tptsbought[place], topay);
|
|
|
|
|
printf("Vous avez désormais %d points sur la carte, vous nous devez %d €\n", tptsbought[place], topay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -271,12 +271,14 @@ void CheckPts(int *tptsbonus, int *tptsbought, int *tpasseoupas, int *tacti, cha
|
|
|
|
|
|
|
|
|
|
if (ptsneeded <= tptsbought[place])
|
|
|
|
|
{
|
|
|
|
|
("Points suffisants, confirmation ? (O/N) \n");
|
|
|
|
|
scanf("%*c%c%*c", &confirm);
|
|
|
|
|
printf("Points suffisants, confirmation ? (O/N) \n");
|
|
|
|
|
scanf("%c%*c", &confirm);
|
|
|
|
|
if (confirm == 'O')
|
|
|
|
|
{
|
|
|
|
|
tptsbought[place] -= ptsneeded;
|
|
|
|
|
tptsbonus[place] += ptsneeded;
|
|
|
|
|
printf("Achat effectué\n");
|
|
|
|
|
|
|
|
|
|
if (tptsbonus[place] >= 100)
|
|
|
|
|
{
|
|
|
|
|
tptsbought[place] += 15;
|
|
|
|
|