Esempio n. 1
0
        public static void Prefix(LootableOnDeath __instance, ref bool __0)
        {
            if (!ShouldGenLoot(__instance, ref __0))
            {
                return;
            }

            ItemContainer container = __instance.Character.Inventory.Pouch;

            LootUtils.TryGenerateLoot(container, __instance.Character, DiabloItemExtension.ItemSource.MobDrop);
        }
Esempio n. 2
0
        public static void Postfix(SelfFilledItemContainer __instance)
        {
            if (__instance is TreasureChest)
            {
                if (PhotonNetwork.isNonMasterClientInRoom)
                {
                    return;
                }

                LootUtils.TryGenerateLoot(__instance, null, DiabloItemExtension.ItemSource.ChestLoot, (TreasureChest)__instance);
            }
        }