Skip to content

Commit

Permalink
Add basic race data and earth pony race as PoC
Browse files Browse the repository at this point in the history
Part of #384
  • Loading branch information
kmoschcau committed Aug 27, 2022
1 parent 79027c3 commit 7010f20
Show file tree
Hide file tree
Showing 5 changed files with 423 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .vim/coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
"fileMatch": ["/src/main/compendiums/item/ammo/*.json"],
"url": "./src/main/schemas/item/ammo.json"
},
{
"fileMatch": ["/src/main/compendiums/item/apparel/*.json"],
"url": "./src/main/schemas/item/apparel.json"
},
{
"fileMatch": ["/src/main/compendiums/item/magic/*.json"],
"url": "./src/main/schemas/item/magic.json"
},
{
"fileMatch": ["/src/main/compendiums/item/apparel/*.json"],
"url": "./src/main/schemas/item/apparel.json"
"fileMatch": ["/src/main/compendiums/item/race/*.json"],
"url": "./src/main/schemas/item/race.json"
},
{
"fileMatch": ["/src/main/compendiums/item/weapon/*.json"],
Expand Down
14 changes: 10 additions & 4 deletions gulp/compendiumSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@ export default async function compendiumSchemasTask(): Promise<void[]> {
schema: (await import("../src/main/typescript/data/item/ammo/source.js"))
.COMP_AMMO_JSON_SCHEMA
},
{
fileName: "apparel",
outputBasePath: itemOutputBasePath,
schema: (
await import("../src/main/typescript/data/item/apparel/source.js")
).COMP_APPAREL_JSON_SCHEMA
},
{
fileName: "magic",
outputBasePath: itemOutputBasePath,
schema: (await import("../src/main/typescript/data/item/magic/source.js"))
.COMP_MAGIC_JSON_SCHEMA
},
{
fileName: "apparel",
fileName: "race",
outputBasePath: itemOutputBasePath,
schema: (
await import("../src/main/typescript/data/item/apparel/source.js")
).COMP_APPAREL_JSON_SCHEMA
schema: (await import("../src/main/typescript/data/item/race/source.js"))
.COMP_RACE_JSON_SCHEMA
},
{
fileName: "weapon",
Expand Down
75 changes: 75 additions & 0 deletions src/main/compendiums/item/race/earth_pony.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"_id": "WVRace0000000001",
"name": "Earth Pony",
"type": "race",
"data": {
"name": "Earth Pony",
"description": "Your basic pony. Four legs, two eyes, mane and tail. Earth ponies have neither wings nor horns. Instead, they are generally stronger, larger, and have more stamina than the other two pony races - having to do everything by hoof or by mouth. By far the most common race alongside unicorns in the Equestrian Wasteland, as long as only Equestria is accounted for. A common sight in both big and small settlements, earth ponies tend to make their home nearly anywhere, excluding crater sides and the Canterlot Ruins. Many of the earth ponies survived either due to their own home-built bomb-shelters, or in the many Stables from which they made their way to the post-apocalyptic Wasteland. Not being ones to lay on their laurels, many earth ponies took to rebuilding settlements or making new ones. One such testament is New Appleloosa, built a stone’s throw away from the old one, now overtaken by raiders.",
"notes": "",
"rules": {
"sources": [
{
"enabled": true,
"hook": "afterComputation",
"label": "The Hard Way",
"priority": 100,
"selectors": [
"item",
"sibling",
{
"type": "weapon"
},
{
"usesSkill": "firearms"
}
],
"conditions": [],
"target": "strengthRequirement",
"type": "WV.RuleElement.NumberComponent",
"value": -1
}
]
},
"tags": [],
"physical": {
"canFly": false,
"canUseMagic": true,
"hasSecondHead": false,
"hasSpecialTalent": true,
"hasWings": false
},
"creation": {
"startingSpecialPoints": 40,
"magicTypes": ["earthPony"],
"freeSpells": {
"allOf": [],
"anyOf": {
"choices": [],
"amount": 0
},
"amount": 2
},
"freeAlchemy": {
"allOf": [],
"anyOf": {
"choices": [],
"amount": 0
},
"amount": 0
}
},
"leveling": {
"freeSpells": {
"period": 5,
"amount": 1
},
"freeAlchemy": {
"period": 0,
"amount": 0
}
}
},
"img": "icons/environment/creatures/horse-brown.webp",
"effects": [],
"flags": {}
}
6 changes: 4 additions & 2 deletions src/main/typescript/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,10 @@ export const TYPES = {
AMMO: "ammo",
APPAREL: "apparel",
EFFECT: "effect",
MAGIC: "magic",
MISC: "misc",
WEAPON: "weapon",
MAGIC: "magic"
RACE: "race",
WEAPON: "weapon"
}
} as const;

Expand All @@ -335,6 +336,7 @@ export const ProtoItemTypes: readonly ValueOf<typeof TYPES.ITEM>[] = [
TYPES.ITEM.APPAREL,
TYPES.ITEM.MAGIC,
TYPES.ITEM.MISC,
TYPES.ITEM.RACE,
TYPES.ITEM.WEAPON
] as const;

Expand Down
Loading

0 comments on commit 7010f20

Please sign in to comment.