Constant: Wrapper | |
---|---|
Mod | Psi |
Type | Constant |
Group | Flow Control |
Return type | Number Constant |
Parameters | |
Target | Number |
Constant | Number Constant |
Technical details | |
Registry name | constantWrapper |
Constant: Wrapper is a Number Constant Spell Piece added by Psi. It is used to allow a Trick Spell Piece to operate on a variable while using a constant as the value to calculate Psi cost (in other words, the maximum the variable can be). Mathematically, it can be expressed as:
where is any number, and is the assigned constant.
It is unlocked in the lesson "Flow Control."
Parameters[]
- Target: Requires a number. When using this Spell Piece this is commonly a variable.
- Constant: Requires a number constant. It essentially sets the Psi cost of the spell and the maximum of the Target parameter.