v0.3.0c: refactored plants to match the structure of new traps.

This commit is contained in:
Evan Debenham
2015-06-06 16:00:50 -04:00
parent 4ac3ac817c
commit c601027f27
15 changed files with 46 additions and 37 deletions
@@ -18,6 +18,7 @@
package com.shatteredpixel.shatteredpixeldungeon.plants;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Cripple;
@@ -41,8 +42,8 @@ public class Blindweed extends Plant {
}
@Override
public void activate( Char ch ) {
super.activate( ch );
public void activate() {
Char ch = Actor.findChar(pos);
if (ch != null) {
int len = Random.Int( 5, 10 );