v2.3.0: fixed thrown weapons not being affected by degrade when thrown

This commit is contained in:
Evan Debenham
2023-12-17 16:42:34 -05:00
parent c1ee0a370e
commit a1ffee3949
@@ -99,6 +99,15 @@ abstract public class MissileWeapon extends Weapon {
return STRReq(tier, lvl) - 1; //1 less str than normal for their tier return STRReq(tier, lvl) - 1; //1 less str than normal for their tier
} }
//use the parent item if this has been thrown from a parent
public int buffedLvl(){
if (parent != null) {
return parent.buffedLvl();
} else {
return super.buffedLvl();
}
}
@Override @Override
//FIXME some logic here assumes the items are in the player's inventory. Might need to adjust //FIXME some logic here assumes the items are in the player's inventory. Might need to adjust
public Item upgrade() { public Item upgrade() {