Skip to content

Commit 228194f

Browse files
authored
ac when blocking (#225)
1 parent 9c3049f commit 228194f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/static/character-sheet-v2.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,17 @@ ARMOR_CLASS_ATTRIBUTE = new Attribute({
14031403
},
14041404
});
14051405

1406+
AC_WHEN_BLOCKING_ATTRIBUTE = new Attribute({
1407+
path: "armor_class_blocking",
1408+
name: "AC when blocking",
1409+
calculateFunction: characterData => {
1410+
return {
1411+
value: "17 vs 1 Attack",
1412+
tooltip: "TODO",
1413+
};
1414+
},
1415+
});
1416+
14061417
function getActiveEffects(characterModel) {
14071418
const effects = [];
14081419

@@ -3014,6 +3025,11 @@ function renderPage(characterName) {
30143025
characterModel: characterModel,
30153026
attribute: "armor_class",
30163027
}),
3028+
new SectionEntry({
3029+
mainKeyText: "AC when blocking",
3030+
characterModel: characterModel,
3031+
attribute: "armor_class_blocking",
3032+
}),
30173033
actionKeyValue("Save vs", "Reflex", characterModel, "save_throws.dexterity", "", "1d20"),
30183034
actionKeyValue("Save vs", "Fortitude", characterModel, "save_throws.constitution", "", "1d20"),
30193035
actionKeyValue("Save vs", "Will", characterModel, "save_throws.wisdom", "", "1d20"),

0 commit comments

Comments
 (0)