2021-08-03 17:53:25 +00:00
|
|
|
__all__ = ['Action']
|
|
|
|
__author__ = "Jeremy Saklad"
|
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
from dataclasses import dataclass, field
|
|
|
|
|
|
|
|
@dataclass(frozen=True)
|
2021-08-03 17:12:11 +00:00
|
|
|
class Action:
|
|
|
|
"""An action that affects a skeleton's qualities."""
|
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
__slots__ = '__dict__', 'name'
|
|
|
|
|
|
|
|
name: str
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Cost in pennies of using this action, including the value of the actions spent
|
|
|
|
cost: float = field(metadata={'unit': 'pennies'})
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Torso Style
|
|
|
|
torso_style: int = None
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Approximate Value of Your Skeleton in Pennies
|
|
|
|
value: int = field(default=0, metadata={'unit': 'pennies'})
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Skulls Needed
|
|
|
|
skulls_needed: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Limbs Needed
|
|
|
|
limbs_needed: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Tails Needed
|
|
|
|
tails_needed: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Skulls
|
|
|
|
skulls: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Arms
|
|
|
|
arms: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Legs
|
|
|
|
legs: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Tails
|
|
|
|
tails: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Wings
|
|
|
|
wings: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Fins
|
|
|
|
fins: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Tentacles
|
|
|
|
tentacles: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Amalgamy
|
|
|
|
amalgamy: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Antiquity
|
|
|
|
antiquity: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Menace
|
|
|
|
menace: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Self-Evident Implausibility
|
|
|
|
implausibility: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Skeleton: Support for a Counter-church Theology
|
|
|
|
counter_church: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
2021-09-18 22:13:57 +00:00
|
|
|
# Bone Market Exhaustion
|
|
|
|
exhaustion: int = 0
|
2021-08-03 17:12:11 +00:00
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return str(self.name)
|