public static interface Model.SpellOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAttackRoll()
Whether the spell involves making a spell attack.
|
Model.CastingTime |
getCastingTime()
How long the spell takes to cast.
|
Model.Duration |
getDuration()
How long the spell lasts for.
|
Model.InfoSource |
getFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
|
boolean |
getHasSomaticComponent()
Indicated by an 'S' in the Player's Handbook.
|
boolean |
getHasVerbalComponent()
Indicated by a 'V' in the Player's Handbook.
|
int |
getLevel()
The level of the spell.
|
Model.MaterialComponent |
getMaterialComponent(int index)
The material components involved in casting the spell.
|
int |
getMaterialComponentCount()
The material components involved in casting the spell.
|
java.util.List<Model.MaterialComponent> |
getMaterialComponentList()
The material components involved in casting the spell.
|
java.lang.String |
getMaterialComponentText()
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
com.google.protobuf.ByteString |
getMaterialComponentTextBytes()
This is used rarely - only if the material component text in the book can't be neatly
decomposed into a comma-separated list of components.
|
java.lang.String |
getName()
The name of the spell.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the spell.
|
Model.Range |
getRange()
The range of the spell.
|
boolean |
getRitual()
Whether the spell can be cast as a ritual.
|
Model.School |
getSchool()
The school of magic the spell belongs to.
|
int |
getSchoolValue()
The school of magic the spell belongs to.
|
java.lang.String |
getShortDescription()
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
com.google.protobuf.ByteString |
getShortDescriptionBytes()
This is where you get to be creative! Write a description that summarizes the effects of the spell.
|
boolean |
hasCastingTime()
How long the spell takes to cast.
|
boolean |
hasDuration()
How long the spell lasts for.
|
boolean |
hasFullDescription()
This is a submessage indicating where the markdown file for this spell is located.
|
boolean |
hasRange()
The range of the spell.
|
java.lang.String getName()
The name of the spell. Don't wear it out!
optional string name = 1;com.google.protobuf.ByteString getNameBytes()
The name of the spell. Don't wear it out!
optional string name = 1;java.lang.String getShortDescription()
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;com.google.protobuf.ByteString getShortDescriptionBytes()
This is where you get to be creative! Write a description that summarizes the effects of the spell. Take a look at a few of the descriptions I wrote to get a sense of what I think is important. In particular, make sure to note the amount of damage a spell does, for damage spells. (I also like to explicitly use the word 'attack' when it's an actual spell attack, rather than a saving throw).
optional string short_description = 2;boolean hasFullDescription()
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;Model.InfoSource getFullDescription()
This is a submessage indicating where the markdown file for this spell is located. 'type' will always be ASSET for built-in content, and 'asset_path' needs to be set. 'storage_path' should remain unset for built-in content.
optional .ca.isupeene.charactersheet.cdk.InfoSource full_description = 3;int getLevel()
The level of the spell. 0 for cantrips.
optional int32 level = 4;int getSchoolValue()
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;Model.School getSchool()
The school of magic the spell belongs to. ABJURATION, EVOCATION, etc.
optional .ca.isupeene.charactersheet.cdk.School school = 5;boolean getRitual()
Whether the spell can be cast as a ritual. This is indicated in the players handbook by a parenthetical '(ritual)' after the level and school. You may leave this out if a spell cannot be cast as a ritual.
optional bool ritual = 6;boolean hasCastingTime()
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;Model.CastingTime getCastingTime()
How long the spell takes to cast.
For reaction spells, the trigger should be included, and phrased as if to complete the
sentence: "You may cast this spell as a reaction {trigger}", and be copied from the
Player's Handbook.
For spells whose casting time is one action, you may omit the casting time.
optional .ca.isupeene.charactersheet.cdk.CastingTime casting_time = 7;boolean hasRange()
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;Model.Range getRange()
The range of the spell. You may omit this field if the spell has a range of 'self'.
optional .ca.isupeene.charactersheet.cdk.Range range = 8;boolean getHasVerbalComponent()
Indicated by a 'V' in the Player's Handbook. You may omit this field if false.
optional bool has_verbal_component = 9;boolean getHasSomaticComponent()
Indicated by an 'S' in the Player's Handbook. You may omit this field if false.
optional bool has_somatic_component = 10;java.util.List<Model.MaterialComponent> getMaterialComponentList()
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;Model.MaterialComponent getMaterialComponent(int index)
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;int getMaterialComponentCount()
The material components involved in casting the spell. These are included in a parenthetical following the 'M' in the Player's Handbook. Include one entry per component, and include all the flowery detail as in the Player's Handbook, e.g. "one copper piece placed on each of the corpse's eyes, which must remain there for the duration". HOWEVER, when the Player's Handbook indicates a cost for the components, exclude that cost from the description, and instead include it in the 'cost' field (in units of gp, as you would expect). Set the 'consumed' field only if the spell is consumed. The 'required' field is a little trickier. Set it only if the component is NOT consumed, but playes an essential physical role in the casting of the spell. Search for 'required' in spells.textpb to see existing examples of this.
repeated .ca.isupeene.charactersheet.cdk.MaterialComponent material_component = 11;java.lang.String getMaterialComponentText()
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;com.google.protobuf.ByteString getMaterialComponentTextBytes()
This is used rarely - only if the material component text in the book can't be neatly decomposed into a comma-separated list of components. Search for "material_component_text" in spells.textpb to see the existing examples.
optional string material_component_text = 12;boolean hasDuration()
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;Model.Duration getDuration()
How long the spell lasts for. You may omit this field if the spell has a duration of 'instantaneous'.
optional .ca.isupeene.charactersheet.cdk.Duration duration = 13;boolean getAttackRoll()
Whether the spell involves making a spell attack. You may omit this field if false.
optional bool attack_roll = 14;