Skip to content

Commit f1707a7

Browse files
committed
Format & Build Fix
1 parent 6153de0 commit f1707a7

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

fission/src/systems/input/InputSystem.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ export type ModifierState = Readonly<{
1414
}>
1515
export const EMPTY_MODIFIER_STATE: ModifierState = { ctrl: false, alt: false, shift: false, meta: false }
1616

17-
export type InputName = "arcadeDrive" | "arcadeTurn" | "tankLeft" | "tankRight" | "intake" | "eject" | "unstick" | `joint ${number}`
17+
export type InputName =
18+
| "arcadeDrive"
19+
| "arcadeTurn"
20+
| "tankLeft"
21+
| "tankRight"
22+
| "intake"
23+
| "eject"
24+
| "unstick"
25+
| `joint ${number}`
1826

1927
const inputDriveTypeAssociations: Partial<Record<InputName, DriveType>> = {
2028
arcadeDrive: DriveType.ARCADE,

fission/src/systems/simulation/synthesis_brain/SynthesisBrain.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ class SynthesisBrain extends Brain {
116116
this._assembly.ejectorActive = InputSystem.getInput("eject", this._brainIndex) > 0.5
117117
this._assembly.intakeActive = InputSystem.getInput("intake", this._brainIndex) > 0.5
118118

119-
// Handle unstick
119+
// Handle unstick
120120
const unstickPressed = InputSystem.getInput("unstick", this._brainIndex) === 1
121121
if (unstickPressed && !this._prevUnstickPressed) {
122122
this.applyUnstickForce()
123123
}
124-
124+
125125
this._prevUnstickPressed = unstickPressed
126126
}
127127

@@ -142,7 +142,7 @@ class SynthesisBrain extends Brain {
142142
}
143143

144144
const unstickForce = new JOLT.Vec3(0, PreferencesSystem.getRobotPreferences(this._assemblyName).unstickForce, 0)
145-
body.AddForce(unstickForce)
145+
body.AddForce(unstickForce)
146146
}
147147

148148
public disable(): void {

fission/src/test/PreferencesSystem.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ describe("Preference System Robot/Field", () => {
133133
},
134134
driveVelocity: 3,
135135
driveAcceleration: 6,
136+
unstickForce: 8000,
136137
}
137138
const robotPreferences2: RobotPreferences = {
138139
inputsSchemes: [],
@@ -153,6 +154,7 @@ describe("Preference System Robot/Field", () => {
153154
},
154155
driveVelocity: 1.5,
155156
driveAcceleration: 8,
157+
unstickForce: 10000,
156158
}
157159

158160
PreferencesSystem.setRobotPreferences("RobotPreferences1", robotPreferences1)

0 commit comments

Comments
 (0)