Skip to content

Commit 1e1c137

Browse files
committed
Merge branch 'feature/util_additions_V2' of https://github.com/julian-perge/InscryptionAPI into julian-perge-feature/util_additions_V2
2 parents 6ef05c7 + 59d5911 commit 1e1c137

23 files changed

Lines changed: 425 additions & 338 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using DiskCardGame;
33
using UnityEngine;
4+
45
#pragma warning disable 169
56

67
namespace APIPlugin
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)
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ namespace APIPlugin
44
{
55
public class EvolveIdentifier
66
{
7-
private string name;
8-
private int turnsToEvolve;
7+
private string name;
8+
private int turnsToEvolve;
99
private CardModificationInfo mods;
1010
private EvolveParams evolution;
11+
1112
public EvolveParams Evolution
1213
{
1314
get
@@ -26,6 +27,7 @@ public EvolveParams Evolution
2627
}
2728
}
2829
}
30+
2931
return this.evolution;
3032
}
3133
}
@@ -34,28 +36,28 @@ public EvolveIdentifier(string name, int turnsToEvolve, CardModificationInfo mod
3436
{
3537
this.name = name;
3638
this.turnsToEvolve = turnsToEvolve;
37-
this.mods = mods;
39+
this.mods = mods;
3840
}
3941

4042
private void SetParams(CardInfo card)
4143
{
42-
EvolveParams evolution = new EvolveParams();
44+
EvolveParams _evolution = new EvolveParams();
4345

44-
evolution.turnsToEvolve = this.turnsToEvolve;
46+
_evolution.turnsToEvolve = this.turnsToEvolve;
4547

46-
evolution.evolution = card;
48+
_evolution.evolution = card;
4749

4850
if (this.mods != null)
4951
{
50-
evolution.evolution.mods.Add(this.mods);
52+
_evolution.evolution.mods.Add(this.mods);
5153
}
5254

53-
this.evolution = evolution;
55+
this.evolution = _evolution;
5456
}
5557

5658
public override string ToString()
5759
{
5860
return name;
5961
}
6062
}
61-
}
63+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)