# HG changeset patch # User Emmanuel Gil Peyrot # Date 1327280653 -3600 # Node ID 0aab9b34299eee6d59475916b557a4ea19eab7b6 # Parent 3ac8b135592c68fa5bd5d98402ad4060516170ef Use better defaults for player, and start the stage as if in practice mode. diff --git a/eosd b/eosd --- a/eosd +++ b/eosd @@ -43,7 +43,8 @@ def main(path, stage_num, rank, characte resource_loader = Loader(path) resource_loader.scan_archives(data) - game = EoSDGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16, + default_power = [0, 64, 128, 128, 128, 128, 0][stage_num - 1] + game = EoSDGame(resource_loader, [PlayerState(character=character, power=default_power)], stage_num, rank, 16, prng=prng) # Load stage data diff --git a/pytouhou/game/player.py b/pytouhou/game/player.py --- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -22,7 +22,7 @@ from math import pi class PlayerState(object): - def __init__(self, character=0, score=0, power=0, lives=0, bombs=0): + def __init__(self, character=0, score=0, power=0, lives=2, bombs=3): self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/... self.score = score