Table of Contents

Forbidden Actions Mechanic

Game mechanics allow certain hero classes to have forbidden actions. Some classes cannot perform specific actions in the game.

List of Possible Actions to Forbid

Usage

These actions can be restricted in the initHeroes.json configuration file for specific hero classes using the forbiddenActions array.

Example: Gnoll Class

The Gnoll class forbids reading scrolls, reading tome of mastery, and inscribing with arcane stylus:

"forbiddenActions": [
  "Scroll_ACRead",
  "TomeOfMastery_ACRead",
  "Stylus_ACInscribe"
]

Implementation

The HeroClass.forbidden(String action) method in HeroClass.java checks if an action is in the class's forbiddenActions set. The action constants are defined in various item classes and CommonActions.java.

Content Verification