modules¶
- class ModulesMixin¶
Allows the entity to have modules, and keep track of the amount of modules currently inside the entity.
- property allowed_effects : set[str] | None¶
A set of all effect modifiers that this entity supports via modules and beacons. Returns
Noneif this entity’s name is not recognized by Draftsman.
- property allowed_modules : set[str] | None¶
A list of all valid modules that can be inserted into this entity. Determined by the ‘allowed_effects’ key in the data.raw entry for this entity. Returns
Noneif this entity’s name is not recognized by Draftsman.
- abstract property module_slots_occupied : int¶
The total number of module slots that are currently taken by inserted modules. Returns
0if unable to determine.
- property total_module_slots : int¶
The total number of module slots the Entity can hold. Returns
Noneif this entity’s name is not recognized by Draftsman.
- request_modules(
- inventory_id: InventoryType,
- module_name: str,
- slots: int | Iterable[int],
- quality: 'normal' | 'uncommon' | 'rare' | 'epic' | 'legendary' | 'quality-unknown' =
'normal', Loads module
module_nameinto the slot specified byslots, or multiple slots ifslotsis instead an iterable of integers.