Skip to content

Commit

Permalink
Partial solved issue #1368
Browse files Browse the repository at this point in the history
@ii displayed double info, introduced in cef2f9e
  • Loading branch information
Atemo committed Jun 16, 2016
1 parent 30ca913 commit abf939c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/map/atcommand.c
Expand Up @@ -7611,16 +7611,17 @@ ACMD_FUNC(iteminfo)
sprintf(atcmd_output, msg_txt(sd,1280), item_data->value_buy, item_data->value_sell, item_data->weight/10. ); // NPC Buy:%dz, Sell:%dz | Weight: %.1f
clif_displaymessage(fd, atcmd_output);

if (item_data->maxchance == -1)
if (item_data->maxchance == -1) {
strcpy(atcmd_output, msg_txt(sd,1281)); // - Available in the shops only.
clif_displaymessage(fd, atcmd_output);
}
else if (!battle_config.atcommand_mobinfo_type) {
if (item_data->maxchance)
sprintf(atcmd_output, msg_txt(sd,1282), (float)item_data->maxchance / 100 ); // - Maximal monsters drop chance: %02.02f%%
else
strcpy(atcmd_output, msg_txt(sd,1283)); // - Monsters don't drop this item.
clif_displaymessage(fd, atcmd_output);
}
clif_displaymessage(fd, atcmd_output);

}
return 0;
}
Expand Down

0 comments on commit abf939c

Please sign in to comment.