We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a69de commit 1be6624Copy full SHA for 1be6624
Patches/CardDisplayer3D.cs
@@ -0,0 +1,27 @@
1
+using APIPlugin;
2
+using DiskCardGame;
3
+using HarmonyLib;
4
+using UnityEngine;
5
+
6
+namespace API.Patches
7
+{
8
+ [HarmonyPatch(typeof(CardDisplayer3D), "GetEmissivePortrait")]
9
+ public class CardDisplayer3D_GetEmissivePortrait
10
+ {
11
+ static bool Prefix(Sprite mainPortrait, ref Sprite __result)
12
13
+ Sprite sprite;
14
+ if (NewCard.emissions.TryGetValue(mainPortrait.name, out sprite))
15
16
+ __result = sprite;
17
+ return false;
18
+ }
19
+ if (CustomCard.emissions.TryGetValue(mainPortrait.name, out sprite))
20
21
22
23
24
+ return true;
25
26
27
+}
0 commit comments