@@ -51,7 +51,7 @@ public class CustomCard
5151 public IceCubeIdentifier iceCubeId ;
5252 public TailIdentifier tailId ;
5353
54- public CustomCard ( string name )
54+ public CustomCard ( string name , List < AbilityIdentifier > abilityId = null , EvolveIdentifier evolveId = null , IceCubeIdentifier iceCubeId = null , TailIdentifier tailId = null )
5555 {
5656 this . name = name ;
5757 CustomCard . cards . Add ( this ) ;
@@ -60,7 +60,7 @@ public CustomCard(string name)
6060 List < AbilityIdentifier > toRemove = new List < AbilityIdentifier > ( ) ;
6161 if ( this . abilityId is not null )
6262 {
63- foreach ( AbilityIdentifier id in this . abilityId )
63+ foreach ( AbilityIdentifier id in abilityId )
6464 {
6565 if ( id . id != 0 )
6666 {
@@ -72,27 +72,27 @@ public CustomCard(string name)
7272 this . abilityId . Remove ( id ) ;
7373 }
7474 }
75- if ( this . abilityId is not null && this . abilityId . Count > 0 )
75+ if ( abilityId is not null && this . abilityId . Count > 0 )
7676 {
77- CustomCard . abilityIds [ CustomCard . cards . Count - 1 ] = this . abilityId ;
77+ CustomCard . abilityIds [ CustomCard . cards . Count - 1 ] = abilityId ;
7878 }
7979
8080 // Handle EvolveIdentifier
81- if ( this . evolveId is not null )
81+ if ( evolveId is not null )
8282 {
83- CustomCard . evolveIds [ CustomCard . cards . Count - 1 ] = this . evolveId ;
83+ CustomCard . evolveIds [ CustomCard . cards . Count - 1 ] = evolveId ;
8484 }
8585
8686 // Handle IceCubeIdentifier
87- if ( this . iceCubeId is not null )
87+ if ( iceCubeId is not null )
8888 {
89- CustomCard . iceCubeIds [ CustomCard . cards . Count - 1 ] = this . iceCubeId ;
89+ CustomCard . iceCubeIds [ CustomCard . cards . Count - 1 ] = iceCubeId ;
9090 }
9191
9292 // Handle TailIdentifier
93- if ( this . tailId is not null )
93+ if ( tailId is not null )
9494 {
95- CustomCard . tailIds [ CustomCard . cards . Count - 1 ] = this . tailId ;
95+ CustomCard . tailIds [ CustomCard . cards . Count - 1 ] = tailId ;
9696 }
9797 }
9898
0 commit comments