28 apply damage through chat (#40)
* Add Rightclick menu to apply damage/heal Changes: + add rightclick context menu for rolls + only appears if keyword Schaden exists + calculate damage from all rolls with keyword Schaden + possible to apply damage or heal actor or if present token ToDo: + add button that does the same * Add Rüstungsschutz to damage calculation Changes: + Add Damage application from chat + take token first, if none exist, take actor + include damage reduction from equipped armor + damage appliaction is only accesible through right click on roll * Fix falsy display of rightclick context menu
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
<tr class="roll-row {{roll.css}}">
|
||||
<td>{{roll.label}}</td>
|
||||
<td class="roll-result">
|
||||
<span class="roll-total">{{roll.totalStr}}</span>
|
||||
<span class="roll-total {{#if (contains roll.label "Schaden")}} apply-damage{{/if}}">{{roll.totalStr}}</span>
|
||||
<span class="roll-detail">{{roll.result}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{localize "midgard5.actor-lp"}}</td>
|
||||
<td>{{localize "midgard5.lpProtection"}}</td>
|
||||
<td><input name="data.lpProtection" type="text" value="{{data.lpProtection}}" data-dtype="Number" /></td>
|
||||
|
||||
<td>{{localize "midgard5.actor-ap"}}</td>
|
||||
<td>{{localize "midgard5.apProtection"}}</td>
|
||||
<td><input name="data.apProtection" type="text" value="{{data.apProtection}}" data-dtype="Number" /></td>
|
||||
</tr>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user