Skip to content

Commit 1036bee

Browse files
committed
Changed AbilityIdentifier.cs GetAbilityIdentifier to GetID.
Renamed getTerrainBackroundAppearance to getTerrainBackgroundAppearance Renamed inner evolution variable to _evolution to avoid confusion.
1 parent 13500fa commit 1036bee

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Models/Identifiers/AbilityIdentifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private AbilityIdentifier(string guid, string name)
1717
ids.Add(this);
1818
}
1919

20-
public static AbilityIdentifier GetAbilityIdentifier(string guid, string name)
20+
public static AbilityIdentifier GetID(string guid, string name)
2121
{
2222
return ids.Exists(x => x.guid == guid && x.name == name)
2323
? ids.Find(x => x.guid == guid && x.name == name)

Models/Identifiers/EvolveIdentifier.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ public EvolveIdentifier(string name, int turnsToEvolve, CardModificationInfo mod
4141

4242
private void SetParams(CardInfo card)
4343
{
44-
EvolveParams evolution = new EvolveParams();
44+
EvolveParams _evolution = new EvolveParams();
4545

46-
evolution.turnsToEvolve = this.turnsToEvolve;
46+
_evolution.turnsToEvolve = this.turnsToEvolve;
4747

48-
evolution.evolution = card;
48+
_evolution.evolution = card;
4949

5050
if (this.mods != null)
5151
{
52-
evolution.evolution.mods.Add(this.mods);
52+
_evolution.evolution.mods.Add(this.mods);
5353
}
5454

55-
this.evolution = evolution;
55+
this.evolution = _evolution;
5656
}
5757

5858
public override string ToString()

Utils/CardUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static class CardUtils
4242
public static List<CardAppearanceBehaviour.Appearance> getRareAppearance = new()
4343
{ CardAppearanceBehaviour.Appearance.RareCardBackground };
4444

45-
public static List<CardAppearanceBehaviour.Appearance> getTerrainBackroundAppearance = new()
45+
public static List<CardAppearanceBehaviour.Appearance> getTerrainBackgroundAppearance = new()
4646
{
4747
CardAppearanceBehaviour.Appearance.TerrainBackground
4848
};

0 commit comments

Comments
 (0)