Loot Action Classes

Note

These classes provide extra types of tests that can be used in tunables.

Subject Loot Operation

class CommonSubjectLootOperation(*_, subject=interactions.ParticipantType.Actor, **__)

Bases: BaseLootOperation

A loot operation with a subject.

_apply_to_subject_and_target(subject, target, resolver)

Apply the loot operation.

Return type:

None

Subject Target Loot Operation

class CommonSubjectTargetLootOperation(*_, subject=interactions.ParticipantType.Actor, target=interactions.ParticipantType.Object, **__)

Bases: LootOperationTargetFilterTestMixin, CommonSubjectLootOperation

A loot operation with a subject and target.

_apply_to_subject_and_target(subject, target, resolver)

Apply the loot operation.

Return type:

None

Loot Actions

class CommonLootActions(*args, **kwargs)

Bases: LootActions

Loot actions.

Loot Action Variant

class CommonLootActionVariant(*args, statistic_pack_safe=False, **kwargs)

Bases: LootActionVariant

Loot actions variants, where the different loots are.