Skip to content

Commit 95eb3a8

Browse files
Adjusted to work with thunderstore
1 parent f3c8f7d commit 95eb3a8

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Plugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private void AddBears(){
3838
List<CardAppearanceBehaviour.Appearance> appearanceBehaviour = new List<CardAppearanceBehaviour.Appearance>();
3939
appearanceBehaviour.Add(CardAppearanceBehaviour.Appearance.RareCardBackground);
4040

41-
byte[] imgBytes = System.IO.File.ReadAllBytes("BepInEx/plugins/CardLoader/Artwork/eightfuckingbears.png");
41+
byte[] imgBytes = System.IO.File.ReadAllBytes(Path.Combine(this.Info.Location,"Artwork/eightfuckingbears.png"));
4242
Texture2D tex = new Texture2D(2,2);
4343
tex.LoadImage(imgBytes);
4444

@@ -59,7 +59,7 @@ private NewAbility AddAbility()
5959
lines.Add(line);
6060
info.abilityLearnedDialogue = new DialogueEvent.LineSet(lines);
6161

62-
byte[] imgBytes = System.IO.File.ReadAllBytes("BepInEx/plugins/CardLoader/Artwork/new.png");
62+
byte[] imgBytes = System.IO.File.ReadAllBytes(Path.Combine(this.Info.Location,"Artwork/new.png"));
6363
Texture2D tex = new Texture2D(2,2);
6464
tex.LoadImage(imgBytes);
6565

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ One customised card is provided in the Plugin class with method name ChangeWolf.
99
To install this plugin first you need to install BepInEx as a mod loader for Inscryption. A guide to do this can be found [here](https://docs.bepinex.dev/articles/user_guide/installation/index.html#where-to-download-bepinex). Inscryption needs the 86x (32 bit) mono version.
1010

1111
You will also need to install the [CardLoaderPlugin](https://github.com/ScottWilson0903/InscryptionAPI)
12-
To install ExampleMod with just the default example card included "Eight Fucking Bears!" and example modified wolf, you simply need to copy **API.dll** from [releases](https://github.com/ScottWilson0903/InscryptionAPI/releases) and the **Artwork** folder from the source code zip in [releases](https://github.com/ScottWilson0903/InscryptionAPI/releases) to a **CardLoader** folder inside **Inscryption/BepInEx/plugins**.
12+
To install ExampleMod with just the default example card included "Eight Fucking Bears!" and example modified wolf, you simply need to copy **API.dll** from [releases](https://github.com/ScottWilson0903/InscryptionAPI/releases) and the **Artwork** folder from the source code zip in [releases](https://github.com/ScottWilson0903/InscryptionAPI/releases) to a **Cyantist-ExampleMod** folder inside **Inscryption/BepInEx/plugins**.
1313

1414
To generate your own cards, you will need to either pass in an already created **CardInfo** object to the **NewCard.Add** function, or you will need to pass all the required and optional parameters to the **NewCard** constructor as done in **Plugin.AddBears**. Any png files should be added to the **Artwork** folder and should be 114x94 pixels.
1515
To alter existing cards you will need to pass the card name and the values you want to change to the optional parameters in the **CustomCard** constructor, as done in **Plugin.ChangeWolf**.

icon.png

1.98 KB
Loading

manifest.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "ExampleMod",
3+
"version_number": "1.0.0",
4+
"website_url": "https://github.com/ScottWilson0903/InscryptionExampleMod",
5+
"description": "This plugin is a BepInEx plugin made for Inscryption to create custom cards and abilities for the API by Cyantist.",
6+
"dependencies": [
7+
"BepInEx-BepInExPack_Inscryption-5.4.1701",
8+
"API_dev-API-1.8.1"
9+
]
10+
}

0 commit comments

Comments
 (0)