summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-26 13:32:07 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-26 13:32:07 +0000
commit7f2a12250794e5897f39acfa7314db7f926bdf12 (patch)
tree101b8ac86ced9ce1ab1fe8be672dd20a7335226e /src/map/atcommand.c
parent7d1f1f18cce9dc4ec17e2f9f69e9ceb8b7eb323c (diff)
downloadhercules-7f2a12250794e5897f39acfa7314db7f926bdf12.tar.gz
hercules-7f2a12250794e5897f39acfa7314db7f926bdf12.tar.bz2
hercules-7f2a12250794e5897f39acfa7314db7f926bdf12.tar.xz
hercules-7f2a12250794e5897f39acfa7314db7f926bdf12.zip
* Fixed items, that get dropped at 100% chance, being reported in @iteminfo as 'available in the shops only' (since/replaces r3482).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14627 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 277f770b8..95b3dc33e 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7432,12 +7432,12 @@ ACMD_FUNC(iteminfo)
sprintf(atcmd_output, "NPC Buy:%dz, Sell:%dz | Weight: %.1f ", item_data->value_buy, item_data->value_sell, item_data->weight/10. );
clif_displaymessage(fd, atcmd_output);
- if (item_data->maxchance == 10000)
- strcpy(atcmd_output, " - Available in the shops only");
+ if (item_data->maxchance == -1)
+ strcpy(atcmd_output, " - Available in the shops only.");
else if (item_data->maxchance)
sprintf(atcmd_output, " - Maximal monsters drop chance: %02.02f%%", (float)item_data->maxchance / 100 );
else
- strcpy(atcmd_output, " - Monsters don't drop this item");
+ strcpy(atcmd_output, " - Monsters don't drop this item.");
clif_displaymessage(fd, atcmd_output);
}