Skip to content

Commit

Permalink
feature(actions): Add Gems and Improved Currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Jun 15, 2024
1 parent 6bf2319 commit 598128b
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 598128b

Please sign in to comment.