v0.9.3: incendiary darts now use durability when used on terrain
This commit is contained in:
parent
0c67c9cade
commit
5d2d9aef9b
|
@ -42,7 +42,12 @@ public class IncendiaryDart extends TippedDart {
|
|||
Char enemy = Actor.findChar( cell );
|
||||
if ((enemy == null || enemy == curUser) && Dungeon.level.flamable[cell]) {
|
||||
GameScene.add(Blob.seed(cell, 4, Fire.class));
|
||||
Dungeon.level.drop(new Dart(), cell).sprite.drop();
|
||||
decrementDurability();
|
||||
if (durability > 0){
|
||||
super.onThrow(cell);
|
||||
} else {
|
||||
Dungeon.level.drop(new Dart(), cell).sprite.drop();
|
||||
}
|
||||
} else{
|
||||
super.onThrow(cell);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user