Inscryption Mod: Icey Trap - A Useless Card
Inscryption Mod: Icey Trap - A Useless Card
This mod adds a new card called 'Icey Trap' to Inscryption. It's completely useless and does nothing, but it's a fun little addition to the game.
using InscryptionAPI;
using InscryptionCommunityPatch;
using InscryptionAPI.Card;
using DiskCardGame;
namespace tf2k_useless_inscryption_mod
{
public static class Cards
{
// ICY_TRAP 冰霜陷阱
public static CardInfo ICY_TRAP;
public static void CreateCards()
{
ICY_TRAP = CardManager.New('t_useless', 'icy_trap', '冰霜陷阱', 0, 1, '不要碰它')
.SetDefaultPart1Card()
.SetCost(bloodCost:0,bonesCost:0)
.SetPortrait('textures/icy_traps.png')
.SetRare();
}
public static void RegisterCards()
{
CreateCards();
CardManager.Add(ICY_TRAP);
}
}
}
Error Troubleshooting:
The error message "Type 'SerializedScriptableObject' in assembly..." means that the necessary assembly for the 'SerializedScriptableObject' type is missing from your project. This is likely because you're using an outdated or incomplete version of the InscryptionAPI.
Here's how to fix it:
- Update your InscryptionAPI: Make sure you have the latest version of InscryptionAPI installed. You can find the latest version on the InscryptionAPI GitHub repository.
- Check your references: Ensure that your project references the correct InscryptionAPI assembly. You can do this in your project settings.
- Reinstall dependencies: If you've recently made changes to your project, try reinstalling the dependencies that are needed for the InscryptionAPI.
How to Use this Mod:
- Download the code above and save it as a C# file within your Inscryption mod project.
- Compile and run your mod.
- You should now see the 'Icey Trap' card in your deck.
Note: This code assumes you have a basic understanding of C# and Inscryption Modding.
This is a simple example of how to create a custom card for Inscryption. You can use this as a starting point to create your own unique and interesting cards. Have fun modding!
原文地址: https://www.cveoy.top/t/topic/oRla 著作权归作者所有。请勿转载和采集!