2829303132333435363738
gunUseAmmo = 10; damageRange = new Vec2(2.5f, 2.5f); } public void createBullet() { Mine shoot = new Mine(); Common.info(5, "new mine"); shoot.actions.removeAction("nogravity"); shoot.actions.removeAction("collision"); Vec2 range = damageRange;
200201202203204205206207208209210211
return 0; } int delta = 0; Tile tile = board.tileAt(p); if (tile instanceof Mine) { Mine mine = (Mine) tile; delta += mine.isOwnedBy(hero) ? 0 : -HP_LOSS_MINE_FIGHT; } else if (tile == Tile.TAVERN) { delta += HP_WIN_TAVERN; } delta += deltaHpFrom(move(p, Direction.NORTH));