Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SerializableDifficultyDef #353

Merged
merged 3 commits into from
Mar 7, 2022

Conversation

Nebby1999
Copy link
Contributor

A piece of code that was originally created on MSU, the SerializableDifficultyDef simply acts, as the name implies, as a Serializable version of DifficultyDef.

This can be used to pre-create difficultyDefs on thunderkit mods and then have them added by R2API's AddDifficulty() methods. The "finalized" difficultyDef is a property on the ScriptableObject and the DifficultyIndex can be obtained from another property on the ScriptableObject itself.

@Nebby1999
Copy link
Contributor Author

Turns out the 3 methods that add Items, Equipments and Elites to content additions would technically end up creating a contentPack for r2api, latest commit fixes this issue.

Tbh now i very much regret making those methods, but now i do not know if there are already mods that use ContentAddition for adding those instead of the API's there are... oh well 💀

R2API/EliteAPI.cs Show resolved Hide resolved
R2API/ItemAPI.cs Show resolved Hide resolved
R2API/ItemAPI.cs Show resolved Hide resolved
@tristanmcpherson tristanmcpherson merged commit 200bb69 into risk-of-thunder:master Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants