106 lines
2.4 KiB
Plaintext
106 lines
2.4 KiB
Plaintext
{{##def.weapons_table_entry:item:
|
|
<tr data-json='{{=JSON.stringify(item)}}'>
|
|
<td><a href="/gear/weapons/{{=item.name||''}}"</a>{{=item.name || ''}}</td>
|
|
<td>{{=item.attack || ''}}</td>
|
|
<td>{{=item.damage || ''}}</td>
|
|
<td>{{=item.damagetype || ''}}</td>
|
|
<td>{{=item.range || ''}}</td>
|
|
<td>{{=item.radius || ''}}</td>
|
|
<td>{{=item.capacity || ''}}</td>
|
|
<td>{{=item.duration || ''}}</td>
|
|
<td>{{=item.properties || ''}}</td>
|
|
<td>{{=item.worth || ''}}</td>
|
|
</tr>
|
|
#}}
|
|
{{##def.weapons_table:it:
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Attack</th>
|
|
<th>Damage</th>
|
|
<th>Type</th>
|
|
<th>Range</th>
|
|
<th>Radius</th>
|
|
<th>Capacity</th>
|
|
<th>Duration</th>
|
|
<th>Properties</th>
|
|
<th>Worth</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{~it :item:index}}
|
|
{{#def.weapons_table_entry:item || ''}}
|
|
{{~}}
|
|
</tbody>
|
|
</table>
|
|
#}}
|
|
|
|
{{##def.consumables_table_entry:item:
|
|
<tr data-json='{{=JSON.stringify(item)}}'>
|
|
<td><a href="/gear/consumables/{{=item.name||''}}"</a>{{=item.name || ''}}</td>
|
|
<td>{{=item.duration || ''}}</td>
|
|
<td>{{=item.properties || ''}}</td>
|
|
<td>{{=item.worth || ''}}</td>
|
|
</tr>
|
|
#}}
|
|
|
|
{{##def.consumables_table:it:
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Duration</th>
|
|
<th>Properties</th>
|
|
<th>Worth</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{~it :item:index}}
|
|
{{#def.consumables_table_entry:item || ''}}
|
|
{{~}}
|
|
</tbody>
|
|
</table>
|
|
#}}
|
|
|
|
{{##def.entry:it:
|
|
<h1>{{=it.name || ''}}</h1>
|
|
<dl>
|
|
{{~ ["attack", "damage", "damagetype", "range", "radius", "capacity", "duration", "properties"] :k}}
|
|
{{? it[k] }}
|
|
{{? k === 'damagetype' }}
|
|
<dt>damage type</dt>
|
|
{{?? true }}
|
|
<dt>{{=k || ''}}</dt>
|
|
{{?}}
|
|
<dd>{{=it[k] || ''}}</dd>
|
|
{{?}}
|
|
{{~}}
|
|
</dl>
|
|
#}}
|
|
|
|
{{? it.entry }}
|
|
{{#def.entry:it.entry || ''}}
|
|
{{?? !it.type }}
|
|
<h1>Gear</h1>
|
|
{{? it.db.weapons }}
|
|
<h2><a href="gear/weapons">Weapons</a></h2>
|
|
{{#def.weapons_table:it.db.weapons || ''}}
|
|
{{?}}
|
|
|
|
{{? it.db.consumables }}
|
|
<h2><a href="gear/consumables">Consumables</a></h2>
|
|
{{#def.consumables_table:it.db.consumables || ''}}
|
|
{{?}}
|
|
{{?? true }}
|
|
{{? it.type === "weapons"}}
|
|
<h1>Weapons</h1>
|
|
{{#def.weapons_table:it.db.weapons || ''}}
|
|
{{?? it.type === "consumables"}}
|
|
<h1>Consumables</h1>
|
|
{{#def.consumables_table:it.db.consumables || ''}}
|
|
{{?? true }}
|
|
Bad type
|
|
{{?}}
|
|
{{?}}
|