diff --git a/client/scripts/ui/creation/creation_draft.gd b/client/scripts/ui/creation/creation_draft.gd index 181918e..ac6c589 100644 --- a/client/scripts/ui/creation/creation_draft.gd +++ b/client/scripts/ui/creation/creation_draft.gd @@ -15,7 +15,6 @@ extends RefCounted ## inside construct off the same seed, immediately after MAG, and never surfaces. const NewGame = preload("res://scripts/newgame/new_game.gd") -const POOL := 3 # mirrors NewGame.SPEND_POOL; validate() is the authority var name: String = "" var race_id: String = "" @@ -65,7 +64,10 @@ func spent_total() -> int: func points_left() -> int: - return POOL - spent_total() + ## NewGame.SPEND_POOL is the ONE authority on the pool's size. A local copy of the + ## number would be a second thing to keep in sync, and this class's whole contract + ## is that it keeps none. + return NewGame.SPEND_POOL - spent_total() func can_increment(stat: String) -> bool: