v0.4.0: reworked enchants

This commit is contained in:
Evan Debenham
2016-06-03 21:47:36 -04:00
parent d18417f447
commit e3a3428f97
28 changed files with 309 additions and 116 deletions
@@ -469,10 +469,14 @@ public class Item implements Bundlable {
}
}
}
protected int throwPos( Hero user, int dst){
return new Ballistica( user.pos, dst, Ballistica.PROJECTILE ).collisionPos;
}
public void cast( final Hero user, int dst ) {
final int cell = new Ballistica( user.pos, dst, Ballistica.PROJECTILE ).collisionPos;
final int cell = throwPos( user, dst );
user.sprite.zap( cell );
user.busy();