2014-08-14 05:31:39 +00:00
|
|
|
package com.shatteredpixel.shatteredpixeldungeon.plants;
|
|
|
|
|
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
2015-06-06 20:00:50 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
2014-08-14 05:31:39 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
2014-08-16 02:48:02 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.items.food.Blandfruit;
|
2014-08-14 05:31:39 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Evan on 13/08/2014.
|
|
|
|
*/
|
|
|
|
public class BlandfruitBush extends Plant {
|
|
|
|
|
|
|
|
private static final String TXT_DESC =
|
2014-08-14 21:27:54 +00:00
|
|
|
"Distant cousin of the Rotberry, the pear-shaped produce of the Blandfruit bush tastes like caked dust. " +
|
2014-08-14 05:31:39 +00:00
|
|
|
"The fruit is gross and unsubstantial but isn't poisonous. perhaps it could be cooked.";
|
|
|
|
|
|
|
|
{
|
|
|
|
image = 8;
|
|
|
|
plantName = "Blandfruit";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-06-06 20:00:50 +00:00
|
|
|
public void activate() {
|
|
|
|
Char ch = Actor.findChar(pos);
|
2014-08-14 05:31:39 +00:00
|
|
|
|
2014-08-16 02:48:02 +00:00
|
|
|
Dungeon.level.drop( new Blandfruit(), pos ).sprite.drop();
|
2014-08-14 05:31:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String desc() {
|
|
|
|
return TXT_DESC;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class Seed extends Plant.Seed {
|
|
|
|
{
|
|
|
|
plantName = "Blandfruit";
|
|
|
|
|
|
|
|
name = "seed of " + plantName;
|
2014-08-16 02:48:02 +00:00
|
|
|
image = ItemSpriteSheet.SEED_BLANDFRUIT;
|
2014-08-14 05:31:39 +00:00
|
|
|
|
|
|
|
plantClass = BlandfruitBush.class;
|
2014-08-14 21:27:54 +00:00
|
|
|
alchemyClass = null;
|
2014-08-14 05:31:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String desc() {
|
|
|
|
return TXT_DESC;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|