Skip to content

Condition Object

Smartin-b edited this page Sep 26, 2022 · 27 revisions

Overview

The Condition Object allows to set animation behind other conditions than just one major module. It is required. If no type is set the condition is regarded as true and only the subconditions and its own config play a role. If a subcondition has a valid config and is true the config of the subcondition takes priority. The java implementation can be found here.

Structure

The Condition Object has the following attributes:

  • type,
  • key,
  • value,
  • improvement,
  • config,
  • conditions (this is a list of ConditionObjects).

Types

The type dictates what kind of condition is checked against.

Empty / no value / default handling

This conditions is regarded as true no matter what

"module"

key is required
It represents the module slot
value is required
It represents the Module in the Slot
improvement has no use for the type "module"
Example

"improvement"

key is optional It represents the module slot key
value is optional It represents key the actual module in the slot
improvement is required
It represents the key of the improvement.
If a slot or/and module are set it only checks on these conditions.
Example