v0.3.0: structure for battlemage rework (some implementation, no balancing atm)
This commit is contained in:
@@ -4,6 +4,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.bags.Bag;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfUpgrade;
|
||||
@@ -91,6 +92,13 @@ public class MagesStaff extends MeleeWeapon {
|
||||
super.execute(hero, action);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void proc(Char attacker, Char defender, int damage) {
|
||||
super.proc(attacker, defender, damage);
|
||||
if (wand != null && Dungeon.hero.subClass == HeroSubClass.BATTLEMAGE)
|
||||
wand.onHit( this, attacker, defender, damage );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean collect( Bag container ) {
|
||||
if (super.collect( container )) {
|
||||
|
||||
Reference in New Issue
Block a user