Equippable
Equippable
class
¶
def __init__(self, equipment_type=EquipmentType.WEAPON, power_bonus=0, defense_bonus=0, owner=None):
Component which makes an item equippable and grant bonuses.
It expects an instance of Item
as the owner.
Attributes
Name | Type | Description |
---|---|---|
equipment_type |
EquipmentType
|
Type of equipment. |
power_bonus |
int
|
Power bonus granted by the equipment. |
defense_bons |
int
|
Defense bonus granted by the equipment. |
owner |
Item | None
|
|
Parameters
Name | Type | Description | Default |
---|---|---|---|
equipment_type |
EquipmentType
|
Type of equipment. |
EquipmentType.WEAPON
|
power_bonus |
int
|
Power bonus granted by the equipment. |
0
|
defense_bonus |
int
|
Defense bonus granted by the equipment. |
0
|
owner |
Item | None
|
|
None
|