diff --git a/w/w.c b/w/w.c index 878c0fe..2e72c69 100644 --- a/w/w.c +++ b/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); } } } @@ -932,8 +931,7 @@ void draw() break; }*/ - printf("\n\n"); - printf("i: Inventaire\n"); + printf("\n\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();