Merging 1.7.5 Source: plant changes
This commit is contained in:
parent
11d550cbe0
commit
1b10338b37
|
@ -48,9 +48,7 @@ public class Fadeleaf extends Plant {
|
|||
((Hero)ch).curAction = null;
|
||||
|
||||
} else if (ch instanceof Mob) {
|
||||
|
||||
// Why do I try to choose a new position 10 times?
|
||||
// I don't remember...
|
||||
|
||||
int count = 10;
|
||||
int newPos;
|
||||
do {
|
||||
|
|
|
@ -48,7 +48,6 @@ public class Icecap extends Plant {
|
|||
|
||||
for (int i=0; i < Level.LENGTH; i++) {
|
||||
if (PathFinder.distance[i] < Integer.MAX_VALUE) {
|
||||
|
||||
Freezing.affect( i, fire );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -161,7 +161,9 @@ public class Plant implements Bundlable {
|
|||
|
||||
public Plant couch( int pos ) {
|
||||
try {
|
||||
Sample.INSTANCE.play( Assets.SND_PLANT );
|
||||
if (Dungeon.visible[pos]) {
|
||||
Sample.INSTANCE.play(Assets.SND_PLANT);
|
||||
}
|
||||
Plant plant = plantClass.newInstance();
|
||||
plant.pos = pos;
|
||||
return plant;
|
||||
|
|
Loading…
Reference in New Issue
Block a user