Skip to content

Commit 0e026f8

Browse files
Added support for energy
1 parent eaa952b commit 0e026f8

16 files changed

+68
-25
lines changed

API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>API</AssemblyName>
66
<Description>An API for inscryption</Description>
7-
<Version>1.8.2.0</Version>
7+
<Version>1.9.0.0</Version>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<LangVersion>9.0</LangVersion>
1010
</PropertyGroup>

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## v1.9
3+
- Added config options for energy.
4+
25
## v1.8.2
36
- Fixed appearanceBehaviour (again).
47

Models/CustomCard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ public CardInfo AdjustCard(CardInfo card)
7878
return card;
7979
}
8080
}
81-
}
81+
}

Models/CustomRegion.cs

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

56
namespace APIPlugin
67
{
@@ -48,4 +49,4 @@ public RegionData AdjustRegion(RegionData region)
4849
}
4950

5051
}
51-
}
52+
}

Models/NewAbility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ public NewAbility(AbilityInfo info, Type abilityBehaviour, Texture tex)
2424
Plugin.Log.LogInfo($"Loaded custom ability {info.rulebookName}!");
2525
}
2626
}
27-
}
27+
}

Models/NewCard.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void Add(string name, List<CardMetaCategory> metaCategories, CardC
5353
card.onePerDeck = onePerDeck;
5454
card.specialStatIcon = specialStatIcon;
5555
card.temple = temple;
56-
56+
5757
if (tribes is not null)
5858
{
5959
card.tribes = tribes;
@@ -161,4 +161,4 @@ private static void DetermineAndSetCardArt(
161161
}
162162
}
163163
}
164-
}
164+
}

Models/NewRegion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ public NewRegion(RegionData region, int tier){
1616
Plugin.Log.LogInfo($"Loaded custom region {region.name}!");
1717
}
1818
}
19-
}
19+
}

Patches/Abilities.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace API.Patches
1010
{
11-
[HarmonyPatch(typeof(AbilitiesUtil),
12-
"LoadAbilityIcon",
11+
[HarmonyPatch(typeof(AbilitiesUtil),
12+
"LoadAbilityIcon",
1313
new Type[] { typeof(string), typeof(bool), typeof(bool) })]
1414
public class AbilitiesUtil_LoadAbilityIcon
1515
{
@@ -61,4 +61,4 @@ ref List<Ability> __result
6161
}
6262
}
6363
}
64-
}
64+
}

Patches/CardTriggerHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public static bool Prefix(Ability ability, CardTriggerHandler __instance)
1515
{
1616
return true;
1717
}
18-
18+
1919
Predicate<Tuple<Ability, AbilityBehaviour>> checkAbilityExists = tuple =>
2020
tuple.Item1 == ability || AbilityCanStackAndIsNotPassive(ability);
2121

22-
// return true if the ability is equal to pair item1 OR if ability cannot stack and is passive
22+
// return true if the ability is equal to pair item1 OR if ability cannot stack and is passive
2323
if (!__instance.triggeredAbilities.Exists(checkAbilityExists))
2424
{
2525
NewAbility newAbility = NewAbility.abilities.Find((NewAbility x) => x.ability == ability);
@@ -42,4 +42,4 @@ public static bool AbilityCanStackAndIsNotPassive(Ability ability)
4242
return AbilitiesUtil.GetInfo(ability).canStack && !AbilitiesUtil.GetInfo(ability).passive;
4343
}
4444
}
45-
}
45+
}

Patches/ChapterSelectMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ public static void Prefix()
3232
}
3333
}
3434
}
35-
}
35+
}

0 commit comments

Comments
 (0)