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

View File

@@ -98,6 +98,15 @@ abstract public class MissileWeapon extends Weapon {
public int STRReq(int lvl){
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
//FIXME some logic here assumes the items are in the player's inventory. Might need to adjust