Tool Collection
Estimated reading time: 2 minutesThe ToolCollection module aggregates 8 sub-tool modules in a facade pattern, accessible via maplebirch.tool.
Submodule Overview
Additionally, there are convenience properties:
Global Utilities
The framework mounts a set of utility functions on window for direct use: clone, merge, equal, contains, random, either, SelectCase, convert, number, loadImage, etc. See Utilities for details.
Console
Console tools provide developers with quick testing and debugging capabilities.
defineMacros (Macro Definitions)
Used to define and manage SugarCube2 macros:
The framework registers combat-related macros such as generateCombatAction and combatButtonAdjustments through this module.
applyLinkZone (Link Zone)
Handles the application logic for link zones in the game:
