ai_module ![code/modules/antagonists/malf_ai/malf_ai_modules.dm 119](git.png)
The base module type, which holds info about each ability.
Vars | |
one_purchase | If this module can only be purchased once. This always applies to upgrades, even if the variable is set to false. |
---|---|
power_type | If the module gives an active ability, use this. Mutually exclusive with upgrade. |
unlock_sound | Sound played when an ability is unlocked |
unlock_text | Text shown when an ability is unlocked |
upgrade | If the module gives a passive upgrade, use this. Mutually exclusive with power_type. |
Procs | |
upgrade | Applies upgrades |
Var Details
one_purchase ![code/modules/antagonists/malf_ai/malf_ai_modules.dm 125](git.png)
If this module can only be purchased once. This always applies to upgrades, even if the variable is set to false.
power_type ![code/modules/antagonists/malf_ai/malf_ai_modules.dm 127](git.png)
If the module gives an active ability, use this. Mutually exclusive with upgrade.
unlock_sound ![code/modules/antagonists/malf_ai/malf_ai_modules.dm 135](git.png)
Sound played when an ability is unlocked
unlock_text ![code/modules/antagonists/malf_ai/malf_ai_modules.dm 131](git.png)
Text shown when an ability is unlocked
upgrade ![code/modules/antagonists/malf_ai/malf_ai_modules.dm 129](git.png)
If the module gives a passive upgrade, use this. Mutually exclusive with power_type.
Proc Details
upgrade
Applies upgrades