You are viewing a potentially older version of this package. View all versions.
RiskofThunder-R2API_Rulebook-1.0.0 icon

R2API Rulebook

API for registering rules to the Rule Catalog

Date uploaded 2 years ago
Version 1.0.0
Download link RiskofThunder-R2API_Rulebook-1.0.0.zip
Downloads 40094
Dependency string RiskofThunder-R2API_Rulebook-1.0.0

This mod requires the following mods to function

RiskofThunder-HookGenPatcher-1.2.3 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.3
bbepis-BepInExPack-5.4.2109 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2109
RiskofThunder-R2API_Core-5.0.8 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.0.8

README

R2API.Rules - Creation and Management of custom Rules for the Rule Catalog

About

R2API.Rules is a submodule assembly for R2API that simplifies and augments the process of interacting with the game's RuleDef system. The RuleDef system is what the game uses in the lobby for deciding what Artifacts, Expansions, and Difficulty will be chosen in the run.

Use Cases / Features

R2API.Rules can be used for mods to add their own RuleDefs to existing RuleCategoryDefs, or to new RuleCategoryDefs that can be created from code.

The main feature of the Rules submodule is the addition of the ExtendedRuleChoiceDef, an extension of RuleChoiceDef that allows mod creators to specify multiple requirements for a RuleDef to be selectable/enabled in the game. (Such as having multiple ExpansionDefs or UnlockableDef requirements.)

Related Pages

A Wiki page explaining how the Rule system works and how to create new rules will be added to the R2Wiki Soon(tm)

Changelog

'1.0.0'

Initial Release