v0.9.1: fixed incorrect int arithmetic when artifacts transfer levels

This commit is contained in:
Evan Debenham 2020-11-08 11:20:35 -05:00
parent 350086c9a4
commit 8f8169c8e7

View File

@ -130,7 +130,7 @@ public class Artifact extends KindofMisc {
//transfers upgrades from another artifact, transfer level will equal the displayed level
public void transferUpgrade(int transferLvl) {
upgrade(Math.round((float)(transferLvl*levelCap)/10));
upgrade(Math.round((transferLvl*levelCap)/10f));
}
@Override