Skip to content

Commit

Permalink
feature(actions): Add Gems and Improved Currencies (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn authored Jun 15, 2024
2 parents 6bf2319 + 598128b commit e924645
Show file tree
Hide file tree
Showing 9 changed files with 284 additions and 156 deletions.
48 changes: 32 additions & 16 deletions packages/actions/data/$schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
"amount": {
"type": "number"
},
"type": {
"enum": ["bit", "coin", "mote", "north-star"],
"id": {
"enum": ["bit", "coin", "gem", "mote", "north-star", "usd"],
"type": "string"
},
"type": {
"const": "currency"
}
},
"required": ["amount", "type"]
"required": ["amount", "id", "type"]
},
"itemAction": {
"additionalProperties": false,
Expand Down Expand Up @@ -76,6 +79,32 @@
"required": ["id", "type"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"type": {
"const": "npc"
}
},
"required": ["id", "type"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"type": {
"const": "website"
},
"url": {
"type": "string"
}
},
"required": ["type", "url"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
Expand All @@ -96,19 +125,6 @@
},
"required": ["type"],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"type": {
"const": "npc"
}
},
"required": ["id", "type"],
"type": "object"
}
],
"type": "object"
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/data/bits-crafts.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
]
},
{
"inputs": [{ "amount": 15, "type": "coin" }],
"inputs": [{ "amount": 15, "id": "coin", "type": "currency" }],
"outputs": [{ "amount": 1, "id": "GOLDEN_CARROT", "type": "item" }],
"place": [{ "id": "ALCHEMIST", "type": "npc" }]
},
Expand Down
Loading

0 comments on commit e924645

Please sign in to comment.