v0.3.0: formatting tweaks and logic fix for starflower

This commit is contained in:
Evan Debenham 2015-05-20 09:06:12 -04:00 committed by Evan Debenham
parent c3cba0f046
commit 772058af8d

View File

@ -8,7 +8,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfExperience
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.watabou.utils.Random; import com.watabou.utils.Random;
public class Starflower extends Plant{ public class Starflower extends Plant {
private static final String TXT_DESC = "TODO"; private static final String TXT_DESC = "TODO";
@ -18,28 +18,28 @@ public class Starflower extends Plant{
} }
@Override @Override
public void activate(Char ch){ public void activate(Char ch) {
super.activate(ch); super.activate( ch );
if (ch != null) Buff.prolong(ch, Bless.class, 30f); if (ch != null) Buff.prolong(ch, Bless.class, 30f);
if ( Random.Int(1) == 0 ) { if (Random.Int(5) == 0){
Dungeon.level.drop(new Seed(),pos); Dungeon.level.drop(new Seed(), pos);
} }
} }
@Override @Override
public String desc(){ public String desc() {
return""; return "";
} }
public static class Seed extends Plant.Seed{ public static class Seed extends Plant.Seed{
{ {
plantName="Starflower"; plantName = "Starflower";
name= "Seed of " + plantName; name = "Seed of " + plantName;
image= ItemSpriteSheet.SEED_BLANDFRUIT; image = ItemSpriteSheet.SEED_BLANDFRUIT;
plantClass = Starflower.class; plantClass = Starflower.class;
alchemyClass = PotionOfExperience.class; alchemyClass = PotionOfExperience.class;
@ -47,7 +47,7 @@ public class Starflower extends Plant{
@Override @Override
public String desc() { public String desc() {
return""; return "";
} }
} }
} }