Improvement idea: add `choice` prop to features giving a subclass
See original GitHub issueJust like the title says. There are feautres, where you choose something form an array of opitons, be it expertise, eldritch invocation or fighting style. Why not treat subclasses the same way?
Proposed structure:
{
"index": "otherworldly-patron",
"class": {
"index": "warlock",
"name": "Warlock",
"url": "/api/classes/warlock"
},
"name": "Otherworldly Patron",
"level": 1,
"desc": [
"At 1st level [yada yada]."
],
"choice: {
"choose": 1,
"type": subclass
from: "api/classes/warlock/subclasses"
}
"url": "/api/features/otherworldly-patron"
}
I know there is only one subclass in the SRD, but as y’all mentioned before, if something comes from a feature, you like to keep it within that feature, so why not add information about subclass choices to the feature giving you a subclass?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Subclass or Extend classes in Swift | by Steven Curtis - Medium
Class: An object that defines properties and methods in common ... Subclasses are also nice in that you can give your code a...
Read more >Help adding options to a Subclass Feature - D&D Beyond
I am having trouble getting the options to show in the drop down in the character builder. I have created two options that...
Read more >Overriding fields or properties in subclasses - Stack Overflow
Option 1: Use an abstract Property and override it on the inherited classes. This benefits from being enforced (you have to override it)...
Read more >Java Inheritance Tutorial: explained with examples
Inheritance is the process of building a new class based on the features of another existing class. It is used heavily in Java,...
Read more >c# - How can I add properties to subclasses and access them ...
Although I'm starting to think I should just expand Product into a class, and then give it a Term property. But we run...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When you put it that way, ye, my propositon would stir some disinformation.
feature_specific
approach is cleaner. It indicates that this feature has some logic/complexity behind it and allows the api cosnumer to deal with it the way it needs to. Just likeclass_specific
dataYeah, this is exactly what I meant when I was talking about how the
feature_specific
property would help keep things organised as we expand on all the features in this way.