-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(actions): Initial Implementation (#9)
- Loading branch information
Showing
22 changed files
with
1,678 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"Action for Crafting": { | ||
"prefix": "actr", | ||
"body": [ | ||
"{", | ||
"\t\"inputs\": [", | ||
"\t\t{ \"amount\": ${1:1}, \"id\": \"${2:TODO: Insert Item ID}\", \"type\": \"item\" }", | ||
"\t],", | ||
"\t\"outputs\": [", | ||
"\t\t{ \"amount\": ${3:1}, \"id\": \"${4:TODO: Insert Item ID}\", \"type\": \"item\" }", | ||
"\t],", | ||
"\t\"place\": [", | ||
"\t\t{", | ||
"\t\t\t\"grid\": [", | ||
"\t\t\t\t${5:null},", | ||
"\t\t\t\t${6:null},", | ||
"\t\t\t\t${7:null},", | ||
"\t\t\t\t${8:null},", | ||
"\t\t\t\t${9:null},", | ||
"\t\t\t\t${10:null},", | ||
"\t\t\t\t${11:null},", | ||
"\t\t\t\t${12:null},", | ||
"\t\t\t\t${13:null}", | ||
"\t\t\t],", | ||
"\t\t\t\"type\": \"workbench\"", | ||
"\t\t}", | ||
"\t]", | ||
"},", | ||
], | ||
"description": "Add Recipe Action", | ||
}, | ||
"Action Input/Output Item": { | ||
"prefix": "acti", | ||
"body": [ | ||
"{ \"amount\": ${1:1}, \"id\": \"${2:TODO: Insert Item ID}\", \"type\": \"item\" }", | ||
], | ||
"description": "Add item in action.inputs and action.outputs", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"$schema": "https://turbo.build/schema.v1.json", | ||
"extends": ["//"], | ||
"pipeline": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internals/scripts/source/publish.ts → internals/scripts/source/publish.mts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @skyblock-finance/actions | ||
|
||
This package contains actions players can take in Hypixel Skyblock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft-07/schema", | ||
"additionalProperties": false, | ||
"definitions": { | ||
"currencyAction": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"amount": { | ||
"type": "number" | ||
}, | ||
"type": { | ||
"enum": ["bit", "coin", "mote", "north-star"], | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["amount", "type"] | ||
}, | ||
"itemAction": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"amount": { | ||
"type": "number" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"const": "item" | ||
} | ||
}, | ||
"required": ["id", "amount", "type"], | ||
"type": "object" | ||
} | ||
}, | ||
"properties": { | ||
"$schema": { | ||
"type": "string" | ||
}, | ||
"actions": { | ||
"items": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"inputs": { | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/currencyAction" }, | ||
{ "$ref": "#/definitions/itemAction" } | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"outputs": { | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/currencyAction" }, | ||
{ "$ref": "#/definitions/itemAction" } | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"place": { | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"additionalProperties": false, | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"const": "item" | ||
} | ||
}, | ||
"required": ["id", "type"], | ||
"type": "object" | ||
}, | ||
{ | ||
"additionalProperties": false, | ||
"properties": { | ||
"grid": { | ||
"items": { | ||
"maxLength": 9, | ||
"minLength": 9, | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/itemAction" }, | ||
{ "type": "null" } | ||
] | ||
}, | ||
"type": "array" | ||
}, | ||
"type": { | ||
"const": "workbench" | ||
} | ||
}, | ||
"required": ["type"], | ||
"type": "object" | ||
}, | ||
{ | ||
"additionalProperties": false, | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"const": "npc" | ||
} | ||
}, | ||
"required": ["id", "type"], | ||
"type": "object" | ||
} | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"requirements": { | ||
"items": {}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["inputs", "outputs", "place"], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["actions"], | ||
"type": "object" | ||
} |
Oops, something went wrong.