v2.3.0: fixed thrown weapons not being affected by degrade when thrown
This commit is contained in:
+9
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user