mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Turned handling into a multiplier.
#story[1274]
This commit is contained in:
@@ -24,7 +24,7 @@ public class ServerYacht {
|
||||
|
||||
//Boat info
|
||||
private String boatType;
|
||||
private Double turnStep = 10.0;
|
||||
private Double turnStep = 5.0;
|
||||
private Double maxSpeedMultiplier = 1.0;
|
||||
private Double acceleration = 1.0;
|
||||
private Integer sourceId;
|
||||
@@ -427,7 +427,7 @@ public class ServerYacht {
|
||||
for (BoatMeshType boatMesh: BoatMeshType.values()) {
|
||||
if (Objects.equals(boatType, boatMesh.toString())) {
|
||||
boatMeshType = boatMesh;
|
||||
turnStep = boatMeshType.turnStep;
|
||||
turnStep = turnStep * boatMeshType.turnStep;
|
||||
maxSpeedMultiplier = boatMeshType.maxSpeedMultiplier;
|
||||
acceleration = boatMeshType.accelerationMultiplier;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user