v0.7.0: corrected a visual issue with some well water effects
This commit is contained in:
parent
ed33859d76
commit
defbf99bd1
|
@ -73,7 +73,7 @@ public class WaterOfAwareness extends WellWater {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Item affectItem( Item item ) {
|
||||
protected Item affectItem( Item item, int pos ) {
|
||||
if (item.isIdentified()) {
|
||||
return null;
|
||||
} else {
|
||||
|
|
|
@ -53,7 +53,7 @@ public class WaterOfHealth extends WellWater {
|
|||
hero.belongings.uncurseEquipped();
|
||||
((Hunger)hero.buff( Hunger.class )).satisfy( Hunger.STARVING );
|
||||
|
||||
CellEmitter.get( pos ).start( ShaftParticle.FACTORY, 0.2f, 3 );
|
||||
CellEmitter.get( hero.pos ).start( ShaftParticle.FACTORY, 0.2f, 3 );
|
||||
|
||||
Dungeon.hero.interrupt();
|
||||
|
||||
|
@ -63,7 +63,7 @@ public class WaterOfHealth extends WellWater {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Item affectItem( Item item ) {
|
||||
protected Item affectItem( Item item, int pos ) {
|
||||
if (item instanceof DewVial && !((DewVial)item).isFull()) {
|
||||
((DewVial)item).fill();
|
||||
return item;
|
||||
|
|
|
@ -48,7 +48,7 @@ import com.watabou.utils.Random;
|
|||
public class WaterOfTransmutation extends WellWater {
|
||||
|
||||
@Override
|
||||
protected Item affectItem( Item item ) {
|
||||
protected Item affectItem( Item item, int pos ) {
|
||||
|
||||
if (item instanceof MagesStaff) {
|
||||
item = changeStaff( (MagesStaff)item );
|
||||
|
|
|
@ -34,8 +34,6 @@ import com.watabou.utils.Random;
|
|||
|
||||
public abstract class WellWater extends Blob {
|
||||
|
||||
protected int pos;
|
||||
|
||||
@Override
|
||||
protected void evolve() {
|
||||
int cell;
|
||||
|
@ -71,7 +69,7 @@ public abstract class WellWater extends Blob {
|
|||
} else if ((heap = Dungeon.level.heaps.get( pos )) != null) {
|
||||
|
||||
Item oldItem = heap.peek();
|
||||
Item newItem = affectItem( oldItem );
|
||||
Item newItem = affectItem( oldItem, pos );
|
||||
|
||||
if (newItem != null) {
|
||||
|
||||
|
@ -112,7 +110,7 @@ public abstract class WellWater extends Blob {
|
|||
|
||||
protected abstract boolean affectHero( Hero hero );
|
||||
|
||||
protected abstract Item affectItem( Item item );
|
||||
protected abstract Item affectItem( Item item, int pos );
|
||||
|
||||
protected abstract Notes.Landmark record();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user