Skip to content

Commit 03ac322

Browse files
v1.7 - abilities
1 parent e388a4b commit 03ac322

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
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.6.0.0</Version>
7+
<Version>1.7.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.7
3+
- Added support for custom abilities!
4+
25
## v1.6
36
- Changed textures to point filter to reduce blur.
47

Plugin.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Plugin : BaseUnityPlugin
1414
{
1515
private const string PluginGuid = "cyantist.inscryption.api";
1616
private const string PluginName = "API";
17-
private const string PluginVersion = "1.6.0.0";
17+
private const string PluginVersion = "1.7.0.0";
1818

1919
internal static ManualLogSource Log;
2020

@@ -556,9 +556,10 @@ public class NewAbility
556556
public Type abilityBehaviour;
557557
public Texture tex;
558558

559-
public NewAbility(Ability ability, AbilityInfo info, Type abilityBehaviour, Texture tex)
559+
public NewAbility(AbilityInfo info, Type abilityBehaviour, Texture tex)
560560
{
561-
this.ability = ability;
561+
this.ability = (Ability) 100 + NewAbility.abilities.Count;
562+
info.ability = this.ability;
562563
this.info = info;
563564
this.abilityBehaviour = abilityBehaviour;
564565
this.tex = tex;
@@ -763,7 +764,7 @@ public static void Postfix(AbilityMetaCategory metaCategory, RuleBookInfo __inst
763764
PageRangeInfo pageRange = pageRangeInfo;
764765
Func<int, bool> doAddPageFunc;
765766
doAddPageFunc = (int index) => customAbilities.Contains(index) && AbilitiesUtil.GetInfo((Ability)index).metaCategories.Contains(metaCategory);
766-
__result.AddRange(__instance.ConstructPages(pageRange, max+1, min, doAddPageFunc, new Action<RuleBookPageInfo, PageRangeInfo, int>(__instance.FillAbilityPage), Localization.Translate("APPENDIX XII, SUBSECTION VI - CUSTOM ABILITIES {0}")));
767+
__result.AddRange(__instance.ConstructPages(pageRange, max+1, min, doAddPageFunc, new Action<RuleBookPageInfo, PageRangeInfo, int>(__instance.FillAbilityPage), Localization.Translate("APPENDIX XII, SUBSECTION I - MOD ABILITIES {0}")));
767768
}
768769
}
769770
}

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Inscryption API made by Cyantist
44

55
This plugin is a BepInEx plugin made for Inscryption as an API.
6-
It can currently create custom cards and inject them into the card pool, or modify existing cards in the card pool.
6+
It can currently:
7+
- Create custom cards and inject them into the card pool
8+
- Modify existing cards in the card pool
9+
- Create custom abilities and inject them into the ability pool
10+
- Create custom regions
711

812
## Installation (automated)
913
This is the recommended way to install the API on the game.
@@ -43,25 +47,21 @@ If you want help debugging you can find me on the [Inscryption Modding Discord](
4347
## Development
4448
At the moment I am working on:
4549

46-
- Cleaning the plugins code up
4750
- Adding comments
48-
- Improving the parameter handle order and names
4951
- Documentation
52+
- Custom special abilities
5053

5154
The next planned features for this plugin are:
5255

53-
- Extending the loader to handle and load custom abilities, boons and items.
54-
55-
Future planned features for this plugin include:
56-
57-
- Automatic installation
56+
- Extending the loader to handle and load custom ~~abilities,~~ boons and items.
5857

5958
## Contribution
6059
### How can you help?
6160
Use the plugin and report bugs you find! Lots of traits won't be designed to work well together and may cause bugs or crashes. At the very least we can document this. Ideally we can create generic patches for them.
6261
### But really, I want to help develop this mod
63-
Great! I'm more than happy to accept help. Either make a pull request or come join us over in Daniel Mullins Discord, you can normally find me in the thread Modding in #inscribe-datamine but hopefully we'll have a dedicated channel soon
62+
Great! I'm more than happy to accept help. Either make a pull request or come join us over in the [Inscryption Modding Discord](https://discord.gg/QrJEF5Denm).
63+
### Can I donate?
64+
Donations are totally not needed, this is a passion project before anything else. If you do still want to donate though, you can buy me a coffee on [ko-fi](https://ko-fi.com/madcyantist).
6465

6566
## Contributors
66-
67-
Windows10CE
67+
- Windows10CE

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "API",
3-
"version_number": "1.6.0",
3+
"version_number": "1.7.0",
44
"website_url": "https://github.com/ScottWilson0903/InscryptionAPI",
5-
"description": "This plugin is a BepInEx plugin made for Inscryption as an API. It can currently create custom cards and inject them into the card pool, or modify existing cards in the card pool.",
5+
"description": "This plugin is a BepInEx plugin made for Inscryption as an API. It can currently create custom cards and abilities and inject them into the data pool, or modify existing cards in the card pool.",
66
"dependencies": [
77
"BepInEx-BepInExPack_Inscryption-5.4.1701"
88
]

0 commit comments

Comments
 (0)