v0.4.0: added the ability for weapons to give DR, gave it to quarterstaff
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
|
||||
public class Quarterstaff extends MeleeWeapon {
|
||||
@@ -36,6 +37,8 @@ public class Quarterstaff extends MeleeWeapon {
|
||||
lvl*(tier+1); //scaling unchanged
|
||||
}
|
||||
|
||||
//TODO add defence bonus code
|
||||
|
||||
@Override
|
||||
public int defenceFactor(Hero hero) {
|
||||
return 2+level(); //2 extra defence, plus 1 per level;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user