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 3 commits
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
246 changes: 235 additions & 11 deletions src/5e-SRD-Features.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"Your rage lasts for 1 minute. It ends early if you are knocked Unconscious or if Your Turn ends and you haven't attacked a hostile creature since your last turn or taken damage since then. You can also end your rage on Your Turn as a Bonus Action.",
"Once you have raged the maximum number of times for your barbarian level, you must finish a Long Rest before you can rage again. You may rage 2 times at 1st level, 3 at 3rd, 4 at 6th, 5 at 12th, and 6 at 17th."
],
"url": "/api/features/rage"
"url": "/api/features/rage",
"feature_specific": {}
},
{
"index": "barbarian-unarmored-defense",
Expand All @@ -33,6 +34,27 @@
"desc": [
"While you are not wearing any armor, your Armor Class equals 10 + your Dexterity modifier + your Constitution modifier. You can use a shield and still gain this benefit."
],
"feature_specific": {
"armor_class": {
"type": "sum",
"values": [
{
"type": "integer",
"value": 10
},
{
"type": "integer",
"from": "mod.dex",
"desc": "DEX modifier"
},
{
"type": "integer",
"from": "mod.con",
"desc": "CON modifier"
}
]
}
},
"url": "/api/features/barbarian-unarmored-defense"
},
{
Expand All @@ -48,6 +70,40 @@
"desc": [
"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": {
"action": [
{
"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
"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"
}
]
},
"url": "/api/features/reckless-attack"
},
{
Expand All @@ -63,6 +119,45 @@
"desc": [
"At 2nd level, you gain an uncanny sense of when things nearby aren't as they should be, giving you an edge when you dodge away from danger. You have advantage on Dexterity saving throws against effects that you can see, such as traps and spells. To gain this benefit, you can't be blinded, deafened, or incapacitated."
],
"feature_specific": {
"advantages": [
{
"on": [
{
"index": "dex",
"name": "DEX",
"url": "/api/ability-scores/dex"
}
],
"prerequisites": [
{
"type": "boolean",
"from": {
"index": "incapacitated",
"name": "Incapacitated",
"url": "/api/conditions/incapacitated"
}
},
{
"type": "boolean",
"from": {
"index": "blinded",
"name": "Blinded",
"url": "/api/conditions/blinded"
}
},
{
"type": "boolean",
"from": {
"index": "deafened",
"name": "Deafened",
"url": "/api/conditions/deafened"
}
}
]
}
]
},
"url": "/api/features/danger-sense"
},
{
Expand All @@ -78,6 +173,19 @@
"desc": [
"At 3rd level, you choose a path that shapes the nature of your rage. Choose the Path of the Berserker or the Path of the Totem Warrior, both detailed at the end of the class description. Your choice grants you features at 3rd level and again at 6th, 10th, and 14th levels."
],
"feature_specific": {
"choice": {
"choose": 1,
"type": "subclass",
"from": [
{
"index": "berserker",
"name": "Berserker",
"url": "/api/subclasses/berserker"
}
]
}
},
"url": "/api/features/primal-path"
},
{
Expand All @@ -97,6 +205,26 @@
"desc": [
"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"
}
],
"debuffs": [
{
"index": "exhaustion",
"name": "Exhaustion",
"url": "/api/conditions/exhaustion",
"level": 1
}
]
},
"url": "/api/features/frenzy"
},
{
Expand Down Expand Up @@ -127,6 +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": {},
"url": "/api/features/barbarian-extra-attack"
},
{
Expand All @@ -142,6 +271,27 @@
"desc": [
"Starting at 5th level, your speed increases by 10 feet while you aren't wearing heavy armor."
],
"feature_specific": {
"speed": {
"type": "sum",
"values": [
{
"type": "integer",
"from": "base"
},
{
"type": "integer",
"value": 10
}
],
"prerequisites": [
{
"type": "boolean",
"from": "equipped.armor.heavy"
}
]
}
},
"url": "/api/features/fast-movement"
},
{
Expand All @@ -161,6 +311,30 @@
"desc": [
"Beginning at 6th level, you can't be charmed or frightened while raging. If you are charmed or frightened when you enter your rage, the effect is suspended for the duration of the rage."
],
"feature_specific": {
"immunities": [
{
"to": [
{
"index": "charmed",
"name": "Charmed",
"url": "/api/conditions/charmed"
},
{
"index": "frightened",
"name": "Frightened",
"url": "/api/conditions/frightened"
}
],
"prerequisites": [
{
"type": "boolean",
"from": "raging"
}
]
}
]
},
"url": "/api/features/mindless-rage"
},
{
Expand All @@ -177,6 +351,36 @@
"By 7th level, your instincts are so honed that you have advantage on initiative rolls.",
"Additionally, if you are surprised at the beginning of combat and aren't incapacitated, you can act normally on your first turn, but only if you enter your rage before doing anything else on that turn."
],
"feature_specific": {
"advantages": [
{
"on": [
"initiative"
]
}
],
"immunities": [
{
"to": [
"surprised"
],
"prerequisites": [
{
"type": "boolean",
"from": {
"index": "incapacitated",
"name": "Incapacitated",
"url": "/api/conditions/incapacitated"
}
},
{
"from": "raging",
"type": "boolean"
}
]
}
]
},
"url": "/api/features/feral-instinct"
},
{
Expand Down Expand Up @@ -1421,7 +1625,9 @@
"subclass": {},
"name": "Spellcasting: Cleric",
"level": 1,
"desc": ["As a conduit for divine power, you can cast cleric spells."],
"desc": [
"As a conduit for divine power, you can cast cleric spells."
],
"reference": "/api/spellcasting/cleric",
"url": "/api/features/spellcasting-cleric"
},
Expand Down Expand Up @@ -2574,7 +2780,9 @@
"subclass": {},
"name": "Fighting Style: Defense",
"level": 1,
"desc": ["While you are wearing armor, you gain a +1 bonus to AC."],
"desc": [
"While you are wearing armor, you gain a +1 bonus to AC."
],
"group": "Fighting Style (Fighter)",
"url": "/api/features/fighter-fighting-style-defense"
},
Expand Down Expand Up @@ -3614,7 +3822,9 @@
"subclass": {},
"name": "Fighting Style: Defense",
"level": 2,
"desc": ["While you are wearing armor, you gain a +1 bonus to AC."],
"desc": [
"While you are wearing armor, you gain a +1 bonus to AC."
],
"group": "Fighting Style (Paladin)",
"url": "/api/features/fighting-style-defense"
},
Expand Down Expand Up @@ -3988,7 +4198,9 @@
"subclass": {},
"name": "Aura improvements",
"level": 18,
"desc": ["At 18th level, the range of your auras increase to 30 feet."],
"desc": [
"At 18th level, the range of your auras increase to 30 feet."
],
"url": "/api/features/aura-improvements"
},
{
Expand Down Expand Up @@ -4136,7 +4348,9 @@
"subclass": {},
"name": "Fighting Style: Defense",
"level": 2,
"desc": ["While you are wearing armor, you gain a +1 bonus to AC."],
"desc": [
"While you are wearing armor, you gain a +1 bonus to AC."
],
"group": "Fighting Style (Ranger)",
"url": "/api/features/ranger-fighting-style-defense"
},
Expand Down Expand Up @@ -4450,7 +4664,9 @@
},
"name": "Defensive Tactics: Escape the Horde",
"level": 7,
"desc": ["Opportunity attacks against you are made with disadvantage."],
"desc": [
"Opportunity attacks against you are made with disadvantage."
],
"group": "Defensive Tactics",
"url": "/api/features/defensive-tactics-escape-the-horde"
},
Expand Down Expand Up @@ -4488,7 +4704,9 @@
},
"name": "Defensive Tactics: Steel Will",
"level": 7,
"desc": ["You have advantage on saving throws against being frightened."],
"desc": [
"You have advantage on saving throws against being frightened."
],
"group": "Defensive Tactics",
"url": "/api/features/defensive-tactics-steel-will"
},
Expand Down Expand Up @@ -6901,7 +7119,9 @@
"name": "Eldritch Invocation: Beguiling Influence",
"level": 2,
"prerequisites": [],
"desc": ["You gain proficiency in the Deception and Persuasion skills."],
"desc": [
"You gain proficiency in the Deception and Persuasion skills."
],
"group": "Eldritch Invocations",
"url": "/api/features/eldritch-invocation-beguiling-influence"
},
Expand Down Expand Up @@ -6978,7 +7198,9 @@
"spell": "/api/spells/dominate-monster"
}
],
"desc": ["When you cast eldritch blast, its range is 300 feet."],
"desc": [
"When you cast eldritch blast, its range is 300 feet."
],
"group": "Eldritch Invocations",
"url": "/api/features/eldritch-invocation-eldritch-spear"
},
Expand All @@ -6993,7 +7215,9 @@
"name": "Eldritch Invocation: Eyes of the Rune Keeper",
"level": 2,
"prerequisites": [],
"desc": ["You can read all writing."],
"desc": [
"You can read all writing."
],
"group": "Eldritch Invocations",
"url": "/api/features/eldritch-invocation-eyes-of-the-rune-keeper"
},
Expand Down