Hello,
I have tried to get help from Discord, from plugin developers related to loot plugins on my server and I have had no help from anyone so I'm trying here. It seems like the Scarecrow is not sending data to the OnCorpsePopulate hook in order for AlphaLoot or any plugin for that matter, to modify the vanilla loot they have. Is anyone else seeing this and have a fix for it?
I tried to create a simple fix plugin and when they die, I get nothing, when I shoot Scientists I get data here in the puts statements.
private void OnCorpsePopulate(ScarecrowNPC player, NPCPlayerCorpse corpse)
{
Puts(player.ShortPrefabName + " " + player.PrefabName);
Puts(corpse.ShortPrefabName + " " + corpse.PrefabName);
if (corpse.PrefabName == "assets/prefabs/npc/murderer/murderer_corpse.prefab")
{
ItemContainer container = corpse.containers[0];
for (int i = container.itemList.Count - 1; i >= 0; i--)
{
Item item = container.itemList[i];
var shortname = item.info.shortname;
var category = item.info.category.ToString();
if (item.info.stackable > 1)
{
int itemMultiplier = 100;
item.amount *= itemMultiplier;
}
}
}
return;
}