chiark / gitweb /
Commodity location in deciles
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 Nov 2009 15:55:59 +0000 (15:55 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 14 Nov 2009 15:55:59 +0000 (15:55 +0000)
yarrg/web/docs
yarrg/web/routetrade

index 5c058bdde9232372a7f7d066ccb4e7708d313c00..0f6249199c07344c4b17a919c4387ce4187cd0ab 100755 (executable)
@@ -210,22 +210,25 @@ comes the initial letter of the category:
         @{ $getclasses->fetchall_arrayref() }
 %>.
 <p>
-Then, if applicable, follows one of the following indications:
-<% join ', ', map { "<strong>$_</strong>" } qw(tt t m b bb) %>
-indicating whether the commodity is in the top, 2nd, middle,
-2nd-to-last or bottom fifth of the list of commodities of the same
-class, respectively.
+
+Then, if applicable, follows a number from <strong>0</strong> to
+<strong>9</strong> indicating roughly where the commodity is in the
+list of commodities of the same class.  The number indicates which
+tenth of the list is: <strong>0</strong> for the first (top) tenth,
+<strong>1</strong> for the 2nd, and so on, up to <strong>9</strong>
+for the final tenth.
+
 <p>
 For example,
 <blockquote>
 <table><tr>
 <td>Fine pink cloth&nbsp;&nbsp;
 <td><div class=mouseover
- title="Fine pink cloth is under Cloth, commodity 14 of 55">C t</div>
+ title="Fine pink cloth is under Cloth, commodity 14 of 55">C 2</div>
 </table>
 </blockquote>
 indicates that Fine pink cloth can be found under Cloth,
-between 20% and 40% of the way down through the types of Cloth.
+between 20% and 30% of the way down through the types of Cloth.
 If you mouseover that in a suitably equipped browser you should see the
 text:
 <blockquote>
@@ -233,7 +236,7 @@ Fine pink cloth is under Cloth, commodity 14 of 55
 </blockquote>
 <p>
 
-The position indicator (tt, t, etc.) isn't shown for very small
+The position indicator digit isn't shown for very small
 categories.
 
 The exact location of the commodity in the actual game
index 72e9bf7a8a96cf706e4557d6fd26cadfb2dfd2e2..b5b5bf34c32d160b60ba45810e3f656c5bf5646c 100644 (file)
@@ -710,9 +710,9 @@ END
                                $desc.= (sprintf ", commodity %d of %d",
                                        $incl, $maxpic);
                                if ($classinfo->{'maxposinclass'} >= 8) {
-                                       my @tmbs= qw(tt t m b bb);
+                                       my @tmbs= qw(0 1 2 3 4 5 6 7 8 9);
                                        my $tmbi= ($incl+0.5)*$#tmbs/$maxpic;
-                                       $abbrev.= " ".$tmbs[$tmbi];
+                                       $abbrev.= " ".$tmbs[$tmbi]."&nbsp;";
                                }
                        }
                        $$todo->{'posinclass'}=