v1.1.2: fixed dragon's breath and mastery not always being consumed
This commit is contained in:
parent
336b2f338d
commit
d1b897cc6b
|
@ -60,7 +60,7 @@ public class PotionOfDragonsBreath extends ExoticPotion {
|
||||||
//need to override drink so that time isn't spent right away
|
//need to override drink so that time isn't spent right away
|
||||||
protected void drink(final Hero hero) {
|
protected void drink(final Hero hero) {
|
||||||
curUser = hero;
|
curUser = hero;
|
||||||
curItem = this;
|
curItem = detach( hero.belongings.backpack );
|
||||||
|
|
||||||
if (!isKnown()) {
|
if (!isKnown()) {
|
||||||
identify();
|
identify();
|
||||||
|
@ -96,7 +96,7 @@ public class PotionOfDragonsBreath extends ExoticPotion {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
curUser.spendAndNext(1f);
|
curUser.spendAndNext(1f);
|
||||||
detach(curUser.belongings.backpack);
|
identifiedByUse = false;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
GameScene.selectCell( targeter );
|
GameScene.selectCell( targeter );
|
||||||
|
@ -105,6 +105,8 @@ public class PotionOfDragonsBreath extends ExoticPotion {
|
||||||
}
|
}
|
||||||
public void onBackPressed() {}
|
public void onBackPressed() {}
|
||||||
} );
|
} );
|
||||||
|
} else if (cell == null && !anonymous){
|
||||||
|
curItem.collect( curUser.belongings.backpack );
|
||||||
} else if (cell != null) {
|
} else if (cell != null) {
|
||||||
identifiedByUse = false;
|
identifiedByUse = false;
|
||||||
curUser.busy();
|
curUser.busy();
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class PotionOfMastery extends ExoticPotion {
|
||||||
//need to override drink so that time isn't spent right away
|
//need to override drink so that time isn't spent right away
|
||||||
protected void drink(final Hero hero) {
|
protected void drink(final Hero hero) {
|
||||||
curUser = hero;
|
curUser = hero;
|
||||||
curItem = this;
|
curItem = detach( hero.belongings.backpack );
|
||||||
|
|
||||||
if (!isKnown()) {
|
if (!isKnown()) {
|
||||||
identify();
|
identify();
|
||||||
|
@ -90,7 +90,7 @@ public class PotionOfMastery extends ExoticPotion {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
curUser.spendAndNext(1f);
|
curUser.spendAndNext(1f);
|
||||||
detach(curUser.belongings.backpack);
|
identifiedByUse = false;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
GameScene.selectItem(itemSelector);
|
GameScene.selectItem(itemSelector);
|
||||||
|
@ -99,6 +99,8 @@ public class PotionOfMastery extends ExoticPotion {
|
||||||
}
|
}
|
||||||
public void onBackPressed() {}
|
public void onBackPressed() {}
|
||||||
} );
|
} );
|
||||||
|
} else if (item == null && !anonymous){
|
||||||
|
curItem.collect( curUser.belongings.backpack );
|
||||||
} else if (item != null) {
|
} else if (item != null) {
|
||||||
|
|
||||||
if (item instanceof Weapon) {
|
if (item instanceof Weapon) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user