Turn dev mode into sandbox menu
This commit is contained in:
parent
68985316e5
commit
c325501999
19 changed files with 651 additions and 54 deletions
|
|
@ -73,6 +73,8 @@ func _process(delta: float) -> bool:
|
|||
game_state.start_dev_game()
|
||||
if not game_state.dev_mode:
|
||||
return _fail("start_dev_game() did not set dev_mode")
|
||||
if game_state.intro_active:
|
||||
return _fail("dev mode still starts at the prologue instead of after it")
|
||||
for resource_type in game_state.resource_types():
|
||||
var banked: int = game_state.banked_resource(resource_type)
|
||||
if banked != GameState.DEV_RESOURCE_AMOUNT:
|
||||
|
|
@ -116,6 +118,8 @@ func _process(delta: float) -> bool:
|
|||
game_state.reset_new_game()
|
||||
if game_state.dev_mode:
|
||||
return _fail("starting a normal game after a dev one left dev_mode set")
|
||||
if game_state.dev_unlimited_resources:
|
||||
return _fail("starting a normal game kept unlimited resources enabled")
|
||||
if game_state.rocks != 0 or game_state.research_points != 0:
|
||||
return _fail("starting a normal game after a dev one kept the dev stock")
|
||||
print("starting a normal game afterwards clears dev mode entirely")
|
||||
|
|
|
|||
Loading…
Reference in a new issue