v0.2.2: refactored immunity to gasses

This commit is contained in:
Evan Debenham
2014-10-29 22:19:52 -04:00
parent 6810d0adef
commit e02222495c
4 changed files with 8 additions and 4 deletions
@@ -33,7 +33,8 @@ public class ConfusionGas extends Blob {
Char ch;
for (int i=0; i < LENGTH; i++) {
if (cur[i] > 0 && (ch = Actor.findChar( i )) != null) {
Buff.prolong( ch, Vertigo.class, 1 );
if (!ch.immunities().contains(this.getClass()))
Buff.prolong( ch, Vertigo.class, 1 );
}
}
}
@@ -33,7 +33,8 @@ public class ParalyticGas extends Blob {
Char ch;
for (int i=0; i < LENGTH; i++) {
if (cur[i] > 0 && (ch = Actor.findChar( i )) != null) {
Buff.prolong( ch, Paralysis.class, Paralysis.duration( ch ) );
if (!ch.immunities().contains(this.getClass()))
Buff.prolong( ch, Paralysis.class, Paralysis.duration( ch ) );
}
}
}
@@ -19,7 +19,8 @@ public class StenchGas extends Blob {
Char ch;
for (int i=0; i < LENGTH; i++) {
if (cur[i] > 0 && (ch = Actor.findChar(i)) != null) {
Buff.prolong(ch, Paralysis.class, Paralysis.duration(ch)/5);
if (!ch.immunities().contains(this.getClass()))
Buff.prolong( ch, Paralysis.class, Paralysis.duration( ch )/5 );
}
}
}