Mercurial > boosterpack
changeset 6:4246c7ef6487 boosterpack
[svn r8] bug fix -- holos need to be one int three compared to rares
author | robert |
---|---|
date | Tue, 08 Sep 2009 17:20:52 -0400 |
parents | e91d6f908222 |
children | 4c495190076f |
files | index.html index.pl rlm/booster.prefs style.css |
diffstat | 4 files changed, 17 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/index.html Tue Sep 08 06:55:23 2009 -0400 1.2 +++ b/index.html Tue Sep 08 17:20:52 2009 -0400 1.3 @@ -10,7 +10,7 @@ 1.4 1.5 <form id="radiobuttons"> 1.6 <h3>Pick a Set: </h3> 1.7 - <input TYPE="radio" onclick="change_rules(['radio1'], ['result'] );" ID="radio1" NAME="radio1" VALUE="Base Set" checked="checked"><a href="#">Base Set</a> 1.8 + <input TYPE="radio" onclick="change_rules(['radio1'], ['result'] );" ID="radio1" NAME="radio1" VALUE="Base Set"><a href="#">Base Set</a> 1.9 <input TYPE="radio" onclick="change_rules(['radio1'], ['result'] );" ID="radio1" NAME="radio1" VALUE="Jungle"><a href="#">Jungle</a> 1.10 <input TYPE="radio" onclick="change_rules(['radio1'], ['result'] );" ID="radio1" NAME="radio1" VALUE="Fossil"><a href="#">Fossil</a> 1.11 <input TYPE="radio" onclick="change_rules(['radio1'], ['result'] );" ID="radio1" NAME="radio1" VALUE="Team Rocket"><a href="#">Team Rocket</a> 1.12 @@ -30,5 +30,13 @@ 1.13 1.14 1.15 1.16 +<b>Rules:</b><br> 1.17 + 1.18 + 1.19 + 1.20 + 1.21 + 1.22 + 1.23 + 1.24 </body> 1.25 </html> 1.26 \ No newline at end of file
2.1 --- a/index.pl Tue Sep 08 06:55:23 2009 -0400 2.2 +++ b/index.pl Tue Sep 08 17:20:52 2009 -0400 2.3 @@ -93,7 +93,7 @@ 2.4 my $unum = $mapRules{"Uncommon"}; 2.5 my $cnum = $mapRules{"Common"}; 2.6 2.7 - 2.8 + $holochoose = int(rand(3)); 2.9 ##########3 2.10 #my $rnum = 500; 2.11 #my $unum =500; 2.12 @@ -102,7 +102,11 @@ 2.13 ############## 2.14 for $crd(@reduced) 2.15 { 2.16 - if (($crd -> hasTags("Rare") or $crd -> hasTags("Rare Holo"))and ($rnum>0)){push @r_list, $crd; $rnum--;} 2.17 + 2.18 + 2.19 + if ($holochoose==0 or $holochoose==1 ){if (($crd -> hasTags("Rare"))and ($rnum>0)){push @r_list, $crd; $rnum--;}} 2.20 + if ($holochoose==2){if (($crd -> hasTags("Rare Holo"))and ($rnum>0)){push @r_list, $crd; $rnum--;}} 2.21 + #if (($crd -> hasTags("Rare") or $crd -> hasTags("Rare Holo"))and ($rnum>0)){push @r_list, $crd; $rnum--;} 2.22 if (($crd -> hasTags("Uncommon"))and ($unum>0)){push @u_list, $crd; $unum--;} 2.23 if (($crd -> hasTags("Common"))and ($cnum>0)){push @c_list, $crd; $cnum--;} 2.24 if ($rnum+$unum+$cnum == 0){last;} 2.25 @@ -135,6 +139,7 @@ 2.26 { 2.27 open FILE, "<index.html"; 2.28 return do { local $/; <FILE> }; 2.29 + 2.30 }; 2.31 2.32 #print "done";
3.1 Binary file rlm/booster.prefs has changed
4.1 --- a/style.css Tue Sep 08 06:55:23 2009 -0400 4.2 +++ b/style.css Tue Sep 08 17:20:52 2009 -0400 4.3 @@ -57,7 +57,7 @@ 4.4 #out1{background:#fff url("./pkb.jpg") no-repeat;background-position:bottom right;} 4.5 4.6 4.7 -#header,#footer{background:#e0eeff;border:1px solid #c3d9ff;} 4.8 +#header,#footer,#rules{background:#e0eeff;border:1px solid #c3d9ff;} 4.9 4.10 /*#header,#footer{background:#f66;border:none;} 4.11 #header{border-bottom:2px solid #000;}