test dragon

This commit is contained in:
Merith-TK 2025-04-30 17:38:44 -07:00
parent e980c2f3be
commit 0e6399ed53
3 changed files with 171 additions and 0 deletions

83
cs-official.go Normal file
View file

@ -0,0 +1,83 @@
package main
type Root struct {
Acronym string `json:"acronym"`
Backgrounds []Backgrounds `json:"backgrounds"`
Classes []Classes `json:"classes"`
Feats []Feats `json:"feats"`
Races []Races `json:"races"`
Spells []Spells `json:"spells"`
Name string `json:"name"`
}
type Entry struct {
Type string `json:"type"`
Style string `json:"style"`
Items []Items `json:"items"`
}
type Items struct {
Type string `json:"type"`
Name string `json:"name"`
Entry string `json:"entry"`
}
type SkillProficiencies struct {
Performance bool `json:"performance"`
Perception bool `json:"perception"`
Persuasion bool `json:"persuasion"`
}
type ToolProficiencies struct {
Disguise_kit bool `json:"disguise kit"`
}
type Races struct {
LanguageProficiencies []LanguageProficiencies `json:"languageProficiencies"`
Short string `json:"short"`
Size string `json:"size"`
Entries []string `json:"entries"`
URL string `json:"URL"`
Name string `json:"name"`
Speed float64 `json:"speed"`
Ability []Ability `json:"ability"`
SkillProficiencies []SkillProficiencies `json:"skillProficiencies"`
}
type Entries struct {
Name string `json:"name"`
Entries []Entries `json:"entries"`
Type string `json:"type"`
}
type Backgrounds struct {
HasFluff bool `json:"hasFluff"`
Name string `json:"name"`
Source string `json:"source"`
HasFluffImages bool `json:"hasFluffImages"`
Page float64 `json:"page"`
Entry []Entry `json:"entry"`
Entries []string `json:"entries"`
SkillProficiencies []SkillProficiencies `json:"skillProficiencies"`
LanguageProficiencies []LanguageProficiencies `json:"languageProficiencies"`
ToolProficiencies []ToolProficiencies `json:"toolProficiencies"`
StartingEquipment []StartingEquipment `json:"startingEquipment"`
}
type LanguageProficiencies struct {
Any float64 `json:"any"`
Goblin bool `json:"goblin"`
Any float64 `json:"any"`
Common bool `json:"common"`
}
type StartingEquipment struct {
_ []string `json:"_"`
}
type Ability struct {
Con float64 `json:"con"`
Cha float64 `json:"cha"`
}
type RootArray []Root

85
dragon.json Normal file
View file

@ -0,0 +1,85 @@
{
"races": [
{
"name": "m3R1 FUCKER",
"ability": [
{}
],
"entries": [],
"languageProficiencies": [
{
"any": 1,
"common": true
}
],
"size": "M",
"speed": 30,
"subraces": [
{
"name": "Basic",
"ability": [
{
"str": 1,
"dex": 1,
"con": 1,
"int": 1,
"wis": 1,
"cha": 1
}
]
},
{
"name": "Variant",
"choose": true,
"ability": [
{
"choose": {
"from": [
"str",
"dex",
"con",
"int",
"wis",
"cha"
],
"count": 2
}
}
],
"entries": [],
"feats": {
"choose": 1
},
"skillProficiencies": [
{
"choose": {
"from": [
"athletics",
"acrobatics",
"sleight of hand",
"stealth",
"arcana",
"history",
"investigation",
"nature",
"religion",
"animal handling",
"insight",
"medicine",
"perception",
"survival",
"deception",
"intimidation",
"performance",
"persuasion"
]
}
}
]
}
],
"short": "In the reckonings of most worlds, humans are the youngest of the common races, late to arrive on the world scene and short-lived in comparison to dwarves, elves, and dragons.",
"URL": "https://i.pinimg.com/originals/64/ad/d5/64add58df35a2e54b493f34cb266a7e2.jpg"
}
]
}

3
readme.md Normal file
View file

@ -0,0 +1,3 @@
[dragon](a5ecs://git.merith.xyz/merith-tk/dungeondev/raw/branch/main/dragon.json)
https://i.pinimg.com/originals/64/ad/d5/64add58df35a2e54b493f34cb266a7e2.jpg