v0.3.0: reworked wand of regrowth, some polish needed though
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.plants;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Bless;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfExperience;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
public class Starflower extends Plant{
|
||||
|
||||
private static final String TXT_DESC = "TODO";
|
||||
|
||||
{
|
||||
image = 11;
|
||||
plantName = "Starflower";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void activate(Char ch){
|
||||
super.activate(ch);
|
||||
|
||||
if (ch != null) Buff.prolong(ch, Bless.class, 30f);
|
||||
|
||||
if ( Random.Int(1) == 0 ) {
|
||||
Dungeon.level.drop(new Seed(),pos);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String desc(){
|
||||
return"";
|
||||
}
|
||||
|
||||
public static class Seed extends Plant.Seed{
|
||||
|
||||
{
|
||||
plantName="Starflower";
|
||||
|
||||
name= "Seed of " + plantName;
|
||||
image= ItemSpriteSheet.SEED_BLANDFRUIT;
|
||||
|
||||
plantClass = Starflower.class;
|
||||
alchemyClass = PotionOfExperience.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
return"";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user