v0.6.3: added a quantity adjustment to older missile weapons

This commit is contained in:
Evan Debenham 2018-01-07 03:22:40 -05:00
parent 5d1b5681bf
commit a4e9e10f6d

View File

@ -268,6 +268,12 @@ abstract public class MissileWeapon extends Weapon {
//compatibility with pre-0.6.3 saves //compatibility with pre-0.6.3 saves
if (bundle.contains(DURABILITY)) { if (bundle.contains(DURABILITY)) {
durability = bundle.getInt(DURABILITY); durability = bundle.getInt(DURABILITY);
} else {
durability = 100;
//reduces quantity roughly in line with new durability system
if (!(this instanceof TippedDart)){
quantity = (int)Math.ceil(quantity/5f);
}
} }
} }
} }