コード例 #1
0
 public static void ThrowWeapon(Mobile from, Item thrown)
 {
     if (from.Items.Contains(thrown))
     {
         ThrowingTarget t = new ThrowingTarget(thrown);
         from.Target = t;
     }
     else
     {
         from.SendMessage("You must be holding that weapon to use it.");
     }
 }
コード例 #2
0
ファイル: WeaponThrowing.cs プロジェクト: jsrn/ZUOmbies
 public static void ThrowWeapon( Mobile from, Item thrown )
 {
     if ( from.Items.Contains( thrown ) )
     {
         ThrowingTarget t = new ThrowingTarget( thrown );
         from.Target = t;
     }
     else
     {
         from.SendMessage( "You must be holding that weapon to use it." );
     }
 }