private DemonGoo split() { DemonGoo clone = new DemonGoo(); clone.demonGooGeneration = demonGooGeneration + 1; if (buff(Burning.class) != null) { Buff.affect(clone, Burning.class).reignite(clone); } if (buff(Poison.class) != null) { Buff.affect(clone, Poison.class).set(2); } return clone; }
@Override public int attackProc(Char enemy, int damage) { if (Random.Int(3) == 0) { Buff.affect(enemy, Ooze.class); enemy.sprite.burst(0x000000, 5); } return damage; }
@Override public int attackProc(Char enemy, int damage) { if (Random.Int(2) == 0) { Buff.affect(enemy, Poison.class).set(Random.Int(7, 9) * Poison.durationFactor(enemy)); state = FLEEING; } return damage; }