v0.6.5: fixed incorrect conversion logic for old weapon imbues

This commit is contained in:
Evan Debenham 2018-04-25 17:59:16 -04:00 committed by Evan Debenham
parent 5274bcfc37
commit 0ddef2abe6

View File

@ -130,8 +130,10 @@ abstract public class Weapon extends KindOfWeapon {
//pre-0.6.5 saves
if (bundle.contains( "imbue" )){
if (bundle.getString( "imbue" ).equals( "LIGHT" )) augment = Augment.SPEED;
else augment = Augment.DAMAGE;
String imbue = bundle.getString( "imbue" );
if (imbue.equals( "LIGHT" )) augment = Augment.SPEED;
else if (imbue.equals( "HEAVY" )) augment = Augment.DAMAGE;
else augment = Augment.NONE;
} else {
augment = bundle.getEnum(AUGMENT, Augment.class);
}