diff options
author | Arun Persaud <arun@nubati.net> | 2008-05-11 15:48:05 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-05-11 21:52:15 -0700 |
commit | 5973166a4b936e2f8e2d923bc6dcb8bc3db89d85 (patch) | |
tree | 4e553f3afceb9cf17cfe6d46ebe8cd255d80ac62 /include/functions.php | |
parent | 46319a55bbfaddcf07fed1c19120563807d9670d (diff) | |
download | e-DoKo-5973166a4b936e2f8e2d923bc6dcb8bc3db89d85.tar.gz e-DoKo-5973166a4b936e2f8e2d923bc6dcb8bc3db89d85.tar.bz2 e-DoKo-5973166a4b936e2f8e2d923bc6dcb8bc3db89d85.zip |
BUGFIX: rewrote poverty, should fix lots of bugs
poverty should work now, even if the user doesn't do everything in one go.
Cleaned up the layout at the same time. The cards were sometime displayed below the main page, which led to a lot of empty space...
Indicating whos turns it is during the pre-game phase should now be ok.
Also cleaned up whitespaces.
Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/functions.php b/include/functions.php index 382b148..31f9ba8 100644 --- a/include/functions.php +++ b/include/functions.php @@ -367,17 +367,17 @@ function create_array_of_random_numbers($useridA,$useridB,$useridC,$useridD) if($debug) { $r[ 0]=1; $r[12]=47; $r[24]=13; $r[36]=37; - $r[ 1]=2; $r[13]=48; $r[25]=14; $r[37]=38; + $r[ 1]=2; $r[13]=23; $r[25]=14; $r[37]=38; $r[ 2]=3; $r[14]=27; $r[26]=15; $r[38]=39; $r[ 3]=4; $r[15]=16; $r[27]=28; $r[39]=40; $r[ 4]=5; $r[16]=17; $r[28]=29; $r[40]=41; $r[ 5]=18; $r[17]=6; $r[29]=30; $r[41]=42; - $r[ 6]=19; $r[18]=7; $r[30]=31; $r[42]=43; - $r[ 7]=20; $r[19]=8; $r[31]=32; $r[43]=44; - $r[ 8]=45; $r[20]=9; $r[32]=21; $r[44]=33; - $r[ 9]=46; $r[21]=10; $r[33]=22; $r[45]=34; - $r[10]=35; $r[22]=11; $r[34]=23; $r[46]=25; - $r[11]=36; $r[23]=12; $r[35]=24; $r[47]=26; + $r[ 6]=21; $r[18]=7; $r[30]=31; $r[42]=43; + $r[ 7]=22; $r[19]=8; $r[31]=32; $r[43]=44; + $r[ 8]=45; $r[20]=9; $r[32]=19; $r[44]=33; + $r[ 9]=46; $r[21]=10; $r[33]=20; $r[45]=24; + $r[10]=35; $r[22]=11; $r[34]=48; $r[46]=25; + $r[11]=36; $r[23]=12; $r[35]=34; $r[47]=26; } else { @@ -703,6 +703,10 @@ function display_table () echo " <a href=\"".$INDEX."?action=game&me=".$hash."\">$name</a>\n"; /* add hints for poverty, wedding, solo, etc */ + if( $gametype != "solo") + if($GAME["schweinchen"] && $RULES["schweinchen"]=="both" && $GAME["schweinchen-who"]==$hash) + echo " Schweinchen. <br />"; + if($GT=="poverty" && $party=="re") if($sickness=="poverty") { |