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 0c0387a commit 9847e59
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
28 changes: 11 additions & 17 deletions sa/sa.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"meta": {
"last_update": 1732892664620,
"last_update": 1732893631887,
"version": "0.799",
"url": "https://library.sannybuilder.com/#/sa"
},
Expand Down Expand Up @@ -63544,26 +63544,20 @@
]
},
{
"name": "memory",
"name": "percent",
"commands": [
{
"input": [
{
"name": "src",
"type": "int"
},
{
"name": "dest",
"type": "int"
},
{
"name": "size",
"type": "int"
}
],
"id": "2400",
"name": "COPY_MEMORY",
"num_params": 3,
"name": "RANDOM_CHANCE",
"num_params": 1,
"class": "Math",
"member": "RandomChance",
"short_desc": "Sets random condition result, witth percent chance to be true",
"attrs": {
"is_static": true,
"is_condition": true
}
"class": "Memory",
"member": "Copy",
"attrs": {
Expand Down
6 changes: 5 additions & 1 deletion sa/snippets/math/2708.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<%= output1 %> = <%= input1 %> / <%= input2 %>
if
random_chance {percent} 33.333
then
print_help_string {text} "1/3 chance"
end

0 comments on commit 9847e59

Please sign in to comment.