refactor: update Python version and optimize dice configuration parameters
This commit is contained in:
@@ -3,11 +3,10 @@ from diceplayer.dice.dice_handler import DiceHandler
|
||||
from diceplayer.logger import logger
|
||||
from diceplayer.state.state_handler import StateHandler
|
||||
from diceplayer.state.state_model import StateModel
|
||||
from diceplayer.utils.potential import read_system_from_phb
|
||||
|
||||
from typing_extensions import TypedDict, Unpack
|
||||
|
||||
from diceplayer.utils.potential import read_system_from_phb
|
||||
|
||||
|
||||
class PlayerFlags(TypedDict):
|
||||
continuation: bool
|
||||
@@ -33,9 +32,7 @@ class Player:
|
||||
|
||||
if state is None:
|
||||
system = read_system_from_phb(self.config)
|
||||
state = StateModel(
|
||||
config=self.config, system=system
|
||||
)
|
||||
state = StateModel(config=self.config, system=system)
|
||||
else:
|
||||
logger.info("Resuming from existing state.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user