X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Fdraw_wins.c;h=ad4cc382ca6842757e095f25b6151b2d6a06ecbc;hb=4ef56162c092eeb768f483b5228af13df2abaf90;hp=ec2917347903b5ae6b44f4907fe7b291127c26c3;hpb=eda9c448812827e36b71fa1c3eb76d0fb906b57d;p=plomrogue diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c index ec29173..ad4cc38 100644 --- a/src/client/draw_wins.c +++ b/src/client/draw_wins.c @@ -426,10 +426,17 @@ extern void draw_win_info(struct Win * win) { char * dsc_turn = "Turn: "; char * dsc_hitpoints = "\nHitpoints: "; - uint16_t maxl = strlen(dsc_turn) + 5 + strlen(dsc_hitpoints) + 3; + char * dsc_satiation = "\nSatiation: "; + char * dsc_godsmood = "\nGod's mood: "; // 7DRL + char * dsc_godsfavor = "\nGod's favor: "; // 7DRL + uint16_t maxl = strlen(dsc_turn) + 5 + strlen(dsc_hitpoints) + 3 // + + strlen(dsc_satiation) + 6 + strlen(dsc_godsmood) + 6 // + + strlen(dsc_godsfavor) + 6; // char * text = try_malloc(maxl + 1, __func__); - int test = sprintf(text, "%s%d%s%d", dsc_turn, world.turn, dsc_hitpoints, - world.player_lifepoints); + int test = sprintf(text, "%s%d%s%d%s%d%s%d%s%d", dsc_turn, world.turn, + dsc_hitpoints, world.player_lifepoints, dsc_satiation, + world.player_satiation, dsc_godsmood, world.godsmood, // + dsc_godsfavor, world.godsfavor); // exit_trouble(test < 0, __func__, "sprintf"); add_text_with_linebreaks(win, text); free(text);