Inverted
Builder to create an 'Inverted' loot condition.
This loot condition tests the given sub-condition, then inverts its result, effectively passing if and only if the sub-condition does not. Effectively, this means that the sub-condition gets a 'NOT' gate prepended to it. This loot condition thus acts as the vanilla counterpart of the Not loot condition. Differently from the one, though, the behavior of this loot condition may drift away from the raw 'Not' behavior if and when the base game alters its own condition.
An 'Inverted' condition requires a sub-condition to be built.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Implemented Interfaces
Inverted implements the following interfaces. That means all methods defined in these interfaces are also available in Inverted
Methods
Sets the inverted condition to the one created with the given LootConditionBuilder.
The builder must host a single loot condition. Builders with a different amount of conditions are not allowed. The builder will be used to generate a loot condition that will then be used as sub-condition.
This parameter is required.
Return Type: Inverted