Changeset 37531 for lang/csharp

Show
Ignore:
Timestamp:
05/14/10 22:00:24 (3 years ago)
Author:
isaisstillalive
Message:
  • Moneylenderを実装
Location:
lang/csharp/DominionEngine
Files:
1 added
2 modified
1 moved

Legend:

Unmodified
Added
Removed
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/DominionEngine.CardInfo.Base.csproj

    r37525 r37531  
    5656    <Compile Include="Militia.cs" /> 
    5757    <Compile Include="Mine.cs" /> 
     58    <Compile Include="Moneylender.cs" /> 
    5859    <Compile Include="NotImplemented\Adventurer.cs" /> 
    5960    <Compile Include="NotImplemented\Bureaucrat.cs" /> 
    6061    <Compile Include="NotImplemented\Library.cs" /> 
    6162    <Compile Include="NotImplemented\Moat.cs" /> 
    62     <Compile Include="NotImplemented\Moneylender.cs" /> 
    6363    <Compile Include="NotImplemented\Spy.cs" /> 
    6464    <Compile Include="NotImplemented\Thief.cs" /> 
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/Moneylender.cs

    r37522 r37531  
    1313        { 
    1414            //Trash a Copper from your hand. 
    15             var trashCard = Player.Choose(CardPosition.Hand, 1, cardinfo => cardinfo is Copper); 
     15            var trashCard = Player.Choose(CardPosition.Hand, cardinfo => cardinfo is Copper); 
    1616            trashCard.Trash(); 
    1717            //If you do, +3 Coin. 
    18             if (trashCard.Count == 0) return; 
    19             Player.Coin += 3; 
    20  
    21             //ChoosenCard trashedCard = Trash<Copper>(From.YourHand); 
    22             //if (trashedCard != null) Player.Coin += 3; 
     18            if (trashCard.Count == 1) Player.Coin += 3; 
    2319        } 
    2420    } 
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Test/DominionEngine.CardInfo.Test.csproj

    r37518 r37531  
    5353    <Compile Include="Base\WitchTest.cs" /> 
    5454    <Compile Include="Base\FeastTest.cs" /> 
     55    <Compile Include="Base\MoneylenderTest.cs" /> 
    5556    <Compile Include="CardInfoResourcesTest.cs" /> 
    5657    <Compile Include="DDL\CardTest.cs" />