- Updated @mobinfo to display slots in the drop information.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8141 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
f2acf50b24
commit
4b49756a40
@ -3,6 +3,7 @@ Date Added
|
|||||||
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
|
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
|
||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
2006/08/04
|
2006/08/04
|
||||||
|
* Updated @mobinfo to display slots in the drop information. [Skotlex]
|
||||||
* Fixed flag.elefix not being respected in battle_calc_misc_damage.
|
* Fixed flag.elefix not being respected in battle_calc_misc_damage.
|
||||||
[Skotlex]
|
[Skotlex]
|
||||||
* Some code cleanups in battle_calc_damage. [Skotlex]
|
* Some code cleanups in battle_calc_damage. [Skotlex]
|
||||||
|
@ -9737,9 +9737,11 @@ int atcommand_mobinfo(
|
|||||||
strcpy(atcmd_output, " ");
|
strcpy(atcmd_output, " ");
|
||||||
j = 0;
|
j = 0;
|
||||||
for (i = 0; i < MAX_MOB_DROP; i++) {
|
for (i = 0; i < MAX_MOB_DROP; i++) {
|
||||||
if (mob->dropitem[i].nameid <= 0 || (item_data = itemdb_search(mob->dropitem[i].nameid)) == NULL)
|
if (mob->dropitem[i].nameid <= 0 || mob->dropitem[i].p < 1 || (item_data = itemdb_search(mob->dropitem[i].nameid)) == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (mob->dropitem[i].p > 0) {
|
if (item_data->slot)
|
||||||
|
sprintf(atcmd_output2, " - %s[%d] %02.02f%%", item_data->jname, item_data->slot, (float)mob->dropitem[i].p / 100);
|
||||||
|
else
|
||||||
sprintf(atcmd_output2, " - %s %02.02f%%", item_data->jname, (float)mob->dropitem[i].p / 100);
|
sprintf(atcmd_output2, " - %s %02.02f%%", item_data->jname, (float)mob->dropitem[i].p / 100);
|
||||||
strcat(atcmd_output, atcmd_output2);
|
strcat(atcmd_output, atcmd_output2);
|
||||||
if (++j % 3 == 0) {
|
if (++j % 3 == 0) {
|
||||||
@ -9747,7 +9749,6 @@ int atcommand_mobinfo(
|
|||||||
strcpy(atcmd_output, " ");
|
strcpy(atcmd_output, " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (j == 0)
|
if (j == 0)
|
||||||
clif_displaymessage(fd, "This monster has no drops.");
|
clif_displaymessage(fd, "This monster has no drops.");
|
||||||
else if (j % 3 != 0)
|
else if (j % 3 != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user