Skip to content

Commit

Permalink
Rename variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor-g committed Feb 8, 2024
1 parent af7a09c commit 9cd0bcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project/ui/start_scene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func _add_debug_start_options() -> void:


func _add_turns_per_year_buttons() -> void:
for i in range(1, World.MAX_TURNS_PER_YEAR + 1):
for i in range(1, World.DEFAULT_TURNS_PER_YEAR + 1):
var button: Control = preload("res://ui/audible_button.tscn").instantiate()
button.text = str(i)
button.pressed.connect(_on_turns_per_year_button_pressed.bind(i))
Expand Down
5 changes: 2 additions & 3 deletions project/world/world.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## The state of the game world
class_name World extends RefCounted

## The maximum number of turns that can be taken in a year
const MAX_TURNS_PER_YEAR := 3
const DEFAULT_TURNS_PER_YEAR := 3

## The current character whose story is being played
var character := Character.new()
Expand All @@ -21,7 +20,7 @@ var cast := Cast.new()
## All the locations
var game_map := GameMap.new()

var turns_per_year := MAX_TURNS_PER_YEAR
var turns_per_year := DEFAULT_TURNS_PER_YEAR

var year := Year.Name.FRESHMAN

Expand Down

0 comments on commit 9cd0bcf

Please sign in to comment.