Generate treasure hoards

This commit is contained in:
henriquenakashima 2021-03-28 18:36:08 -04:00
parent 541991d404
commit 97782ab212
7 changed files with 132 additions and 9 deletions

View file

@ -3,6 +3,8 @@ import enum
from typing import List
from map.treasure_hoard import TreasureHoard
class EncounterType(enum.Enum):
INACCESSIBLE = 'inaccessible'
@ -60,6 +62,15 @@ class MapEncounter:
return str(self.type)
@dataclasses.dataclass
class BattleEncounter(MapEncounter):
treasure_hoard: TreasureHoard
@property
def description(self) -> str:
return f'{self.type} [{self.treasure_hoard.description}]'
class QuestMap:
def __init__(self):
# List of rows of encounters, each row has 3 encounters.