v0.9.0b: adjusted equip logic to prevent more cases of swap prompt
This commit is contained in:
parent
11a684bb1f
commit
840727c674
|
@ -43,12 +43,26 @@ public abstract class KindofMisc extends EquipableItem {
|
||||||
if ( this instanceof Artifact
|
if ( this instanceof Artifact
|
||||||
&& hero.belongings.artifact != null
|
&& hero.belongings.artifact != null
|
||||||
&& hero.belongings.misc != null){
|
&& hero.belongings.misc != null){
|
||||||
|
|
||||||
|
//see if we can re-arrange items first
|
||||||
|
if (hero.belongings.misc instanceof Ring && hero.belongings.ring == null){
|
||||||
|
hero.belongings.ring = (Ring) hero.belongings.misc;
|
||||||
|
hero.belongings.misc = null;
|
||||||
|
} else {
|
||||||
equipFull = true;
|
equipFull = true;
|
||||||
|
}
|
||||||
} else if (this instanceof Ring
|
} else if (this instanceof Ring
|
||||||
&& hero.belongings.misc != null
|
&& hero.belongings.misc != null
|
||||||
&& hero.belongings.ring != null){
|
&& hero.belongings.ring != null){
|
||||||
|
|
||||||
|
//see if we can re-arrange items first
|
||||||
|
if (hero.belongings.misc instanceof Artifact && hero.belongings.artifact == null){
|
||||||
|
hero.belongings.artifact = (Artifact) hero.belongings.misc;
|
||||||
|
hero.belongings.misc = null;
|
||||||
|
} else {
|
||||||
equipFull = true;
|
equipFull = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (equipFull) {
|
if (equipFull) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user