|
@ -21,6 +21,8 @@ |
|
|
* @package game |
|
|
* @package game |
|
|
**/ |
|
|
**/ |
|
|
|
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die(); |
|
|
|
|
|
|
|
|
function game_millionaire_continue( $id, $game, $attempt, $millionaire, $context) { |
|
|
function game_millionaire_continue( $id, $game, $attempt, $millionaire, $context) { |
|
|
// User must select quiz or question as a source module. |
|
|
// User must select quiz or question as a source module. |
|
|
if (($game->quizid == 0) and ($game->questioncategoryid == 0)) { |
|
|
if (($game->quizid == 0) and ($game->questioncategoryid == 0)) { |
|
@ -235,8 +237,9 @@ function game_millionaire_showgrid( $game, $millionaire, $id, $query, $aanswer, |
|
|
|
|
|
|
|
|
$bfirst = true; |
|
|
$bfirst = true; |
|
|
$letters = get_string( 'millionaire_lettersall', 'game'); |
|
|
$letters = get_string( 'millionaire_lettersall', 'game'); |
|
|
if( ($letters == '') or ($letters == '-')) |
|
|
if (($letters == '') or ($letters == '-')) { |
|
|
$letters = get_string( 'lettersall', 'game'); |
|
|
$letters = get_string( 'lettersall', 'game'); |
|
|
|
|
|
} |
|
|
for ($i = 1; $i <= count( $aanswer); $i++) { |
|
|
for ($i = 1; $i <= count( $aanswer); $i++) { |
|
|
$name = "btAnswer".$i; |
|
|
$name = "btAnswer".$i; |
|
|
$s = game_substr( $letters, $i - 1, 1); |
|
|
$s = game_substr( $letters, $i - 1, 1); |
|
@ -466,7 +469,7 @@ function game_millionaire_loadquestions( $game, $millionaire, &$query, &$aanswer |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Flag 1:5050, 2:telephone 4:people. |
|
|
// Flag 1 is 5050, 2 is telephone 4 is people. |
|
|
function game_millionaire_setstate( &$millionaire, $mask) { |
|
|
function game_millionaire_setstate( &$millionaire, $mask) { |
|
|
global $DB; |
|
|
global $DB; |
|
|
|
|
|
|
|
|