@@ -470,6 +470,7 @@ describe("activateEffectsEachProducerItemsAccordingToCardUsage", () => {
470
470
kind : "afterCardEffectActivation" ,
471
471
cardDataId : "apirunokihon" ,
472
472
diffs : [ ] ,
473
+ modifiers : [ ] ,
473
474
} ,
474
475
( ) => 0 ,
475
476
createIdGenerator ( ) ,
@@ -660,6 +661,7 @@ describe("activateEffectsEachProducerItemsAccordingToCardUsage", () => {
660
661
kind : "afterCardEffectActivation" ,
661
662
cardDataId : "apirunokihon" ,
662
663
diffs : [ ] ,
664
+ modifiers : [ ] ,
663
665
} ,
664
666
( ) => 0 ,
665
667
createIdGenerator ( ) ,
@@ -705,6 +707,7 @@ describe("activateEffectsEachProducerItemsAccordingToCardUsage", () => {
705
707
kind : "afterCardEffectActivation" ,
706
708
cardDataId : "apirunokihon" ,
707
709
diffs : [ ] ,
710
+ modifiers : [ ] ,
708
711
} ,
709
712
( ) => 0 ,
710
713
createIdGenerator ( ) ,
@@ -5671,6 +5674,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5671
5674
cardDataId : "apirunokihon" ,
5672
5675
diffs : [ ] ,
5673
5676
idolParameterKind : "vocal" ,
5677
+ modifiers : [ ] ,
5674
5678
} ,
5675
5679
] ,
5676
5680
expected : true ,
@@ -5687,6 +5691,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5687
5691
cardDataId : "pozunokihon" ,
5688
5692
diffs : [ ] ,
5689
5693
idolParameterKind : "vocal" ,
5694
+ modifiers : [ ] ,
5690
5695
} ,
5691
5696
] ,
5692
5697
expected : false ,
@@ -5703,6 +5708,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5703
5708
cardDataId : "apirunokihon" ,
5704
5709
diffs : [ ] ,
5705
5710
idolParameterKind : "vocal" ,
5711
+ modifiers : [ ] ,
5706
5712
} ,
5707
5713
] ,
5708
5714
expected : true ,
@@ -5719,6 +5725,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5719
5725
cardDataId : "hyogennokihon" ,
5720
5726
diffs : [ ] ,
5721
5727
idolParameterKind : "vocal" ,
5728
+ modifiers : [ ] ,
5722
5729
} ,
5723
5730
] ,
5724
5731
expected : false ,
@@ -5735,6 +5742,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5735
5742
cardDataId : "hyogennokihon" ,
5736
5743
diffs : [ { kind : "vitality" , actual : 1 , max : 1 } ] ,
5737
5744
idolParameterKind : "vocal" ,
5745
+ modifiers : [ ] ,
5738
5746
} ,
5739
5747
] ,
5740
5748
expected : true ,
@@ -5751,6 +5759,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5751
5759
cardDataId : "apirunokihon" ,
5752
5760
diffs : [ { kind : "score" , actual : 1 , max : 1 } ] ,
5753
5761
idolParameterKind : "vocal" ,
5762
+ modifiers : [ ] ,
5754
5763
} ,
5755
5764
] ,
5756
5765
expected : false ,
@@ -5767,10 +5776,61 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5767
5776
cardDataId : "apirunokihon" ,
5768
5777
diffs : [ { kind : "vitality" , actual : 0 , max : 0 } ] ,
5769
5778
idolParameterKind : "vocal" ,
5779
+ modifiers : [ ] ,
5770
5780
} ,
5771
5781
] ,
5772
5782
expected : false ,
5773
5783
} ,
5784
+ // 基本的には scanIncreasedModifierKinds のテストで検証するので、パターンを増やしすぎない
5785
+ {
5786
+ name : "afterCardEffectActivation - effectKind - positiveImpression - 好印象を新規追加する時、満たす" ,
5787
+ args : [
5788
+ {
5789
+ kind : "afterCardEffectActivation" ,
5790
+ effectKind : "positiveImpression" ,
5791
+ } ,
5792
+ {
5793
+ kind : "afterCardEffectActivation" ,
5794
+ cardDataId : "mesennokihon" ,
5795
+ diffs : [
5796
+ {
5797
+ kind : "modifiers.addition" ,
5798
+ actual : { kind : "positiveImpression" , amount : 1 , id : "m1" } ,
5799
+ max : { kind : "positiveImpression" , amount : 1 , id : "m1" } ,
5800
+ } ,
5801
+ ] ,
5802
+ idolParameterKind : "vocal" ,
5803
+ modifiers : [ ] ,
5804
+ } ,
5805
+ ] ,
5806
+ expected : true ,
5807
+ } ,
5808
+ // 基本的には scanIncreasedModifierKinds のテストで検証するので、パターンを増やしすぎない
5809
+ {
5810
+ name : "afterCardEffectActivation - effectKind - positiveImpression - 好印象の値を増加する時、満たす" ,
5811
+ args : [
5812
+ {
5813
+ kind : "afterCardEffectActivation" ,
5814
+ effectKind : "positiveImpression" ,
5815
+ } ,
5816
+ {
5817
+ kind : "afterCardEffectActivation" ,
5818
+ cardDataId : "mesennokihon" ,
5819
+ diffs : [
5820
+ {
5821
+ kind : "modifiers.update" ,
5822
+ propertyNameKind : "amount" ,
5823
+ actual : 1 ,
5824
+ max : 1 ,
5825
+ id : "m1" ,
5826
+ } ,
5827
+ ] ,
5828
+ idolParameterKind : "vocal" ,
5829
+ modifiers : [ { kind : "positiveImpression" , amount : 1 , id : "m1" } ] ,
5830
+ } ,
5831
+ ] ,
5832
+ expected : true ,
5833
+ } ,
5774
5834
{
5775
5835
name : "afterCardEffectActivation - idolParameterKind - after - 満たさない" ,
5776
5836
args : [
@@ -5783,6 +5843,7 @@ describe("validateQueryOfReactiveEffectTrigger", () => {
5783
5843
cardDataId : "apirunokihon" ,
5784
5844
diffs : [ ] ,
5785
5845
idolParameterKind : "dance" ,
5846
+ modifiers : [ ] ,
5786
5847
} ,
5787
5848
] ,
5788
5849
expected : false ,
0 commit comments