diff --git a/src/it/albertus/cycles/engine/CyclesMod.java b/src/it/albertus/cycles/engine/CyclesMod.java index f3e0423d..1f56c03d 100644 --- a/src/it/albertus/cycles/engine/CyclesMod.java +++ b/src/it/albertus/cycles/engine/CyclesMod.java @@ -243,6 +243,10 @@ private void writeDefaultBikesCfg() throws Exception { properties.append( "# " ).append( Torque.class.getSimpleName() ).append( " #" ); properties.append( lineSeparator ); for ( int index = 0; index < bike.getTorque().getCurve().length; index++ ) { + if ( index > 0 && index % 10 == 0 ) { + properties.append( "# " + Torque.getRpm( index ) + " RPM"); + properties.append( lineSeparator ); + } properties.append( prefix ).append( '.' ).append( Introspector.decapitalize( Torque.class.getSimpleName() ) ).append( '.' ).append( index ); properties.append( '=' ); properties.append( bike.getTorque().getCurve()[ index ] ); diff --git a/src/it/albertus/cycles/model/Torque.java b/src/it/albertus/cycles/model/Torque.java index 71bae22d..7596dd62 100644 --- a/src/it/albertus/cycles/model/Torque.java +++ b/src/it/albertus/cycles/model/Torque.java @@ -35,4 +35,8 @@ public short[] getCurve() { return curve; } + public static int getRpm( int index ) { + return 700 + 130 * index; + } + } \ No newline at end of file