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:
@@ -111,6 +111,8 @@ export class M5Item extends Item {
|
||||
itemData.mods[1] = { type: "stat", id: "attackBonus", operation: "add", value: itemData.stats.attackBonus };
|
||||
itemData.mods[2] = { type: "stat", id: "movement", operation: "add", value: itemData.stats.movementBonus };
|
||||
itemData.mods[3] = { type: "attribute", id: "gw", operation: "add100", value: itemData.attributeMod.gw };
|
||||
itemData.mods[4] = { type: "stat", id: "lpProtection", operation: "set", value: itemData.lpProtection };
|
||||
itemData.mods[5] = { type: "stat", id: "apProtection", operation: "set", value: itemData.apProtection };
|
||||
} else if (itemType === "spell") {
|
||||
calc.fw = 0;
|
||||
if (actor) {
|
||||
|
||||
Reference in New Issue
Block a user