public static bool TryLoot(this ILockable lockable, Character chr) { if (!lockable.CanOpen(chr)) { return(false); } LockEntry.Loot(lockable, chr); return(true); }