Exemplo n.º 1
0
        public override bool OnBeforeDeath()
        {
            //if (!this.Controlled && this.FindItemOnLayer(Layer.Pants) != null)
            //    this.FindItemOnLayer(Layer.Pants).Delete();
            if (Mounted)
            {
                Dismount(this);
            }
            //if (this.ControlMaster != null && Backpack != null)//祝福的物品掉主人包里。
            //移动到   public override DeathMoveResult GetInventoryMoveResultFor(Item item)
            //{
            //    for (int i = Backpack.Items.Count - 1; i >= 0; --i)
            //    {
            //        if (i >= Backpack.Items.Count)
            //            continue;
            //        if ((Backpack.Items[i]).LootType == LootType.Blessed)
            //            this.ControlMaster.Backpack.DropItem(Backpack.Items[i]);
            //    }
            //}
            polymorph(0xbe, this);
            PackAnimal.CombineBackpacks(this);
            if (!Controlled && Utility.Random(10) < 1)
            {
                GoldShower.DoForChamp(Location, Map);
            }

            return(base.OnBeforeDeath());
        }
Exemplo n.º 2
0
        public override bool OnBeforeDeath()
        {
            if (!this.NoKillAwards)
            {
                this.GivePowerScrolls();

                if (this.NoGoodies)
                {
                    return(base.OnBeforeDeath());
                }

                GoldShower.DoForChamp(Location, Map);
            }

            return(base.OnBeforeDeath());
        }
Exemplo n.º 3
0
        public override bool OnBeforeDeath()
        {
            if (!NoKillAwards)
            {
                if (CanGivePowerscrolls)
                {
                    GivePowerScrolls();
                }

                if (DoesGoldShower)
                {
                    GoldShower.DoForChamp(Location, Map);
                }
            }

            return(base.OnBeforeDeath());
        }