v2.0.0: added a safety check to champion weapon swapping
This commit is contained in:
@@ -516,6 +516,10 @@ public class MeleeWeapon extends Weapon {
|
||||
|
||||
@Override
|
||||
public void doAction() {
|
||||
if (Dungeon.hero.subClass != HeroSubClass.CHAMPION){
|
||||
return;
|
||||
}
|
||||
|
||||
if (Dungeon.hero.belongings.secondWep == null && Dungeon.hero.belongings.backpack.items.size() >= Dungeon.hero.belongings.backpack.capacity()){
|
||||
GLog.w(Messages.get(MeleeWeapon.class, "swap_full"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user