Skip to content

Commit

Permalink
Add Rots species (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
duffn authored Mar 10, 2020
1 parent 76a79f0 commit 9fe62f9
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 7 deletions.
11 changes: 11 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ exports.createSchemaCustomization = ({ actions }) => {
type SpeciesYaml implements Node @dontInfer {
name: String!
player: String
wt: String
st: String
brawn: Int
agility: Int
intellect: Int
cunning: Int
willpower: Int
presence: Int
xp: Int
specialAbilities: String
notes: String
index: String
generatedId: String!
}
Expand Down
19 changes: 19 additions & 0 deletions src/components/SpeciesColumnProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ export default function SpeciesColumnProvider({ children, currentBook }) {
},
},
{ label: "Player?", name: "player" },
{ label: "WT", name: "wt" },
{ label: "ST", name: "st" },
{ label: "Brawn", name: "brawn" },
{ label: "Agility", name: "agility" },
{ label: "Intellect", name: "intellect" },
{ label: "Cunning", name: "cunning" },
{ label: "Willpower", name: "willpower" },
{ label: "Presence", name: "presence" },
{ label: "XP", name: "xp" },
{
label: "Special Abilities",
name: "specialAbilities",
options: { filter: false, sort: false },
},
{
label: "Notes",
name: "notes",
options: { filter: false, sort: false },
},
{
label: "Index",
name: "index",
Expand Down
9 changes: 9 additions & 0 deletions src/components/shared/IndividualCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ function renderField({ key, item, classes }) {
case "hp":
case "htt":
case "sst":
case "wt":
case "st":
case "xp":
return (
<Typography key={key}>
<span className={classes.label}>{key.toUpperCase()}:</span>{" "}
Expand Down Expand Up @@ -111,6 +114,12 @@ function renderField({ key, item, classes }) {
<span className={classes.label}>Force Sensitive:</span> {item[key]}
</Typography>
)
case "specialAbilities":
return (
<Typography key={key}>
<span className={classes.label}>Special Abilities:</span> {item[key]}
</Typography>
)
case "price":
return (
<Typography key={key}>
Expand Down
4 changes: 2 additions & 2 deletions src/data/content-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3927,8 +3927,8 @@
- book: Rise of the Separatists
resource: Species
source: The Outer Rim
entered: No
audited: No
entered: Yes
audited: Yes
- book: Rise of the Separatists
resource: Starships
source: The Outer Rim
Expand Down
60 changes: 60 additions & 0 deletions src/data/species.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -815,3 +815,63 @@
player: Yes
index: be0796d8-6ef1-43ec-9fd6-5164e1982bb8:62
generatedId: 6ea06121-402a-41b0-a815-52513af77b1b
- name: Clone
player: Yes
wt: 11+Br
st: 11+Will
brawn: 2
agility: 2
intellect: 2
cunning: 2
willpower: 2
presence: 2
xp: 100
specialAbilities: 1 Resilience, 1 Knowledge (Warfare), Kamino Training
notes:
index: cf023ae2-5206-49e0-9e39-550bba0f7f56:11
generatedId: c6a2bc80-eb21-4091-a4c8-d9dbc3a5cd6c
- name: Geonosian
player: Yes
wt: 9+Br
st: 9+Will
brawn: 2
agility: 2
intellect: 2
cunning: 1
willpower: 1
presence: 1
xp: 140
specialAbilities: 1 Rank in a Skill, Industrious, Winged
notes:
index: cf023ae2-5206-49e0-9e39-550bba0f7f56:12
generatedId: 52cbe7ca-3382-4d23-af49-b39fba3f12c2
- name: Kaminoan
player: Yes
wt: 9+Br
st: 10+Will
brawn: 1
agility: 2
intellect: 3
cunning: 2
willpower: 2
presence: 2
xp: 100
specialAbilities: 1 Medicine, Expressionless
notes:
index: cf023ae2-5206-49e0-9e39-550bba0f7f56:14
generatedId: aabce9c6-82df-4f72-8ac0-9bff7c1f693b
- name: Umbaran
player: Yes
wt: 10+Br
st: 10+Will
brawn: 2
agility: 2
intellect: 2
cunning: 2
willpower: 2
presence: 2
xp: 100
specialAbilities: 1 Deception, Entrancing Gaze, Shadow Dweller
notes:
index: cf023ae2-5206-49e0-9e39-550bba0f7f56:15
generatedId: d582a468-1e39-4804-9f5a-9522a27b5c89
16 changes: 12 additions & 4 deletions src/pages/species.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import SpeciesColumnProvider from "../components/SpeciesColumnProvider"
export default function Species({ data }) {
return (
<SpeciesColumnProvider>
<StatPage
title="Species"
data={data.allSpeciesYaml}
/>
<StatPage title="Species" data={data.allSpeciesYaml} />
</SpeciesColumnProvider>
)
}
Expand All @@ -21,6 +18,17 @@ export const query = graphql`
node {
name
player
wt
st
brawn
agility
intellect
cunning
willpower
presence
xp
specialAbilities
notes
index
generatedId
}
Expand Down
11 changes: 11 additions & 0 deletions src/templates/books.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,17 @@ export const query = graphql`
node {
name
player
wt
st
brawn
agility
intellect
cunning
willpower
presence
xp
specialAbilities
notes
index
generatedId
}
Expand Down
13 changes: 12 additions & 1 deletion src/templates/species.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,19 @@ export const query = graphql`
speciesYaml(generatedId: { eq: $generatedId }) {
name
player
generatedId
wt
st
brawn
agility
intellect
cunning
willpower
presence
xp
specialAbilities
notes
index
generatedId
}
}
`

0 comments on commit 9fe62f9

Please sign in to comment.