Skip to content

Commit

Permalink
fix overpy build (#359)
Browse files Browse the repository at this point in the history
* test: fix OverPy generation tests

Previously, running `generate-overpy.js` would fail the "assignment"
portion of the `operators.opy` compilation test.

* docs: Explain why `areAstsEqual` calls `variable`  twice

* test: add tests to ensure randomness is correctly handled during assignment

* style: remove trailing whitespace

* fix: optimize modify variable actions again

* chore: update built OverPy files
  • Loading branch information
CactusPuppy authored Feb 29, 2024
1 parent 72d78ef commit 6642371
Show file tree
Hide file tree
Showing 9 changed files with 417 additions and 222 deletions.
170 changes: 130 additions & 40 deletions VS Code Extension/customGameSettingsSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16130,19 +16130,39 @@
"minimum": 25,
"maximum": 300
},
"enableSecondaryFireUnlimitedFuel": {
"enablePassiveUnlimitedFuel": {
"type": "boolean"
},
"secondaryFireVerticalSpeed%": {
"passiveVerticalSpeed%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"passiveMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
},
"passiveExtraFuel%": {
"type": "number",
"minimum": 0,
"maximum": 200
},
"passiveRechargeRate%": {
"type": "number",
"minimum": 0,
"maximum": 500
},
"ability1Acceleration%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"ability1RefuelScalar": {
"type": "number",
"minimum": 0,
"maximum": 400
},
"primaryFireKb%": {
"type": "number",
"minimum": 0,
Expand Down Expand Up @@ -16247,15 +16267,13 @@
"enableUlt": {
"type": "boolean"
},
"enableSecondaryFire": {
"enablePassive": {
"type": "boolean"
},
"secondaryFireMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
"enableSecondaryFire": {
"type": "boolean"
},
"secondaryFireRechargeRate%": {
"secondaryFireCooldown%": {
"type": "number",
"minimum": 0,
"maximum": 500
Expand Down Expand Up @@ -21102,19 +21120,39 @@
"minimum": 25,
"maximum": 300
},
"enableSecondaryFireUnlimitedFuel": {
"enablePassiveUnlimitedFuel": {
"type": "boolean"
},
"secondaryFireVerticalSpeed%": {
"passiveVerticalSpeed%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"passiveMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
},
"passiveExtraFuel%": {
"type": "number",
"minimum": 0,
"maximum": 200
},
"passiveRechargeRate%": {
"type": "number",
"minimum": 0,
"maximum": 500
},
"ability1Acceleration%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"ability1RefuelScalar": {
"type": "number",
"minimum": 0,
"maximum": 400
},
"primaryFireKb%": {
"type": "number",
"minimum": 0,
Expand Down Expand Up @@ -21219,15 +21257,13 @@
"enableUlt": {
"type": "boolean"
},
"enableSecondaryFire": {
"enablePassive": {
"type": "boolean"
},
"secondaryFireMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
"enableSecondaryFire": {
"type": "boolean"
},
"secondaryFireRechargeRate%": {
"secondaryFireCooldown%": {
"type": "number",
"minimum": 0,
"maximum": 500
Expand Down Expand Up @@ -26074,19 +26110,39 @@
"minimum": 25,
"maximum": 300
},
"enableSecondaryFireUnlimitedFuel": {
"enablePassiveUnlimitedFuel": {
"type": "boolean"
},
"secondaryFireVerticalSpeed%": {
"passiveVerticalSpeed%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"passiveMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
},
"passiveExtraFuel%": {
"type": "number",
"minimum": 0,
"maximum": 200
},
"passiveRechargeRate%": {
"type": "number",
"minimum": 0,
"maximum": 500
},
"ability1Acceleration%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"ability1RefuelScalar": {
"type": "number",
"minimum": 0,
"maximum": 400
},
"primaryFireKb%": {
"type": "number",
"minimum": 0,
Expand Down Expand Up @@ -26191,15 +26247,13 @@
"enableUlt": {
"type": "boolean"
},
"enableSecondaryFire": {
"enablePassive": {
"type": "boolean"
},
"secondaryFireMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
"enableSecondaryFire": {
"type": "boolean"
},
"secondaryFireRechargeRate%": {
"secondaryFireCooldown%": {
"type": "number",
"minimum": 0,
"maximum": 500
Expand Down Expand Up @@ -31046,19 +31100,39 @@
"minimum": 25,
"maximum": 300
},
"enableSecondaryFireUnlimitedFuel": {
"enablePassiveUnlimitedFuel": {
"type": "boolean"
},
"secondaryFireVerticalSpeed%": {
"passiveVerticalSpeed%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"passiveMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
},
"passiveExtraFuel%": {
"type": "number",
"minimum": 0,
"maximum": 200
},
"passiveRechargeRate%": {
"type": "number",
"minimum": 0,
"maximum": 500
},
"ability1Acceleration%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"ability1RefuelScalar": {
"type": "number",
"minimum": 0,
"maximum": 400
},
"primaryFireKb%": {
"type": "number",
"minimum": 0,
Expand Down Expand Up @@ -31163,15 +31237,13 @@
"enableUlt": {
"type": "boolean"
},
"enableSecondaryFire": {
"enablePassive": {
"type": "boolean"
},
"secondaryFireMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
"enableSecondaryFire": {
"type": "boolean"
},
"secondaryFireRechargeRate%": {
"secondaryFireCooldown%": {
"type": "number",
"minimum": 0,
"maximum": 500
Expand Down Expand Up @@ -36159,19 +36231,39 @@
"minimum": 25,
"maximum": 300
},
"enableSecondaryFireUnlimitedFuel": {
"enablePassiveUnlimitedFuel": {
"type": "boolean"
},
"secondaryFireVerticalSpeed%": {
"passiveVerticalSpeed%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"passiveMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
},
"passiveExtraFuel%": {
"type": "number",
"minimum": 0,
"maximum": 200
},
"passiveRechargeRate%": {
"type": "number",
"minimum": 0,
"maximum": 500
},
"ability1Acceleration%": {
"type": "number",
"minimum": 25,
"maximum": 300
},
"ability1RefuelScalar": {
"type": "number",
"minimum": 0,
"maximum": 400
},
"primaryFireKb%": {
"type": "number",
"minimum": 0,
Expand Down Expand Up @@ -36276,15 +36368,13 @@
"enableUlt": {
"type": "boolean"
},
"enableSecondaryFire": {
"enablePassive": {
"type": "boolean"
},
"secondaryFireMaximumTime%": {
"type": "number",
"minimum": 20,
"maximum": 500
"enableSecondaryFire": {
"type": "boolean"
},
"secondaryFireRechargeRate%": {
"secondaryFireCooldown%": {
"type": "number",
"minimum": 0,
"maximum": 500
Expand Down
Loading

0 comments on commit 6642371

Please sign in to comment.