txt/terra/materials/abstract_material.py

25 lines
732 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from abc import ABC
from typing import Optional
class AbstractMaterial(ABC):
"""
Abstract materiak
"""
name: type[str] = "Абстрактный материал"
description: type[str] = "Нечто абстрактое"
hardness: type[int] = 0
health_multiplier: type[int] = 0
def leak(self) -> Optional[None]:
"""Leak"""
print("Вы чувствуете вкус пустоты, она вас пугает.")
def touch(self) -> Optional[None]:
"""Touch"""
print(
"Вы дотронулись до чего то настолько aбстрактного, что ничего не почувствали. Это вас пугает."
)