Comments (8)
In most (if not all) cases, Multiattack
is just using the already defined attacks on a monster. So you probably only need the name and count.
from 5e-database.
We already have a "choice" or "option" structure for similar cases, such as Half-Elf's stat option. You might want to take inspiration from those.
from 5e-database.
How would you handle the -or- case for the Bandit Captain above, where the same attack can be used two different ways?
"The captain makes three melee attacks: two with its scimitar and one with its dagger. Or the captain makes two ranged attacks with its daggers."
from 5e-database.
Maybe something like this:
"attacks": [
{
"choose": 1,
"type": "attacks",
"from": [
[
{
"name": "Scimitar",
"count": 2
},
{
"name": "Dagger",
"count": 1,
"type": "melee"
}
],
[
{
"name": "Dagger",
"count": 2,
"type": "ranged"
}
]
]
}
]
I have a feeling type
would be more than just melee
or ranged
though.
from 5e-database.
Sounds good. I'm going to see how far I can get with this structure. The multiattack descriptions are pretty well formatted, but some of them have a lot going on.
from 5e-database.
They really do. A lot of the attacks do, you should have seen some of the wild stuff I came across while trying to pull out damage and damage type from all monster attacks.
from 5e-database.
So, V1 for this is done. However, I guess next steps would be to handle the notes:
field and convert it into something else.
from 5e-database.
I'm going to close this out for now as it's technically done. Feel free to open a separate issue for parsing the notes field.
from 5e-database.
Related Issues (20)
- Restructuring Rules.json HOT 13
- Inconsistent Shapechanger handling HOT 4
- Innate spellcasting missing required components HOT 1
- Monster variants in data that are not SRD content HOT 1
- GitHub deploy action trying to run in a fork HOT 6
- 1.2.6 tag missing in main branch HOT 2
- Missing monster flavor text HOT 1
- Frontend Webpage down on Heroku
- Docker build gives Illegal Instruction (Core Dump) with Latest and v2.1.1 tag HOT 3
- Issues with "range" on melee weapons HOT 20
- Additional Response Headers HOT 3
- Giant Centipede XP value is incorrect
- Bone Devil monster has wrong challenge rating? HOT 1
- Acolyte has no starting gold
- Add number of spells cast field HOT 2
- Proficiency Bonus is missing in the Monster api HOT 1
- Minor errors found in spell data HOT 1
- Spells with multiple damage types aren't represented HOT 1
- MongoDB 5 Requires AVX Instruction Set to Boot HOT 1
- Magic missile spell: Damage at slot level are incorrects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 5e-database.