Let's clarify things first, I'm very well aware of Yanfly's Extra Enemy Drops plugin, that would solve my problem, but I don't need that plugin in overall, I modified drop script like that:
It show dropped items and generaly I could go with it, but I think it will better look in message window when the result will look like that:
- Some Item A (4x)
- Some Item B (3x)
instead like currently
#1 Some Item A (1x)
#2 Some Item A (1x)
#3 Some Item A (1x)
#4 Some Item A (1x)
#5 Some Item B (1x)
#6 Some Item B (1x)
#7 Some Item B (1x)
JavaScript:
Soulrender.prototype.displayRewards = function(){
$gameMessage.clear();
var items = '';
var gold = $gameTroop.goldTotal();
var exp = $gameTroop.expTotal();
var spoils = BattleManager._rewards.items;
var i = 0;
var count = 1;
if (spoils.length > 0) {
spoils.forEach(function(item) {
i += 1;
items += "<br>#" + i + " \\i[" + item.iconIndex + "] " + item.name + " (" + count + "x)";
});
} else { items = "<br> \\hc[ff7366]► No Items\\hc[ffffff]"; }
$gameMessage.setPositionType(1);
$gameMessage.setBackground(0);
$gameMessage.add("\\msgrows[auto]<center>\\fs[28]\\hc[32cd32]You are Victorious!\\hc[ffffff]</center><WordWrap>\\fs[20]<br>Experience: \\hc[ffa81c]+" + exp + " XP\\hc[ffffff]<br>\\fs[20]Gold: \\hc[ffa81c]" + gold + "\\hc[ffffff]<br>Items:" + items);
}
It show dropped items and generaly I could go with it, but I think it will better look in message window when the result will look like that:
- Some Item A (4x)
- Some Item B (3x)
instead like currently
#1 Some Item A (1x)
#2 Some Item A (1x)
#3 Some Item A (1x)
#4 Some Item A (1x)
#5 Some Item B (1x)
#6 Some Item B (1x)
#7 Some Item B (1x)