visual changes
This commit is contained in:
parent
55c9dc4b8e
commit
993eb242d8
6
w/w.c
6
w/w.c
|
@ -829,7 +829,6 @@ void update(char* command)
|
|||
{
|
||||
state.hero.gold -= item.price;
|
||||
state.inventory[i].count++;
|
||||
// debugoutput("%d\n", item.count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -933,7 +932,6 @@ void draw()
|
|||
}*/
|
||||
|
||||
printf("\n\n");
|
||||
printf("i: Inventaire\n");
|
||||
if (charatpos(state.position.x, state.position.y) == TILE_START)
|
||||
{
|
||||
printf("r: Retour à la station\n");
|
||||
|
@ -974,8 +972,7 @@ void draw()
|
|||
{
|
||||
Item item = state.inventory[i];
|
||||
printf("%c: %s\n", item.id, item.name);
|
||||
printf("price: %d\n", item.price);
|
||||
printf("owned: %d\n", item.count);
|
||||
printf("%s en a %d. Prix: %d\n", state.hero.name, item.count, item.price);
|
||||
}
|
||||
|
||||
printf("\nr: Retour à la station\n");
|
||||
|
@ -992,6 +989,7 @@ void draw()
|
|||
for (int i = 0; i < screenwidth; i++) printf("-");
|
||||
printf("\n");
|
||||
printf("%s | P.V. : %d | C.G. : %d", state.hero.name, state.hero.hp, state.hero.gold);
|
||||
printf("\npotions : %d", state.inventory[0].count);
|
||||
}
|
||||
|
||||
debugoutput();
|
||||
|
|
Loading…
Reference in New Issue