v0.9.4: fixed dew drops still stacking in some cases

This commit is contained in:
Evan Debenham 2021-07-09 13:37:43 -04:00
parent 448cc0a23c
commit ee2eea4459

View File

@ -114,8 +114,18 @@ public class Dewdrop extends Item {
return true;
}
@Override
//max of one dew in a stack
@Override
public Item merge( Item other ){
if (isSimilar( other )){
quantity = 1;
other.quantity = 0;
}
return this;
}
@Override
public Item quantity(int value) {
quantity = Math.min( value, 1);
return this;