Просмотр исходного кода

Clean up code, passing in method redirectly instead of using lamba

Lewisaaronwelch 1 год назад
Родитель
Сommit
db2daeadfa
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Assets/CardEffect/BT22/Black/BT22_005.cs
  2. 1 1
      Assets/CardEffect/BT22/Green/BT22_001.cs

+ 1 - 1
Assets/CardEffect/BT22/Black/BT22_005.cs

@@ -26,7 +26,7 @@ namespace DCGO.CardEffects.BT22
 
 
                 bool CanUseCondition(Hashtable hashtable)
                 bool CanUseCondition(Hashtable hashtable)
                 {
                 {
-                    return CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, permanent => PermanentCondition(permanent), null);
+                    return CardEffectCommons.CanTriggerOnPermanentPlay(hashtable, PermanentCondition, null);
                 }
                 }
 
 
                 bool CanActivateCondition(Hashtable hashtable)
                 bool CanActivateCondition(Hashtable hashtable)

+ 1 - 1
Assets/CardEffect/BT22/Green/BT22_001.cs

@@ -26,7 +26,7 @@ namespace DCGO.CardEffects.BT22
 
 
                 bool CanUseCondition(Hashtable hashtable)
                 bool CanUseCondition(Hashtable hashtable)
                 {
                 {
-                    return CardEffectCommons.CanTriggerOnAddDigivolutionCard(hashtable, permanent => PermanentCondition(permanent), null, cardSource => CardCondition(cardSource));
+                    return CardEffectCommons.CanTriggerOnAddDigivolutionCard(hashtable, PermanentCondition, null, CardCondition);
                 }
                 }
 
 
                 bool CanActivateCondition(Hashtable hashtable)
                 bool CanActivateCondition(Hashtable hashtable)