V0.1.0: rebalanced Scroll of Psionic Blast

-Scroll is now more powerful and dangerous, more rare
-Only bosses can resist psionic blast now, Yog is immune
This commit is contained in:
Evan Debenham 2014-08-03 16:57:20 -04:00
parent aed303672a
commit bfe4a59e08
6 changed files with 9 additions and 10 deletions

View File

@ -100,7 +100,6 @@ public class Elemental extends Mob {
IMMUNITIES.add( Burning.class ); IMMUNITIES.add( Burning.class );
IMMUNITIES.add( Fire.class ); IMMUNITIES.add( Fire.class );
IMMUNITIES.add( WandOfFirebolt.class ); IMMUNITIES.add( WandOfFirebolt.class );
IMMUNITIES.add( ScrollOfPsionicBlast.class );
} }
@Override @Override

View File

@ -83,7 +83,6 @@ public class Golem extends Mob {
private static final HashSet<Class<?>> RESISTANCES = new HashSet<Class<?>>(); private static final HashSet<Class<?>> RESISTANCES = new HashSet<Class<?>>();
static { static {
RESISTANCES.add( ScrollOfPsionicBlast.class );
} }
@Override @Override

View File

@ -154,7 +154,6 @@ public class Statue extends Mob {
RESISTANCES.add( ToxicGas.class ); RESISTANCES.add( ToxicGas.class );
RESISTANCES.add( Poison.class ); RESISTANCES.add( Poison.class );
RESISTANCES.add( Death.class ); RESISTANCES.add( Death.class );
RESISTANCES.add( ScrollOfPsionicBlast.class );
IMMUNITIES.add( Leech.class ); IMMUNITIES.add( Leech.class );
} }

View File

@ -370,7 +370,7 @@ public class Yog extends Mob {
static { static {
RESISTANCES.add( ToxicGas.class ); RESISTANCES.add( ToxicGas.class );
RESISTANCES.add( Death.class ); RESISTANCES.add( Death.class );
RESISTANCES.add( ScrollOfPsionicBlast.class );
} }
@Override @Override
@ -384,6 +384,7 @@ public class Yog extends Mob {
IMMUNITIES.add( Sleep.class ); IMMUNITIES.add( Sleep.class );
IMMUNITIES.add( Terror.class ); IMMUNITIES.add( Terror.class );
IMMUNITIES.add( Burning.class ); IMMUNITIES.add( Burning.class );
IMMUNITIES.add( ScrollOfPsionicBlast.class );
} }
@Override @Override

View File

@ -93,7 +93,7 @@ public class Generator {
ScrollOfWeaponUpgrade.class, ScrollOfWeaponUpgrade.class,
ScrollOfPsionicBlast.class, ScrollOfPsionicBlast.class,
ScrollOfMirrorImage.class }; ScrollOfMirrorImage.class };
Category.SCROLL.probs = new float[]{ 30, 10, 15, 0, 10, 15, 12, 8, 8, 0, 4, 6 }; Category.SCROLL.probs = new float[]{ 30, 10, 15, 0, 10, 15, 12, 8, 8, 0, 3, 6 };
Category.POTION.classes = new Class<?>[]{ Category.POTION.classes = new Class<?>[]{
PotionOfHealing.class, PotionOfHealing.class,

View File

@ -45,10 +45,11 @@ public class ScrollOfPsionicBlast extends Scroll {
for (Mob mob : Dungeon.level.mobs.toArray( new Mob[0] )) { for (Mob mob : Dungeon.level.mobs.toArray( new Mob[0] )) {
if (Level.fieldOfView[mob.pos]) { if (Level.fieldOfView[mob.pos]) {
Buff.prolong( mob, Blindness.class, Random.Int( 3, 6 ) ); Buff.prolong( mob, Blindness.class, Random.Int( 3, 6 ) );
mob.damage( Random.IntRange( 1, mob.HT * 2 / 3 ), this ); mob.damage(mob.HT, this );
} }
} }
curUser.damage(Random.IntRange(curUser.HT/3, (int)(curUser.HT*0.99)), this);
Buff.prolong( curUser, Blindness.class, Random.Int( 3, 6 ) ); Buff.prolong( curUser, Blindness.class, Random.Int( 3, 6 ) );
Dungeon.observe(); Dungeon.observe();
@ -60,9 +61,9 @@ public class ScrollOfPsionicBlast extends Scroll {
@Override @Override
public String desc() { public String desc() {
return return
"This scroll contains destructive energy, that can be psionically channeled to inflict a " + "This scroll contains destructive energy, that can be psionically channeled to tear apart" +
"massive damage to all creatures within a field of view. An accompanying flash of light will " + "the minds of all visible creatures. The power unleashed by the scroll will also temporarily" +
"temporarily blind everybody in the area of effect including the reader of the scroll."; "blind and massively harm the reader. if the reader is already injured they will likely die.";
} }
@Override @Override