| 1 | ## $Id$ | 
|---|
| 2 | #encoding UTF-8 | 
|---|
| 3 | #import os | 
|---|
| 4 | #import operator | 
|---|
| 5 | #include $os.path.expanduser($config.get('template', 'header')) | 
|---|
| 6 | #for $tnum, $entry in $enumerate($result.history) | 
|---|
| 7 |  | 
|---|
| 8 | <div class="day"> | 
|---|
| 9 | <h2><span class="title">ターン $operator.add($tnum, 1)</span></h2> | 
|---|
| 10 | <div class="body"> | 
|---|
| 11 | #for $act in $entry.actions | 
|---|
| 12 |  | 
|---|
| 13 | <div class="section"> | 
|---|
| 14 | #if $act.skill | 
|---|
| 15 | <h3><span class="sanchor">★</span> <span class="invokeskill">$act.attacker.name()は$act.skillを繰り出した!!</span></h3> | 
|---|
| 16 | #else | 
|---|
| 17 | <h3><span class="sanchor">■</span> $act.attacker.name()の攻撃!</h3> | 
|---|
| 18 | #end if | 
|---|
| 19 | #if $act.damages | 
|---|
| 20 | #for $victim, $damage, $miss, $critical in $act.damages | 
|---|
| 21 | #if $critical | 
|---|
| 22 | <p><span class="criticalattack">会心の一撃!!</span></p> | 
|---|
| 23 | #end if | 
|---|
| 24 | #if $miss | 
|---|
| 25 | <p>...ミス! $victim.name()はダメージを受けない!</p> | 
|---|
| 26 | #else | 
|---|
| 27 | #if $damage < 0 | 
|---|
| 28 | <p><span class="healed">$victim.name()は $operator.sub(0, $damage) 回復した!</span></p> | 
|---|
| 29 | #elif $damage == 0 | 
|---|
| 30 | <p>$victim.name()は涼しい顔をしている...</p> | 
|---|
| 31 | #else | 
|---|
| 32 | <p><span class="damaged">$victim.name()に $damage のダメージ!</span></p> | 
|---|
| 33 | #end if | 
|---|
| 34 | #end if | 
|---|
| 35 | #if $victim.is_dead() | 
|---|
| 36 | <p><span class="dead">$victim.name()は息絶えた...</span></p> | 
|---|
| 37 | #end if | 
|---|
| 38 | #end for | 
|---|
| 39 | #else | 
|---|
| 40 | <p>しかし何も起こらなかった...</p> | 
|---|
| 41 | #end if | 
|---|
| 42 | </div> | 
|---|
| 43 | #end for | 
|---|
| 44 |  | 
|---|
| 45 | #if $tnum + 1 >= $config.getint('battle', 'max_turn') | 
|---|
| 46 | <div class="section"> | 
|---|
| 47 | <h3><span class="sanchor">■</span> 情報</h3> | 
|---|
| 48 | <p><span class="timedout">時間制限 $config.get('battle', 'max_turn') ターンに達してしまった...</span></p> | 
|---|
| 49 | </div> | 
|---|
| 50 |  | 
|---|
| 51 | #end if | 
|---|
| 52 | <div class="section"> | 
|---|
| 53 | <h3><span class="sanchor">●</span> ステータス</h3> | 
|---|
| 54 | <table class="stat"> | 
|---|
| 55 | <tr> | 
|---|
| 56 | <th>名前</th> | 
|---|
| 57 | <th>HP</th> | 
|---|
| 58 | <th>SP</th> | 
|---|
| 59 | <th>攻撃力</th> | 
|---|
| 60 | <th>集中力</th> | 
|---|
| 61 | <th>防御力</th> | 
|---|
| 62 | <th>素早さ</th> | 
|---|
| 63 | <th>運</th> | 
|---|
| 64 | </tr> | 
|---|
| 65 | #for $warrior in $entry.warriors | 
|---|
| 66 | <tr> | 
|---|
| 67 | <td class="left">$warrior.name()</td> | 
|---|
| 68 | <td class="right">$warrior.hitpoint()</td> | 
|---|
| 69 | <td class="right">$warrior.skillpoint()</td> | 
|---|
| 70 | <td class="right">$warrior.strength()</td> | 
|---|
| 71 | <td class="right">$warrior.concentration()</td> | 
|---|
| 72 | <td class="right">$warrior.defense()</td> | 
|---|
| 73 | <td class="right">$warrior.agility()</td> | 
|---|
| 74 | <td class="right">$warrior.luck()</td> | 
|---|
| 75 | </tr> | 
|---|
| 76 | #end for | 
|---|
| 77 | </table> | 
|---|
| 78 | </div> | 
|---|
| 79 | </div> | 
|---|
| 80 | </div> | 
|---|
| 81 | #end for | 
|---|
| 82 |  | 
|---|
| 83 | <div class="day"> | 
|---|
| 84 | <h2> | 
|---|
| 85 | <span class="title">対戦結果</span> | 
|---|
| 86 | </h2> | 
|---|
| 87 | <div class="body"> | 
|---|
| 88 | <div class="section"> | 
|---|
| 89 | #if $result.winner | 
|---|
| 90 | <h3><span class="sanchor">●</span> 勝者</h3> | 
|---|
| 91 | <p>$result.winner.name()の勝利!!</p> | 
|---|
| 92 | #else | 
|---|
| 93 | <h3><span class="sanchor">▲</span> 引き分け</h3> | 
|---|
| 94 | <p>引き分け...</p> | 
|---|
| 95 | #end if | 
|---|
| 96 | </div> | 
|---|
| 97 | </div> | 
|---|
| 98 | </div> | 
|---|
| 99 |  | 
|---|
| 100 | #include $os.path.expanduser($config.get('template', 'footer')) | 
|---|