public void Pickup(ItemGroup group) { if (WeaponBelt.IsWeapon(group.Id)) { _WeaponBelt.PutItem((group.Id, 1)); return; } if (!_Package.CanPackage(group.Id)) { return; } _Package.PutItem(group); }
public void ReceiveItem(ItemGroup group) { int remaining = WeaponBelt.PutItem(group).Remaining.FirstOrDefault().Count; if (remaining == 0) { return; } group.Count = remaining; remaining = Package.PutItem(group).Remaining.FirstOrDefault().Count; if (remaining == 0) { return; } group.Count = remaining; Drop(group); }