Skip to content

Commit

Permalink
Preventing negative ammo values
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanbob committed Apr 13, 2024
1 parent 58d0025 commit 416bfc3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extensions/reviewed/FireBullet.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@
"parameters": [
"Object",
"Behavior",
"-",
"1"
"=",
"max(0,Object.Behavior::AmmoQuantity() - 1)"
]
}
]
Expand Down Expand Up @@ -2844,7 +2844,7 @@
"Object",
"Behavior",
"=",
"GetArgumentAsNumber(\"Value\")"
"max(0,Value)"
]
}
]
Expand Down Expand Up @@ -2891,7 +2891,7 @@
"Object",
"Behavior",
"=",
"GetArgumentAsNumber(\"Value\")",
"max(0,Value)",
""
]
}
Expand Down Expand Up @@ -4729,7 +4729,7 @@
"parameters": [
"Object",
"Behavior",
"=",
"<=",
"0"
]
}
Expand Down

0 comments on commit 416bfc3

Please sign in to comment.