Skip to content

Commit

Permalink
📝 update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Nov 29, 2024
1 parent 8d8d1aa commit 3db6a9b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 17 deletions.
54 changes: 39 additions & 15 deletions sa/sa.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"meta": {
"last_update": 1732890937089,
"version": "0.797",
"last_update": 1732892219549,
"version": "0.798",
"url": "https://library.sannybuilder.com/#/sa"
},
"extensions": [
Expand Down Expand Up @@ -46665,6 +46665,30 @@
"attrs": {
"is_condition": true
}
},
{
"input": [
{
"name": "values",
"type": "arguments"
}
],
"output": [
{
"name": "result",
"type": "string",
"source": "var_any"
}
],
"id": "2707",
"name": "PICK_RANDOM_TEXT",
"num_params": 2,
"class": "Math",
"attrs": {
"is_static": true
},
"member": "RandomPick",
"short_desc": "Selects one random text from provided values"
}
]
},
Expand Down Expand Up @@ -63463,35 +63487,35 @@
"name": "PICK_RANDOM_INT",
"num_params": 2,
"class": "Math",
"member": "PickRandomInt",
"short_desc": "Selects one random number from provided values",
"member": "RandomPick",
"short_desc": "Selects one random integer from provided values",
"attrs": {
"is_static": true
}
},
{
"input": [
{
"name": "",
"type": "float"
},
{
"name": "",
"type": "float"
"name": "values",
"type": "arguments"
}
],
"output": [
{
"name": "",
"name": "result",
"type": "float",
"source": "var_any"
}
],
"id": "2706",
"name": "FLOAT_SUB",
"num_params": 3,
"operator": "-",
"short_desc": "Subtracts the float value from another float value and writes the result into the variable"
"name": "PICK_RANDOM_FLOAT",
"num_params": 2,
"attrs": {
"is_static": true
},
"class": "Math",
"member": "RandomPick",
"short_desc": "Selects one random float from provided values"
},
{
"input": [
Expand Down
1 change: 1 addition & 0 deletions sa/snippets/default/2707.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LongString greeting = pick_random_text {values} "Hello!" "Hi there!" "Welcome!"
2 changes: 1 addition & 1 deletion sa/snippets/math/2706.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= output1 %> = <%= input1 %> - <%= input2 %>
float heading = pick_random_float {values} 0.0 90.0 -90.0 180.0 -180.0
2 changes: 1 addition & 1 deletion sa/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.797
0.798

0 comments on commit 3db6a9b

Please sign in to comment.