Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] first batch of features data update #284

Draft
wants to merge 5 commits into
base: feature_specific
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 58 additions & 38 deletions src/5e-SRD-Features.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"values": [
{
"type": "integer",
"value": 10,
"desc": "Base value for calculation"
"value": 10
},
{
"type": "integer",
Expand Down Expand Up @@ -72,31 +71,35 @@
"Starting at 2nd level, you can throw aside all concern for defense to attack with fierce desperation. When you make your first attack on your turn, you can decide to attack recklessly. Doing so gives you advantage on melee weapon attack rolls using Strength during this turn, but attack rolls against you have advantage until your next turn."
],
"feature_specific": {
"advantages": [
"action": [
{
"on": [
{
"action": "attack",
"attack_type": "melee",
"attack_modifier": "str",
"desc": "Advantage applies to melee attacks with STR modifier only"
}
],
"duration": "2 turns",
"prerequisites": [
{
"type": "integer",
"from": "attack",
"desc": "Advantage applies to first attack only"
}
]
"type": "attack",
"attack_type": "melee",
"attack_modifier": "str",
"desc": "Advantage applies to melee attacks with STR modifier only"
}
],
Freedzio marked this conversation as resolved.
Show resolved Hide resolved
"downsides": [
"prerequisites": [
{
"type": "equals",
"description": "attack is the first of the turn",
"value": {
"type": "integer",
"value": "turns.attacks_made",
"desc": "attacks made so far this turn"
},
"target": {
"type": "integer",
"value": 0
}
}
],
"debuffs": [
{
"type": "advantage",
"for": "enemy",
"on": "attack",
"duration": "2 turns",
"desc": "Attack rolls against you have advantage until the end of your next turn"
}
]
Expand All @@ -121,22 +124,35 @@
{
"on": [
{
"action": "save",
"save_type": "dex"
"index": "dex",
"name": "DEX",
"url": "/api/ability-scores/dex"
}
],
"prerequisites": [
{
"type": "boolean",
"from": "incapacitated"
"from": {
"index": "incapacitated",
"name": "Incapacitated",
"url": "/api/conditions/incapacitated"
}
},
{
"type": "boolean",
"from": "blinded"
"from": {
"index": "blinded",
"name": "Blinded",
"url": "/api/conditions/blinded"
}
},
{
"type": "boolean",
"from": "deafened"
"from": {
"index": "deafened",
"name": "Deafened",
"url": "/api/conditions/deafened"
}
}
]
}
Expand Down Expand Up @@ -190,20 +206,22 @@
"Starting when you choose this path at 3rd level, you can go into a frenzy when you rage. If you do so, for the duration of your rage you can make a single melee weapon attack as a bonus action on each of your turns after this one. When your rage ends, you suffer one level of exhaustion (as described in appendix A)."
],
"feature_specific": {
"bonus_action": {
"type": "attack",
"amount": 1
},
"prerequisites": [
{
"type": "boolean",
"from": "raging"
}
],
"bonus_action": {
"action": "attack",
"amount": 1
},
"downsides": [
"debuffs": [
{
"type": "exhaustion",
"exhaustion_levels": 1
"index": "exhaustion",
"name": "Exhaustion",
"url": "/api/conditions/exhaustion",
"level": 1
}
]
},
Expand Down Expand Up @@ -237,9 +255,7 @@
"desc": [
"Beginning at 5th level, you can attack twice, instead of once, whenever you take the Attack action on your turn."
],
"feature_specific":{

},
"feature_specific": {},
"url": "/api/features/barbarian-extra-attack"
},
{
Expand Down Expand Up @@ -271,7 +287,7 @@
"prerequisites": [
{
"type": "boolean",
"from": "heavy armor"
"from": "equipped.armor.heavy"
}
]
}
Expand Down Expand Up @@ -350,8 +366,12 @@
],
"prerequisites": [
{
"from": "incapacitated",
"type": "boolean"
"type": "boolean",
"from": {
"index": "incapacitated",
"name": "Incapacitated",
"url": "/api/conditions/incapacitated"
}
},
{
"from": "raging",
Expand Down