protected bool DropItem(UserItem item) { Point droplocation = new Point(DropArea.Left + (DropArea.Width / 2), DropArea.Top); ItemObject ob = new ItemObject(this.LinkedMonster, item, droplocation) { Owner = this.LinkedMonster.EXPOwner, OwnerTime = Envir.Time + Settings.Minute, }; return(ob.DragonDrop(DropArea.Width / 2)); }
protected bool DropGold(uint gold) { if (this.LinkedMonster.EXPOwner != null && this.LinkedMonster.EXPOwner.CanGainGold(gold)) { this.LinkedMonster.EXPOwner.WinGold(gold); return(true); } Point droplocation = new Point(DropArea.Left + (DropArea.Width / 2), DropArea.Top); ItemObject ob = new ItemObject(this.LinkedMonster, gold, droplocation) { Owner = this.LinkedMonster.EXPOwner, OwnerTime = Envir.Time + Settings.Minute, }; return(ob.DragonDrop(DropArea.Width / 2)); }