Ejemplo n.º 1
0
 public static bool TryLoot(this ILockable lockable, Character chr)
 {
     if (!lockable.CanOpen(chr))
     {
         return(false);
     }
     LockEntry.Loot(lockable, chr);
     return(true);
 }
Ejemplo n.º 2
0
 public static bool TryLoot(this ILockable lockable, Character chr)
 {
     if (CanOpen(lockable, chr))
     {
         // just open it
         LockEntry.Loot(lockable, chr);
         return(true);
     }
     return(false);
 }