eqPump (was VanillaEquipment) keyword

I took a peek at the VanillaEquipment code in CardFactory_Equiptment.java and see that it calls a CardFactoryUtil.vanila_{equip/onequip/unequip} method. There is a section in CardFactoryUtil which states:
At a quick glance it looks like "none" should not be added as a non-usable keyword. So, not knowing much about java I thought that a minor mod might do it:
I ran a test and no more of those pesky "none" keyword entries show in the card detail panel. And the real keywords are infact added. Good!
Except that I got the "Flying" keyword twice. So, back to the drawing board.
- Code: Select all
public void execute() {
if(sourceCard.isEquipping()) {
Card crd = sourceCard.getEquipping().get(0);
if(!(Ab1 == "none")) crd.addExtrinsicKeyword(Ab1);
if(!(Ab2 == "none")) crd.addExtrinsicKeyword(Ab2);
if(!(Ab3 == "none")) crd.addExtrinsicKeyword(Ab3);
crd.addSemiPermanentAttackBoost(Power);
crd.addSemiPermanentDefenseBoost(Tough);
}
}//execute()
At a quick glance it looks like "none" should not be added as a non-usable keyword. So, not knowing much about java I thought that a minor mod might do it:
- Code: Select all
public void execute() {
if(sourceCard.isEquipping()) {
Card crd = sourceCard.getEquipping().get(0);
if(!(Ab1.equals ("none"))) crd.addExtrinsicKeyword(Ab1);
if(!(Ab2.equals ("none"))) crd.addExtrinsicKeyword(Ab2);
if(!(Ab3.equals ("none"))) crd.addExtrinsicKeyword(Ab3);
crd.addSemiPermanentAttackBoost(Power);
crd.addSemiPermanentDefenseBoost(Tough);
}
}//execute()
I ran a test and no more of those pesky "none" keyword entries show in the card detail panel. And the real keywords are infact added. Good!
Except that I got the "Flying" keyword twice. So, back to the drawing board.