What is the best practice for changing the values of $game_options
I would like to change this
Change the 1->121, 2->61, 3->31 It would take away some gnarly if statements. My game is in Alpha, and I know that it doesn't matter much, but I am also trying to learn what would happen if I was in production and how to handle this change with grace.
I would like to change this
Code: Select all
100 => array(
'name' => totranslate('Game length'),
'values' => array(
1 => array( 'name' => totranslate( 'Standard game (121 points)' ) ),
2 => array( 'name' => totranslate( 'Quick game (61 points)' ) ),
3 => array( 'name' => totranslate( 'Debug game (31 points)' ) ),
),
'default' => 1
),