# Path: components/material.py
# class Material(Component):
#     NAME = "material"
#     """
#     This defines a material that is used in other compositions like items/tiles.
#     Hardness is the modifier to AC
#     Sharpness modifies damage
#     Potency modifies enchantment chance/max value
#     Value is the modifier for gold worth.
#     """
#     def __init__(self, uid, name="", hardness=0.0, sharpness=0.0, potency=0.0, weight=0.0, value=0.0):
#         super().__init__()
#         self.uid = uid
#         self.name = name
#         self.hardness = hardness
#         self.sharpness = sharpness
#         self.potency = potency
#         self.weight = weight
#         self.value = value
# 
#     def __str__(self):
#         return "Material({})".format(self.name)
# 
#     def copy(self):
#         return Material(uid=self.uid, name=self.name, hardness=self.hardness, sharpness=self.sharpness,
#                         potency=self.potency, weight=self.weight, value=self.value)


from components.material import Material


# This Assumes most pieces of armor will have 1 AC as base.


Skin = Material('skin', 'Skin', hardness=0, sharpness=0, potency=0.2, weight=0.1, value=0)
Flesh = Material('flesh', 'Flesh', hardness=0, sharpness=0, potency=0.2, weight=0.15, value=0)
Fur = Material('fur', 'Fur', hardness=0.1, sharpness=0, potency=0.2, weight=1, value=1)

# Path: components/material.py
# class Material(Component):
#     NAME = "material"
#     """
#     This defines a material that is used in other compositions like items/tiles.
#     Hardness is the modifier to AC
#     Sharpness modifies damage
#     Potency modifies enchantment chance/max value
#     Value is the modifier for gold worth.
#     """
#     def __init__(self, uid, name="", hardness=0.0, sharpness=0.0, potency=0.0, weight=0.0, value=0.0):
#         super().__init__()
#         self.uid = uid
#         self.name = name
#         self.hardness = hardness
#         self.sharpness = sharpness
#         self.potency = potency
#         self.weight = weight
#         self.value = value
# 
#     def __str__(self):
#         return "Material({})".format(self.name)
# 
#     def copy(self):
#         return Material(uid=self.uid, name=self.name, hardness=self.hardness, sharpness=self.sharpness,
#                         potency=self.potency, weight=self.weight, value=self.value)


# Path: data/python_templates/material.py
from components.material import Material



# This Assumes most pieces of armor will have 1 AC as base.


Skin = Material('skin', 'Skin', hardness=0, sharpness=0, potency=0.2, weight=0.1, value=0)
Flesh = Material('flesh', 'Flesh', hardness=0, sharpness=0, potency=0.2, weight=0.15, value=0)
Fur = Material('fur', 'Fur', hardness=0.1, sharpness=0, potency=0.2, weight=1, value=1)

Leather = Material('leather', 'Leather', hardness=0.1, sharpness=0, potency=0.2, weight=1, value=1)