v0.9.1b: Overgrowth can now proc starflower
This commit is contained in:
+1
-7
@@ -29,7 +29,6 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.particles.LeafParticle;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
|
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.plants.Starflower;
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
|
||||||
import com.watabou.utils.Random;
|
import com.watabou.utils.Random;
|
||||||
|
|
||||||
@@ -42,12 +41,7 @@ public class Overgrowth extends Armor.Glyph {
|
|||||||
|
|
||||||
if ( Random.Int( 20 ) == 0) {
|
if ( Random.Int( 20 ) == 0) {
|
||||||
|
|
||||||
Plant.Seed s;
|
Plant p = ((Plant.Seed) Generator.randomUsingDefaults(Generator.Category.SEED)).couch(defender.pos, null);
|
||||||
do{
|
|
||||||
s = (Plant.Seed) Generator.randomUsingDefaults(Generator.Category.SEED);
|
|
||||||
} while (s instanceof Starflower.Seed);
|
|
||||||
|
|
||||||
Plant p = s.couch(defender.pos, null);
|
|
||||||
|
|
||||||
//momentarily revoke warden benefits, otherwise this curse would be incredibly powerful
|
//momentarily revoke warden benefits, otherwise this curse would be incredibly powerful
|
||||||
if (defender instanceof Hero && ((Hero) defender).subClass == HeroSubClass.WARDEN){
|
if (defender instanceof Hero && ((Hero) defender).subClass == HeroSubClass.WARDEN){
|
||||||
|
|||||||
Reference in New Issue
Block a user