This commit is contained in:
mark 2009-05-24 06:13:10 +00:00
parent b9e4f72708
commit b2356de9b4
10 changed files with 141 additions and 24 deletions

View file

@ -190,7 +190,20 @@ namespace Server.Items
Weight = 3.0;
}
public override int DefaultMaxWeight { get { if ( Core.ML ) { return 550; } else { return 400; } } }
public override int DefaultMaxWeight {
get {
if ( Core.ML ) {
Mobile m = ParentEntity as Mobile;
if ( m != null && m.Backpack == this ) {
return 550;
} else {
return base.DefaultMaxWeight;
}
} else {
return base.DefaultMaxWeight;
}
}
}
public Backpack( Serial serial ) : base( serial )
{