cleaned up formatting:
- removed trailing whitespace - changed all leading whitespace to tabs - removed IDE created author comments
This commit is contained in:
@@ -121,7 +121,7 @@ public abstract class Char extends Actor {
|
||||
|
||||
// FIXME
|
||||
int dr = this instanceof Hero && ((Hero)this).rangedWeapon != null && ((Hero)this).subClass ==
|
||||
HeroSubClass.SNIPER ? 0 : Random.IntRange( 0, enemy.dr() );
|
||||
HeroSubClass.SNIPER ? 0 : Random.IntRange( 0, enemy.dr() );
|
||||
|
||||
int dmg = damageRoll();
|
||||
int effectiveDamage = Math.max( dmg - dr, 0 );
|
||||
@@ -242,11 +242,11 @@ public abstract class Char extends Actor {
|
||||
return;
|
||||
}
|
||||
if (this.buff(Frost.class) != null){
|
||||
Buff.detach( this, Frost.class );
|
||||
}
|
||||
if (this.buff(MagicalSleep.class) != null){
|
||||
Buff.detach(this, MagicalSleep.class);
|
||||
}
|
||||
Buff.detach( this, Frost.class );
|
||||
}
|
||||
if (this.buff(MagicalSleep.class) != null){
|
||||
Buff.detach(this, MagicalSleep.class);
|
||||
}
|
||||
|
||||
Class<?> srcClass = src.getClass();
|
||||
if (immunities().contains( srcClass )) {
|
||||
@@ -266,8 +266,8 @@ public abstract class Char extends Actor {
|
||||
|
||||
HP -= dmg;
|
||||
if (dmg > 0 || src instanceof Char) {
|
||||
sprite.showStatus( HP > HT / 2 ?
|
||||
CharSprite.WARNING :
|
||||
sprite.showStatus( HP > HT / 2 ?
|
||||
CharSprite.WARNING :
|
||||
CharSprite.NEGATIVE,
|
||||
Integer.toString( dmg ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user