v0.6.5: fixed incorrect conversion logic for old weapon imbues
This commit is contained in:
parent
5274bcfc37
commit
0ddef2abe6
|
@ -130,8 +130,10 @@ abstract public class Weapon extends KindOfWeapon {
|
||||||
|
|
||||||
//pre-0.6.5 saves
|
//pre-0.6.5 saves
|
||||||
if (bundle.contains( "imbue" )){
|
if (bundle.contains( "imbue" )){
|
||||||
if (bundle.getString( "imbue" ).equals( "LIGHT" )) augment = Augment.SPEED;
|
String imbue = bundle.getString( "imbue" );
|
||||||
else augment = Augment.DAMAGE;
|
if (imbue.equals( "LIGHT" )) augment = Augment.SPEED;
|
||||||
|
else if (imbue.equals( "HEAVY" )) augment = Augment.DAMAGE;
|
||||||
|
else augment = Augment.NONE;
|
||||||
} else {
|
} else {
|
||||||
augment = bundle.getEnum(AUGMENT, Augment.class);
|
augment = bundle.getEnum(AUGMENT, Augment.class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user