21 lines
515 B
Python
21 lines
515 B
Python
|
from dataclasses import dataclass
|
||
|
|
||
|
from models.weapon.abstract_weapon import AbstractWeapon
|
||
|
from models.user_body.abstract_body_part import AbstractBodyPart
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class Head(AbstractWeapon, AbstractBodyPart):
|
||
|
name = "Голова"
|
||
|
description = "Твоя голова - пока что на плечах"
|
||
|
|
||
|
damage = 0
|
||
|
health = 100
|
||
|
hardness = 0
|
||
|
difficult_handling = 15
|
||
|
|
||
|
def punch(self, weapon):
|
||
|
|
||
|
AbstractBodyPart.punch(self, weapon=weapon)
|
||
|
print("Вы идиот.")
|