v0.6.3: added a quantity adjustment to older missile weapons
This commit is contained in:
+6
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user