I tried to make this change to the shotFreq, but the game fails to load at all when this modded BombGunPara.class is present, and no log entry is created either. There are no other instances of this class outside of the SFS archive.
Here's the code. I had to fix a bad decompiler jumble (enclosed within /* ... */ delimiters). This compiles fine, but the loading process balks.
package com.maddox.il2.objects.weapons;
import com.maddox.rts.Property;
// Referenced classes of package com.maddox.il2.objects.weapons:
// BombGun
public class BombGunPara extends BombGun
{
public BombGunPara()
{
}
/* static Class _mthclass$(String s)
{
return Class.forName(s);
ClassNotFoundException classnotfoundexception;
classnotfoundexception;
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
} */
static Class _mthclass$(String s)
{
Class class1;
try
{
class1 = Class.forName(s);
}
catch(ClassNotFoundException classnotfoundexception)
{
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}
return class1;
}
static
{
Class class1 = com.maddox.il2.objects.weapons.BombGunPara.class;
Property.set(class1, "bulletClass", com.maddox.il2.objects.weapons.BombPara.class);
Property.set(class1, "bullets", 1);
Property.set(class1, "shotFreq", 0.75F); //was 0.5
Property.set(class1, "cassette", 1);
}
}