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