]> ruin.nu Git - ndwebbie.git/blob - root/src/alliances/resources.tt2
Use top60 members to calculate estimated score
[ndwebbie.git] / root / src / alliances / resources.tt2
1 [% META title = 'Alliance resources' %]
2 <table>
3         <tr>
4                 <th>Name</th><th>Relationship</th><th>Members (in res calc)</th>
5                 <th><a href="[% c.uri_for('resources','score') %]">Score</a></th>
6                 <th><a href="[% c.uri_for('resources','size') %]">Size</a></th>
7                 <th><a href="[% c.uri_for('resources','resources') %]">Resources</a></th>
8                 <th><a href="[% c.uri_for('resources','hidden') %]">Hidden resources</a></th>
9                 <th><a href="[% c.uri_for('resources','resplanet') %]">Resources / Planet</a></th>
10                 <th><a href="[% c.uri_for('resources','hidplanet') %]">Hidden Resources / Planet</a></th>
11                 <th><a href="[% c.uri_for('resources','nscore') %]">Res score (gain)</a>[1]</th>
12                 <th><a href="[% c.uri_for('resources','nscore2') %]">Top res score (gain)</a>[2]</th>
13                 <th><a href="[% c.uri_for('resources','nscore3') %]">Estimated score</a>[3]</th>
14         </tr>
15 [% FOR a IN alliances %]
16         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
17                 <td><a href="[% c.uri_for("edit",a.id) %]">[% a.name %]</a></td>
18                 <td class="[% a.relationship %]">[% a.relationship %]</td>
19                 <td>[% a.members %] ([% a.planets %])</td>
20                 <td>[% comma(a.score) %]</td>
21                 <td>[% comma(a.size) %]</td>
22                 <td>[% comma(a.resources) %]</td>
23                 <td>[% comma(a.hidden) %]</td>
24                 <td>[% comma(a.resplanet) %]</td>
25                 <td>[% comma(a.hidplanet) %]</td>
26                 <td>[% comma(a.nscore) %] ([% a.nscore - a.score %])</td>
27                 <td>[% comma(a.nscore2) %] ([% a.nscore2 - a.score %])</td>
28                 <td>[% comma(a.nscore3) %] ([% a.nscore3 - a.score %])</td>
29         </tr>
30 [% END %]
31 </table>
32 <p>[1] = New score if resources are spent (gain is just the extra value compared to unspent resources) + hidden production getting released</p>
33 <p>[2] = Score for the top60 members, after res being spent and production getting released.</p>
34 <p>[3] = Same as [2] but also includes resources if roids are kept to end of round</p>